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