mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.

Dependents:   MbedSmartRestMain MbedSmartRestMain

Revision:
6:cd7ba1ddb664
Parent:
5:2b74510900da
Child:
11:e1bee9a77652
--- a/Aggregator.h	Thu Jul 10 16:20:31 2014 +0200
+++ b/Aggregator.h	Mon Jul 28 12:11:02 2014 +0200
@@ -112,7 +112,7 @@
      * Retrieves the nth record from the aggregator.
      * @param index the index of the nth element to retrieve
      */
-    const Record& get(size_t);
+    const Record& get(size_t) const;
 
     /**
      * Clears the aggregator. The capacity will shrink to it's initial
@@ -124,26 +124,26 @@
      * Returns the number of records aggregated by this instance.
      * @return the number of records aggregated
      */
-    size_t length();
+    size_t length() const;
 
     /**
      * Returns whether the aggregator is full. If growing, this will
      * always return false.
      * @return whether the aggregator is full
      */
-    bool full();
+    bool full() const;
 
     /**
      * Returns the capacity of the aggregator. This will always return zero
      * if the aggregator is growing.
      */
-    size_t capacity();
+    size_t capacity() const;
 
     /**
      * Returns whether this aggregator is using internal memory management.
      * @return whether internal memory management is being used
      */
-    bool isManaged();
+    bool managed() const;
 
     size_t writeTo(AbstractDataSink&) const;
     size_t writtenLength() const;
@@ -156,11 +156,11 @@
     const Record **_list;
     #endif
     size_t _length;
-    bool _managed;
     #ifndef SMARTREST_AGGREGATOR_FIXED_SIZE
     size_t _capacity, _initial;
     bool _growing;
     #endif
+    bool _managed;
 };
 
 #endif