Photon 1.0.0
Loading...
Searching...
No Matches
mINI::INIMap< T > Class Template Reference

#include <ini.h>

Public Types

using const_iterator = typename T_DataContainer::const_iterator
 

Public Member Functions

 INIMap ()
 
 INIMap (INIMap const &other)
 
T & operator[] (std::string key)
 
get (std::string key) const
 
bool has (std::string key) const
 
void set (std::string key, T obj)
 
void set (T_MultiArgs const &multiArgs)
 
bool remove (std::string key)
 
void clear ()
 
std::size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Private Types

using T_DataIndexMap = std::unordered_map< std::string, std::size_t >
 
using T_DataItem = std::pair< std::string, T >
 
using T_DataContainer = std::vector< T_DataItem >
 
using T_MultiArgs = typename std::vector< std::pair< std::string, T > >
 

Private Member Functions

std::size_t setEmpty (std::string &key)
 

Private Attributes

T_DataIndexMap dataIndexMap
 
T_DataContainer data
 

Member Typedef Documentation

◆ const_iterator

template<typename T >
using mINI::INIMap< T >::const_iterator = typename T_DataContainer::const_iterator

◆ T_DataContainer

template<typename T >
using mINI::INIMap< T >::T_DataContainer = std::vector<T_DataItem>
private

◆ T_DataIndexMap

template<typename T >
using mINI::INIMap< T >::T_DataIndexMap = std::unordered_map<std::string, std::size_t>
private

◆ T_DataItem

template<typename T >
using mINI::INIMap< T >::T_DataItem = std::pair<std::string, T>
private

◆ T_MultiArgs

template<typename T >
using mINI::INIMap< T >::T_MultiArgs = typename std::vector<std::pair<std::string, T> >
private

Constructor & Destructor Documentation

◆ INIMap() [1/2]

template<typename T >
mINI::INIMap< T >::INIMap ( )
inline

◆ INIMap() [2/2]

template<typename T >
mINI::INIMap< T >::INIMap ( INIMap< T > const &  other)
inline

Member Function Documentation

◆ begin()

template<typename T >
const_iterator mINI::INIMap< T >::begin ( ) const
inline

◆ clear()

template<typename T >
void mINI::INIMap< T >::clear ( )
inline

◆ end()

template<typename T >
const_iterator mINI::INIMap< T >::end ( ) const
inline

◆ get()

template<typename T >
T mINI::INIMap< T >::get ( std::string  key) const
inline

◆ has()

template<typename T >
bool mINI::INIMap< T >::has ( std::string  key) const
inline

◆ operator[]()

template<typename T >
T & mINI::INIMap< T >::operator[] ( std::string  key)
inline

◆ remove()

template<typename T >
bool mINI::INIMap< T >::remove ( std::string  key)
inline

◆ set() [1/2]

template<typename T >
void mINI::INIMap< T >::set ( std::string  key,
obj 
)
inline

◆ set() [2/2]

template<typename T >
void mINI::INIMap< T >::set ( T_MultiArgs const &  multiArgs)
inline

◆ setEmpty()

template<typename T >
std::size_t mINI::INIMap< T >::setEmpty ( std::string &  key)
inlineprivate

◆ size()

template<typename T >
std::size_t mINI::INIMap< T >::size ( ) const
inline

Member Data Documentation

◆ data

template<typename T >
T_DataContainer mINI::INIMap< T >::data
private

◆ dataIndexMap

template<typename T >
T_DataIndexMap mINI::INIMap< T >::dataIndexMap
private

The documentation for this class was generated from the following file: