VMware GemFire Native Client Cache Reference
9.0.6
|
Vector template type class. More...
Inherited by gemfire::CacheableObjectArray, gemfire::VectorOfCacheable, and gemfire::VectorOfCacheableKey.
Data Structures | |
class | Iterator |
Interface of an iterator for VectorT . More... | |
Public Member Functions | |
PTR_TYPE | at (int32_t n) |
Return the n'th element with bounds checking. More... | |
const PTR_TYPE | at (int32_t n) const |
Return the n'th element with bounds checking. More... | |
PTR_TYPE | back () |
returns the last element. More... | |
const PTR_TYPE | back () const |
returns the last element. More... | |
Iterator | begin () const |
Get an iterator pointing to the start of vector. More... | |
int32_t | capacity () const |
return the number of elements allocated for this vector. More... | |
void | clear () |
erases all elements. More... | |
bool | empty () const |
return true if the vector's size is 0. More... | |
Iterator | end () const |
Get an iterator pointing to the end of vector. More... | |
void | erase (int32_t index) |
Removes the object at the specified index from a vector. More... | |
PTR_TYPE | front () |
returns the first element. More... | |
const PTR_TYPE | front () const |
returns the first element. More... | |
void | insert (int32_t index, const PTR_TYPE &t) |
insert object at the given position. More... | |
int32_t | length () const |
synonym for size. More... | |
int32_t | max_size () const |
return the largest possible size of the vector. More... | |
VectorT & | operator= (const VectorT &other) |
assignment operator More... | |
PTR_TYPE | operator[] (int32_t n) |
Return the n'th element. More... | |
const PTR_TYPE | operator[] (int32_t n) const |
Return the n'th element. More... | |
void | pop_back () |
removes the last element. More... | |
void | push_back (const PTR_TYPE &e) |
insert a new element at the end. More... | |
void | reserve (int32_t n) |
reallocate a vector to hold n elements. More... | |
void | resize (int32_t n, const PTR_TYPE &t=gemfire::NullSharedBase::s_instancePtr) |
inserts or erases elements at the end such that size becomes n. More... | |
int32_t | size () const |
return the size of the vector. More... | |
void | swap (VectorT &other) |
swaps the contents of two vectors. More... | |
VectorT () | |
Create an empty vector. More... | |
VectorT (int32_t n) | |
Create a vector with n elements allocated. More... | |
VectorT (int32_t n, const PTR_TYPE &t) | |
Create a vector with n copies of t. More... | |
VectorT (const VectorT &other) | |
copy constructor More... | |
~VectorT () | |
destructor, sets all SharedPtr elements to NULLPTR More... | |
Vector template type class.
|
inline |
Create an empty vector.
|
inline |
Create a vector with n elements allocated.
|
inline |
Create a vector with n copies of t.
|
inline |
copy constructor
|
inline |
destructor, sets all SharedPtr elements to NULLPTR
|
inline |
Return the n'th element with bounds checking.
|
inline |
Return the n'th element with bounds checking.
|
inline |
returns the last element.
|
inline |
returns the last element.
|
inline |
Get an iterator pointing to the start of vector.
|
inline |
return the number of elements allocated for this vector.
|
inline |
erases all elements.
|
inline |
return true if the vector's size is 0.
|
inline |
Get an iterator pointing to the end of vector.
|
inline |
Removes the object at the specified index from a vector.
|
inline |
returns the first element.
|
inline |
returns the first element.
|
inline |
insert object at the given position.
|
inline |
synonym for size.
|
inline |
return the largest possible size of the vector.
|
inline |
assignment operator
|
inline |
Return the n'th element.
|
inline |
Return the n'th element.
|
inline |
removes the last element.
|
inline |
insert a new element at the end.
|
inline |
reallocate a vector to hold n elements.
|
inline |
inserts or erases elements at the end such that size becomes n.
Not to be confused with reserve which simply allocates the space, resize fills the space with active elements.
|
inline |
return the size of the vector.
|
inline |
swaps the contents of two vectors.