VMware GemFire Native Client Cache Reference
9.0.6
|
Represents a vector of gemfire::SharedBasePtr
More...
Data Structures | |
class | Iterator |
Interface of an iterator for VectorOfSharedBase . More... | |
Public Member Functions | |
SharedBasePtr & | at (int32_t n) |
Return the n'th element with bounds checking. More... | |
SharedBasePtr & | at (int32_t n) const |
Return the n'th element with bounds checking. More... | |
SharedBasePtr & | back () |
returns the last element. More... | |
const SharedBasePtr & | 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... | |
SharedBasePtr & | front () |
returns the first element. More... | |
const SharedBasePtr & | front () const |
returns the first element. More... | |
void | insert (int32_t index, const SharedBasePtr &t) |
insert object at the given index. More... | |
int32_t | max_size () const |
return the largest possible size of the vector. More... | |
VectorOfSharedBase & | operator= (const VectorOfSharedBase &other) |
assignment operator More... | |
SharedBasePtr & | operator[] (int32_t n) |
Return the n'th element. More... | |
const SharedBasePtr & | operator[] (int32_t n) const |
Return the n'th element. More... | |
void | pop_back () |
removes the last element. More... | |
void | push_back (const SharedBasePtr &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 SharedBasePtr &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 (VectorOfSharedBase &other) |
swaps the contents of two vectors. More... | |
VectorOfSharedBase () | |
Create an empty vector. More... | |
VectorOfSharedBase (int32_t n) | |
Create a vector with n elements allocated. More... | |
VectorOfSharedBase (int32_t n, const SharedBasePtr &t) | |
Create a vector with n copies of t. More... | |
VectorOfSharedBase (const VectorOfSharedBase &other) | |
copy constructor More... | |
~VectorOfSharedBase () | |
destructor, sets all SharedPtr elements to NULLPTR More... | |
Represents a vector of gemfire::SharedBasePtr
gemfire::VectorOfSharedBase::VectorOfSharedBase | ( | ) |
Create an empty vector.
gemfire::VectorOfSharedBase::VectorOfSharedBase | ( | int32_t | n | ) |
Create a vector with n elements allocated.
gemfire::VectorOfSharedBase::VectorOfSharedBase | ( | int32_t | n, |
const SharedBasePtr & | t | ||
) |
Create a vector with n copies of t.
gemfire::VectorOfSharedBase::VectorOfSharedBase | ( | const VectorOfSharedBase & | other | ) |
copy constructor
gemfire::VectorOfSharedBase::~VectorOfSharedBase | ( | ) |
destructor, sets all SharedPtr elements to NULLPTR
SharedBasePtr& gemfire::VectorOfSharedBase::at | ( | int32_t | n | ) |
Return the n'th element with bounds checking.
SharedBasePtr& gemfire::VectorOfSharedBase::at | ( | int32_t | n | ) | const |
Return the n'th element with bounds checking.
SharedBasePtr& gemfire::VectorOfSharedBase::back | ( | ) |
returns the last element.
const SharedBasePtr& gemfire::VectorOfSharedBase::back | ( | ) | const |
returns the last element.
Iterator gemfire::VectorOfSharedBase::begin | ( | ) | const |
Get an iterator pointing to the start of vector.
int32_t gemfire::VectorOfSharedBase::capacity | ( | ) | const |
return the number of elements allocated for this vector.
void gemfire::VectorOfSharedBase::clear | ( | ) |
erases all elements.
bool gemfire::VectorOfSharedBase::empty | ( | ) | const |
return true if the vector's size is 0.
Iterator gemfire::VectorOfSharedBase::end | ( | ) | const |
Get an iterator pointing to the end of vector.
void gemfire::VectorOfSharedBase::erase | ( | int32_t | index | ) |
removes the object at the specified index from a vector
SharedBasePtr& gemfire::VectorOfSharedBase::front | ( | ) |
returns the first element.
const SharedBasePtr& gemfire::VectorOfSharedBase::front | ( | ) | const |
returns the first element.
void gemfire::VectorOfSharedBase::insert | ( | int32_t | index, |
const SharedBasePtr & | t | ||
) |
insert object at the given index.
int32_t gemfire::VectorOfSharedBase::max_size | ( | ) | const |
return the largest possible size of the vector.
VectorOfSharedBase& gemfire::VectorOfSharedBase::operator= | ( | const VectorOfSharedBase & | other | ) |
assignment operator
SharedBasePtr& gemfire::VectorOfSharedBase::operator[] | ( | int32_t | n | ) |
Return the n'th element.
const SharedBasePtr& gemfire::VectorOfSharedBase::operator[] | ( | int32_t | n | ) | const |
Return the n'th element.
void gemfire::VectorOfSharedBase::pop_back | ( | ) |
removes the last element.
void gemfire::VectorOfSharedBase::push_back | ( | const SharedBasePtr & | e | ) |
insert a new element at the end.
void gemfire::VectorOfSharedBase::reserve | ( | int32_t | n | ) |
reallocate a vector to hold n elements.
void gemfire::VectorOfSharedBase::resize | ( | int32_t | n, |
const SharedBasePtr & | t = gemfire::NullSharedBase::s_instancePtr |
||
) |
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.
int32_t gemfire::VectorOfSharedBase::size | ( | ) | const |
return the size of the vector.
void gemfire::VectorOfSharedBase::swap | ( | VectorOfSharedBase & | other | ) |
swaps the contents of two vectors.