ejson::Array Class Reference
#include <Array.hpp>
Inheritance diagram for ejson::Array:
Public Types | |
using | iterator = ejson::iterator< ejson::Array > |
Additional Inherited Members | |
Protected Attributes inherited from ejson::Value | |
ememory::SharedPtr< ejson::internal::Value > | m_data |
Detailed Description
ejson Array interface [ ... ].
Member Typedef Documentation
§ iterator
Specify iterator of the Array methode.
Constructor & Destructor Documentation
§ Array() [1/3]
ejson::Array::Array | ( | ememory::SharedPtr< ejson::internal::Value > | _internalValue | ) |
Constructor.
- Parameters
-
[in] _internalValue Internal Value to set data
§ Array() [2/3]
ejson::Array::Array | ( | const ejson::Array & | _obj | ) |
Copy constructor.
- Parameters
-
[in] _obj Object to copy
§ Array() [3/3]
ejson::Array::Array | ( | ) |
Constructor.
Member Function Documentation
§ add()
bool ejson::Array::add | ( | const ejson::Value & | _element | ) |
add an element on the array.
- Parameters
-
[in] _element element to add.
- Returns
- false if an error occured.
§ begin() [1/2]
iterator ejson::Array::begin | ( | ) |
§ begin() [2/2]
const iterator ejson::Array::begin | ( | ) | const |
§ end() [1/2]
iterator ejson::Array::end | ( | ) |
§ end() [2/2]
const iterator ejson::Array::end | ( | ) | const |
§ operator=()
ejson::Array& ejson::Array::operator= | ( | const ejson::Array & | _obj | ) |
§ operator[]() [1/2]
ejson::Value ejson::Array::operator[] | ( | size_t | _id | ) |
get the pointer on an element reference with his ID.
- Parameters
-
[in] _id Id of the element.
- Returns
- nullptr if the element does not exist.
§ operator[]() [2/2]
const ejson::Value ejson::Array::operator[] | ( | size_t | _id | ) | const |
get the pointer on an element reference with his ID.
- Parameters
-
[in] _id Id of the element.
- Returns
- nullptr if the element does not exist.
§ remove() [1/2]
void ejson::Array::remove | ( | size_t | _id | ) |
Remove Value with his Id.
- Parameters
-
[in] _id Id of the element.
§ remove() [2/2]
§ size()
size_t ejson::Array::size | ( | ) | const |
get the number of sub element in the current one
- Returns
- the Number of stored element
The documentation for this class was generated from the following file:
- framework/atria-soft/ejson/ejson/Array.hpp