|
template<typename T , typename = typename std::enable_if<!std::is_base_of<Context, typename std::decay<T>::type>::value>::type> |
Context & | operator= (T &&value) |
| adds a value to the container More...
|
|
size_t | size () const |
| Get the size of the container. More...
|
|
Ref | operator[] (const std::string &key) |
| indexing by key. More...
|
|
Ref | operator[] (const int index) |
| indexing by index. More...
|
|
bool | contains (const std::string &key) const |
| checks the existence of an element by a specific key More...
|
|
bool | compare (const Context &other) const |
| compares two Context objects More...
|
|
std::vector< std::string > | getKeys () |
| returns a list of keys in the container-Context More...
|
|
void | push_back (const Context &data) |
| adds a object to the container. More...
|
|
double | getDouble () const |
| returns a double value from the container More...
|
|
long | getLong () const |
| returns a long value from the container More...
|
|
bool | getBool () const |
| returns a bool value from the container More...
|
|
std::string | getString () const |
| returns a std::string value from the container More...
|
|
unsigned char * | getDataPtr () const |
| returns a pointer to data from the container More...
|
|
void | setString (const char *str) |
| adds a value of type string to the container More...
|
|
void | setString (const std::string &str) |
| adds a value of type std::string to the container More...
|
|
void | setLong (long val) |
| adds a value of type long to the container More...
|
|
void | setDouble (double val) |
| adds a value of type double to the container More...
|
|
void | setBool (bool val) |
| adds a value of type bool to the container More...
|
|
unsigned char * | setDataPtr (void *ptr, int copy_sz=0) |
| adds a pointer to the data in the container More...
|
|
bool | isNone () const |
| checks if there are no elements in the container More...
|
|
bool | isArray () const |
| checks whether the container is an array More...
|
|
bool | isObject () const |
| checks whether the container is an object More...
|
|
bool | isBool () const |
| checks whether the container is a bool type value More...
|
|
bool | isLong () const |
| проверяет является ли контейнер значением типа long. More...
|
|
bool | isDouble () const |
| checks whether the container is a long type double More...
|
|
bool | isString () const |
| checks whether the container is a long type string More...
|
|
bool | isDataPtr () const |
| checks whether the container is a pointer to the data More...
|
|
void | clear () |
| clears the contents of the container-Context.
|
|
void | erase (const char *str) |
| deletes the contents of the container-Context stored by key. More...
|
|
void | erase (const std::string &str) |
| deletes the contents of the container-Context stored by key. More...
|
|
void | reserve (const size_t size) |
| allocates memory for num elements in the array. More...
|
|
void | saveToJsonFile (std::string &path) |
| saves the contents of the container to a json file More...
|
|
void | saveToJsonFile (const char *path) |
| saves the contents of the container to a json file More...
|
|