ZeroBuf  0.1.0
ZeroBuf is a replacement for FlatBuffers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
zerobuf::ConstVector< T > Class Template Reference

Const vector. More...

#include <ConstVector.h>

+ Inheritance diagram for zerobuf::ConstVector< T >:
+ Collaboration diagram for zerobuf::ConstVector< T >:

Public Member Functions

 ConstVector (const Allocator *alloc, size_t index)
 
- Public Member Functions inherited from zerobuf::BaseVector< const Allocator, T >
 BaseVector (const Allocator *alloc, size_t index)
 
const T & operator[] (size_t index) const
 
bool empty () const
 
uint64_t size () const
 
const T * data () const
 
bool operator== (const BaseVector &rhs) const
 
bool operator!= (const BaseVector &rhs) const
 

Additional Inherited Members

- Protected Member Functions inherited from zerobuf::BaseVector< const Allocator, T >
size_t _getSize () const
 
- Protected Attributes inherited from zerobuf::BaseVector< const Allocator, T >
const Allocator_parent
 
const size_t _index
 

Detailed Description

template<class T>
class zerobuf::ConstVector< T >

Const vector.

Parameters
Telement type

Definition at line 20 of file ConstVector.h.

Constructor & Destructor Documentation

template<class T >
zerobuf::ConstVector< T >::ConstVector ( const Allocator alloc,
size_t  index 
)
inline
Parameters
allocThe parent allocator that contains the data.
indexIndex of the vector in the parent allocator dynamic storage

Definition at line 42 of file ConstVector.h.


The documentation for this class was generated from the following file: