INIMap class.
More...
#include <ini.h>
|
using | const_iterator = typename T_DataContainer::const_iterator |
| Iterator for T_DataContainer.
|
|
|
| INIMap () |
| Constructor.
|
|
| INIMap (INIMap const &other) |
| Constructor.
|
|
T & | operator[] (std::string key) |
| Array item access operator.
|
|
T | get (std::string key) const |
| Gets Value of Key.
|
|
bool | has (std::string key) const |
| Check if Key exists.
|
|
void | set (std::string key, T obj) |
| Adds or modificating an existing Key with value Obj.
|
|
void | set (T_MultiArgs const &multiArgs) |
| Adds or modificating an existing Key with value Obj.
|
|
bool | remove (std::string key) |
| Remove Key and its value from dataIndexMap.
|
|
void | clear () |
| Clears all the data.
|
|
std::size_t | size () const |
| Returns number of pairs.
|
|
const_iterator | begin () const |
| Points the beginning item of data.
|
|
const_iterator | end () const |
| Points the last item of data.
|
|
template<typename T>
class mINI::INIMap< T >
INIMap class.
- Template Parameters
-
◆ INIMap()
◆ begin()
Points the beginning item of data.
- Returns
- Iterator of last item
◆ end()
Points the last item of data.
- Returns
- Iterator of last item
◆ get()
Gets Value of Key.
- Parameters
-
key | Key to search the Value |
- Returns
- Value of Key
◆ has()
Check if Key exists.
- Parameters
-
- Returns
- true if key was found, false otherwise
◆ operator[]()
Array item access operator.
- Parameters
-
[in] | key | Item key, that should be accessed |
- Returns
- Value of Key
◆ remove()
Remove Key and its value from dataIndexMap.
- Parameters
-
- Returns
- true if succeed, false otherwise
◆ set() [1/2]
Adds or modificating an existing Key with value Obj.
- Parameters
-
key | Key to add or modificate its value |
obj | Obj to assign with a key |
◆ set() [2/2]
template<typename T >
void mINI::INIMap< T >::set |
( |
T_MultiArgs const & | multiArgs | ) |
|
|
inline |
Adds or modificating an existing Key with value Obj.
- Parameters
-
multiArgs | Array of pair of Key,Value |
◆ size()
Returns number of pairs.
- Returns
- Number of data pairs
The documentation for this class was generated from the following file: