|
Grok 20.3.2
|
Sequence of shared_ptr<T>. More...
#include <TPFetchSeq.h>
Public Types | |
| using | iterator = typename std::vector<std::shared_ptr<T>>::iterator |
| using | const_iterator = typename std::vector<std::shared_ptr<T>>::const_iterator |
Public Member Functions | |
| std::shared_ptr< T > & | operator[] (size_t index) |
| const std::shared_ptr< T > & | operator[] (size_t index) const |
| iterator | begin () |
| Returns iterator to beginning of sequence. | |
| const_iterator | end () const |
| Returns const iterator to end of sequence. | |
| bool | empty () const |
| Checks if there are no objects in store. | |
| size_t | size () const |
| Returns number of objects in store. | |
| void | push_back (std::shared_ptr< T > ptr) |
| Adds a pre-existing shared_ptr to the end of the sequence. | |
| void | resize (size_t N) |
| void | clear () |
Private Attributes | |
| std::vector< std::shared_ptr< T > > | objStore_ |
Sequence of shared_ptr<T>.
| T | The type of elements to be stored as shared_ptr in the sequence |
| using grk::SharedPtrSeq< T >::const_iterator = typename std::vector<std::shared_ptr<T>>::const_iterator |
| using grk::SharedPtrSeq< T >::iterator = typename std::vector<std::shared_ptr<T>>::iterator |
|
inline |
Returns iterator to beginning of sequence.
References objStore_.
|
inline |
References objStore_.
|
inline |
Checks if there are no objects in store.
References objStore_.
|
inline |
Returns const iterator to end of sequence.
References objStore_.
|
inline |
References objStore_.
|
inline |
References objStore_.
|
inline |
Adds a pre-existing shared_ptr to the end of the sequence.
| ptr | The shared_ptr to be added |
References objStore_.
Referenced by grk::TPFetchSeq::push_back(), grk::TPFetchSeq::push_back(), and grk::TPSeq::push_back().
|
inline |
References objStore_.
|
inline |
Returns number of objects in store.
References objStore_.
Referenced by grk::CompressedChunkCache::calcSeqDataSize().
|
private |
Referenced by begin(), clear(), empty(), end(), operator[](), operator[](), push_back(), resize(), and size().