ejson::Array Class Reference
#include <Array.hpp>
Inheritance diagram for ejson::Array:

Public Types | |
using | iterator = ejson::iterator< ejson::Array > |
Additional Inherited Members | |
![]() | |
ememory::SharedPtr< ejson::internal::Value > | m_data |
Detailed Description
ejson Array interface [ ... ].
Member Typedef Documentation
Specify iterator of the Array methode.
Constructor & Destructor Documentation
ejson::Array::Array | ( | ememory::SharedPtr< ejson::internal::Value > | _internalValue | ) |
Constructor.
- Parameters
-
[in] _internalValue Internal Value to set data
ejson::Array::Array | ( | const ejson::Array & | _obj | ) |
Copy constructor.
- Parameters
-
[in] _obj Object to copy
ejson::Array::Array | ( | ) |
Constructor.
Member Function Documentation
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.
iterator ejson::Array::begin | ( | ) |
const iterator ejson::Array::begin | ( | ) | const |
iterator ejson::Array::end | ( | ) |
const iterator ejson::Array::end | ( | ) | const |
ejson::Array& ejson::Array::operator= | ( | const ejson::Array & | _obj | ) |
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.
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.
void ejson::Array::remove | ( | size_t | _id | ) |
Remove Value with his Id.
- Parameters
-
[in] _id Id of the element.
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