Inherits Object.
Public Member Functions | |
WStringArray () | |
Constructor. | |
WStringArray (const WStringArray &) | |
Constructor, with another array object. | |
~ WStringArray () | |
Destructor. | |
void | Add (WString element) |
Add an element to the end of current array. More... | |
WString | GetAt (size_t index) const |
Retrieve a copy of the element at position specified by index in current array. More... | |
size_t | GetSize () const |
Get the size of current array. More... | |
void | InsertAt (size_t index, WString element) |
Insert an element before the position specified by index. More... | |
WStringArray & | operator= (const WStringArray &other) |
Assign operator. More... | |
WString & | operator[] (size_t index) const |
Retrieve a reference to the element at position specified by index in current array. More... | |
void | RemoveAll () |
Remove all the element from current array. More... | |
void | RemoveAt (size_t index) |
Remove the element in position specified by index. More... | |
This class represents an array of WString objects.
void foxit::WStringArray::Add | ( | WString | element | ) |
Add an element to the end of current array.
[in] | element | New element to be added to current array. |
WString foxit::WStringArray::GetAt | ( | size_t | index | ) | const |
Retrieve a copy of the element at position specified by index in current array.
[in] | index | An index to specify which element is to be retrieved. |
size_t foxit::WStringArray::GetSize | ( | ) | const |
Get the size of current array.
void foxit::WStringArray::InsertAt | ( | size_t | index, |
WString | element | ||
) |
Insert an element before the position specified by index.
[in] | index | An index to specify where to insert the new element. Valid range: from 0 to (count-1). count is returned by function GetSize(). |
[in] | element | New element to be inserted to current array. |
WStringArray& foxit::WStringArray::operator= | ( | const WStringArray & | other | ) |
Assign operator.
[in] | other | Another array object, whose value will be assigned to current object. |
WString& foxit::WStringArray::operator[] | ( | size_t | index | ) | const |
Retrieve a reference to the element at position specified by index in current array.
[in] | index | An index to specify which element is to be retrieved. |
void foxit::WStringArray::RemoveAll | ( | ) |
Remove all the element from current array.
void foxit::WStringArray::RemoveAt | ( | size_t | index | ) |
Remove the element in position specified by index.
[in] | index | An index to specify which element is to be removed. Valid range: from 0 to (count-1). count is returned by function GetSize(). |