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

Non-const vector. More...

#include <Vector.h>

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

Public Member Functions

 Vector (Allocator *alloc, size_t index)
 
void push_back (const T &value)
 
T * data ()
 
- Public Member Functions inherited from zerobuf::BaseVector< Allocator, T >
 BaseVector (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< Allocator, T >
size_t _getSize () const
 
- Protected Attributes inherited from zerobuf::BaseVector< Allocator, T >
Allocator_parent
 
const size_t _index
 

Detailed Description

template<class T>
class zerobuf::Vector< T >

Non-const vector.

Parameters
Telement type

Definition at line 19 of file Vector.h.

Constructor & Destructor Documentation

template<class T >
zerobuf::Vector< T >::Vector ( 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 44 of file Vector.h.


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