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 ValueGetElementAt (SizeType index) const
 Const access an element.
ValueGetElementAt (SizeType index)
 Access an element.
const Valueoperator[] (SizeType index) const
 Const operator to access an element.
Valueoperator[] (SizeType index)
 Operator to access an element.
Arrayoperator= (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)

Copy Constructor.

Since :
2.4
Parameters:
[in]otherThe Array to copy from.

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

Clears the array.

Since :
2.4

Retrieve the number of elements in the array.

Since :
2.4
Returns:
The number of elements in the array.

Returns whether the array is empty.

Since :
2.4
Returns:
true if empty, false otherwise

Const access an element.

Since :
2.4
Parameters:
[in]indexThe element index to access. No bounds checking is performed.
Returns:
The a reference to the element.

Access an element.

Since :
2.4
Parameters:
[in]indexThe element index to access. No bounds checking is performed.
Returns:
The a reference to the element.
Array& Dali::Property::Array::operator= ( const Array other)

Assignment Operator.

Since :
2.4
Parameters:
[in]otherThe array to copy from.
Returns:
The copied array.
const Value& Dali::Property::Array::operator[] ( SizeType  index) const

Const operator to access an element.

Since :
2.4
Parameters:
[in]indexThe element index to access. No bounds checking is performed.
Returns:
The a reference to the element.
Value& Dali::Property::Array::operator[] ( SizeType  index)

Operator to access an element.

Since :
2.4
Parameters:
[in]indexThe 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]valueThe value to add to the end of the array

Increase the capcity of the array.

Since :
2.4

Resize to size.

Since :
2.4

Retrieve the number of elements in the array.

Since :
2.4
Returns:
The number of elements in the array.