|
| Vector (Allocator &alloc, size_t index) |
|
bool | empty () const |
|
uint64_t | size () const |
|
void | clear () |
| Empty the vector. More...
|
|
T * | data () |
|
const T * | data () const |
|
bool | operator== (const Vector &rhs) const |
|
bool | operator!= (const Vector &rhs) const |
|
template<class Q = T> |
const std::enable_if<!std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) const |
|
template<class Q = T> |
std::enable_if< !std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) |
|
template<class Q = T> |
const std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) const |
|
template<class Q = T> |
std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) |
|
template<class Q = T> |
void | push_back (const typename std::enable_if< !std::is_base_of< Zerobuf, Q >::value, Q >::type &) |
| Insert a builtin element at the end of the vector. More...
|
|
template<class Q = T> |
void | push_back (const typename std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type &) |
| Insert a Zerobuf-derived element at the end of the vector. More...
|
|
void | reset (Allocator &alloc) |
|
void | compact (float) |
| Remove unused memory from vector and all members. More...
|
|
template<class Q = T> |
void | fromJSON (const Json::Value &json, const typename std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type *=nullptr) |
| Update this vector from its JSON representation. More...
|
|
template<class Q = T> |
void | fromJSON (const Json::Value &json, const typename std::enable_if< !std::is_base_of< Zerobuf, Q >::value, Q >::type *=nullptr) |
| Update this vector from its JSON representation. More...
|
|
template<class Q = T> |
void | toJSON (Json::Value &json, const typename std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type *=nullptr) const |
|
template<class Q = T> |
void | toJSON (Json::Value &json, const typename std::enable_if< !std::is_base_of< Zerobuf, Q >::value, Q >::type *=nullptr) const |
|
template<class Q = T> |
void | fromJSONBinary (const Json::Value &json, const typename std::enable_if< std::is_pod< Q >::value, Q >::type *=nullptr) |
| Update this vector from its JSON, base64-encoded representation. More...
|
|
template<class Q = T> |
void | toJSONBinary (Json::Value &json, const typename std::enable_if< std::is_pod< Q >::value, Q >::type *=nullptr) const |
|
template<class Q > |
const std::enable_if<!std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) const |
|
template<class Q > |
std::enable_if< !std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) |
|
template<class Q > |
const std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) const |
|
template<class Q > |
std::enable_if< std::is_base_of< Zerobuf, Q >::value, Q >::type & | operator[] (const size_t index) |
|
template<class Q > |
void | push_back (const typename std::enable_if<!std::is_base_of< Zerobuf, Q >::value, Q >::type &value) |
|
template<class Q > |
void | fromJSON (const Json::Value &json, const typename std::enable_if<!std::is_base_of< Zerobuf, Q >::value, Q >::type *) |
|
template<class T>
class zerobuf::Vector< T >
STL-like vector abstraction for dynamic arrays in a zerobuf.
- Parameters
-
Definition at line 28 of file types.h.