Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: Aggregator.cpp
- Revision:
- 6:cd7ba1ddb664
- Parent:
- 5:2b74510900da
- Child:
- 11:e1bee9a77652
--- a/Aggregator.cpp Thu Jul 10 16:20:31 2014 +0200 +++ b/Aggregator.cpp Mon Jul 28 12:11:02 2014 +0200 @@ -96,7 +96,7 @@ return true; } -const Record& Aggregator::get(size_t index) +const Record& Aggregator::get(size_t index) const { return *_list[index]; } @@ -117,12 +117,12 @@ #endif } -size_t Aggregator::length() +size_t Aggregator::length() const { return _length; } -bool Aggregator::full() +bool Aggregator::full() const { #ifndef SMARTREST_AGGREGATOR_FIXED_SIZE return (_growing) ? false : (_length == _capacity); @@ -131,7 +131,7 @@ #endif } -size_t Aggregator::capacity() +size_t Aggregator::capacity() const { #ifndef SMARTREST_AGGREGATOR_FIXED_SIZE return (_growing) ? 0 : _capacity; @@ -140,7 +140,7 @@ #endif } -bool Aggregator::isManaged() +bool Aggregator::managed() const { return _managed; }