Tizen Native API
|
Dali::Property::Array Class Reference
A Array of property values. More...
Public Types | |
typedef std::size_t | SizeType |
Size type. | |
Public Member Functions | |
Array () | |
Default constructor. | |
Array (const Array &other) | |
Copy Constructor. | |
~Array () | |
Non-virtual destructor. | |
SizeType | Size () const |
Retrieve the number of elements in the array. | |
SizeType | Count () const |
Retrieve the number of elements in the array. | |
bool | Empty () const |
Returns whether the array is empty. | |
void | Clear () |
Clears the array. | |
void | Reserve (SizeType size) |
Increase the capcity of the array. | |
void | Resize (SizeType size) |
Resize to size. | |
SizeType | Capacity () |
Retrieve the capacity of the array. | |
void | PushBack (const Value &value) |
Add an element to the array. | |
const Value & | GetElementAt (SizeType index) const |
Const access an element. | |
Value & | GetElementAt (SizeType index) |
Access an element. | |
const Value & | operator[] (SizeType index) const |
Const operator to access an element. | |
Value & | operator[] (SizeType index) |
Operator to access an element. | |
Array & | operator= (const Array &other) |
Assignment Operator. |
Detailed Description
A Array of property values.
- Since :
- 2.4
Member Typedef Documentation
typedef std::size_t Dali::Property::Array::SizeType |
Size type.
- Since :
- 2.4
Constructor & Destructor Documentation
Default constructor.
- Since :
- 2.4
Dali::Property::Array::Array | ( | const Array & | other | ) |
Non-virtual destructor.
- Since :
- 2.4
Member Function Documentation
Retrieve the capacity of the array.
- Since :
- 2.4
- Returns:
- The allocated capacity of the array
void Dali::Property::Array::Clear | ( | ) |
Clears the array.
- Since :
- 2.4
SizeType Dali::Property::Array::Count | ( | ) | const |
Retrieve the number of elements in the array.
- Since :
- 2.4
- Returns:
- The number of elements in the array.
bool Dali::Property::Array::Empty | ( | ) | const |
Returns whether the array is empty.
- Since :
- 2.4
- Returns:
- true if empty, false otherwise
const Value& Dali::Property::Array::GetElementAt | ( | SizeType | index | ) | const |
Const access an element.
- Since :
- 2.4
- Parameters:
-
[in] index The element index to access. No bounds checking is performed.
- Returns:
- The a reference to the element.
Value& Dali::Property::Array::GetElementAt | ( | SizeType | index | ) |
Access an element.
- Since :
- 2.4
- Parameters:
-
[in] index The element index to access. No bounds checking is performed.
- Returns:
- The a reference to the element.
Assignment Operator.
- Since :
- 2.4
- Parameters:
-
[in] other The array to copy from.
- Returns:
- The copied array.
Const operator to access an element.
- Since :
- 2.4
- Parameters:
-
[in] index The element index to access. No bounds checking is performed.
- Returns:
- The a reference to the element.
Operator to access an element.
- Since :
- 2.4
- Parameters:
-
[in] index The element index to access. No bounds checking is performed.
- Returns:
- The a reference to the element.
void Dali::Property::Array::PushBack | ( | const Value & | value | ) |
Add an element to the array.
- Since :
- 2.4
- Parameters:
-
[in] value The value to add to the end of the array
void Dali::Property::Array::Reserve | ( | SizeType | size | ) |
Increase the capcity of the array.
- Since :
- 2.4
void Dali::Property::Array::Resize | ( | SizeType | size | ) |
Resize to size.
- Since :
- 2.4
SizeType Dali::Property::Array::Size | ( | ) | const |
Retrieve the number of elements in the array.
- Since :
- 2.4
- Returns:
- The number of elements in the array.