Tizen Native API  4.0
Dali::Property::Array Class Reference

A Array of property values. More...

Public Member Functions

 Array ()
 Default constructor.
 Array (const Array &other)
 Copy Constructor.
 ~Array ()
 Non-virtual destructor.
SizeType Size () const
 Retrieves the number of elements in the array.
SizeType Count () const
 Retrieves 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)
 Increases the capacity of the array.
void Resize (SizeType size)
 Resizes to size.
SizeType Capacity ()
 Retrieves the capacity of the array.
void PushBack (const Value &value)
 Adds an element to the array.
Property::ArrayAdd (const Value &value)
 Add an element to the array.
const ValueGetElementAt (SizeType index) const
 Const access an element.
ValueGetElementAt (SizeType index)
 Accesses 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.

Friends

std::ostream & operator<< (std::ostream &stream, const Property::Array &array)
 Output to stream.

Detailed Description

A Array of property values.

Since:
3.0, DALi version 1.0.0

Constructor & Destructor Documentation

Default constructor.

Since:
3.0, DALi version 1.0.0
Dali::Property::Array::Array ( const Array other)

Copy Constructor.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]otherThe Array to copy from

Non-virtual destructor.

Since:
3.0, DALi version 1.0.0

Member Function Documentation

Add an element to the array.

Since:
4.0, DALi version 1.2.11
Parameters:
[in]valueThe value to add to the end of the array
Returns:
A reference to this object

Retrieves the capacity of the array.

Since:
3.0, DALi version 1.0.0
Returns:
The allocated capacity of the array

Clears the array.

Since:
3.0, DALi version 1.0.0
SizeType Dali::Property::Array::Count ( ) const

Retrieves the number of elements in the array.

Since:
3.0, DALi version 1.0.0
Returns:
The number of elements in the array

Returns whether the array is empty.

Since:
3.0, DALi version 1.0.0
Returns:
true if empty, false otherwise
const Value& Dali::Property::Array::GetElementAt ( SizeType  index) const

Const access an element.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]indexThe element index to access. No bounds checking is performed
Returns:
The a reference to the element

Accesses an element.

Since:
3.0, DALi version 1.0.0
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:
3.0, DALi version 1.0.0
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:
3.0, DALi version 1.0.0
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:
3.0, DALi version 1.0.0
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)

Adds an element to the array.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]valueThe value to add to the end of the array
void Dali::Property::Array::Reserve ( SizeType  size)

Increases the capacity of the array.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]sizeThe size to reserve
void Dali::Property::Array::Resize ( SizeType  size)

Resizes to size.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]sizeThe size to resize
SizeType Dali::Property::Array::Size ( ) const

Retrieves the number of elements in the array.

Since:
3.0, DALi version 1.0.0
Returns:
The number of elements in the array

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Property::Array array 
) [friend]

Output to stream.

Since:
3.0, DALi version 1.1.28
Since:
3.0, DALi version 1.1.28
Parameters:
[in]streamThe output stream operator
[in]arrayThe array to insert
Returns:
The output stream operator