Class sdm::RecursiveMap< T0, T1 >
template <class T0 class T0, class T1 class T1>
Class List > sdm > RecursiveMap< T0, T1 >
RecursiveMap specialization when it is simple map.More...
#include <recursive_map.hpp>
Inherits the following classes: map_t< T0, T1 >
Public Types
Type | Name |
---|---|
typedef RecursiveMap< T0, T1 > | type |
typedef value_type | value_list_type |
typedef std::pair< const T0, T1 > | value_type |
Public Functions
Type | Name |
---|---|
RecursiveMap () | |
RecursiveMap (const map_t< T0, T1 > & x) | |
RecursiveMap (const RecursiveMap & rmap) | |
RecursiveMap (std::initializer_list< value_type > vals) | |
T1 | operator() (T0 v0) Get a specific item. |
void | recursive_emplace (T0 v0, T1 v1) Emplace a specific element. |
Protected Functions
Type | Name |
---|---|
void | serialize (Archive & archive, const unsigned int) |
Detailed Description
Template parameters:
T0
the type of the first map itemT1
the type of the second map item
Public Types Documentation
typedef type
using sdm::RecursiveMap< T0, T1 >::type = RecursiveMap<T0, T1>;
typedef value_list_type
using sdm::RecursiveMap< T0, T1 >::value_list_type = value_type;
typedef value_type
using sdm::RecursiveMap< T0, T1 >::value_type = std::pair<const T0, T1>;
Public Functions Documentation
function RecursiveMap [1/4]
inline sdm::RecursiveMap< T0, T1 >::RecursiveMap ()
function RecursiveMap [2/4]
inline sdm::RecursiveMap< T0, T1 >::RecursiveMap (
const map_t < T0, T1 > & x
)
function RecursiveMap [3/4]
inline sdm::RecursiveMap< T0, T1 >::RecursiveMap (
const RecursiveMap & rmap
)
function RecursiveMap [4/4]
inline sdm::RecursiveMap< T0, T1 >::RecursiveMap (
std::initializer_list< value_type > vals
)
function operator()
T1 sdm::RecursiveMap< T0, T1 >::operator() (
T0 v0
)
function recursive_emplace
void sdm::RecursiveMap< T0, T1 >::recursive_emplace (
T0 v0,
T1 v1
)
Parameters:
v0
the keyv1
the value
Protected Functions Documentation
function serialize
template<class Archive class Archive>
inline void sdm::RecursiveMap< T0, T1 >::serialize (
Archive & archive,
const unsigned int
)
Friends Documentation
friend access
friend class sdm::RecursiveMap< T0, T1 >::access ()
friend operator<<
inline friend std::ostream & sdm::RecursiveMap< T0, T1 >::operator<< (
std::ostream & os,
RecursiveMap < T0, T1 > rmap
)
The documentation for this class was generated from the following file src/sdm/utils/struct/recursive_map.hpp