libmoost
moost::container::simple_multi_map< TKey, TVal, TLocMap > Class Template Reference

#include <simple_multi_map.hpp>

Inheritance diagram for moost::container::simple_multi_map< TKey, TVal, TLocMap >:
Collaboration diagram for moost::container::simple_multi_map< TKey, TVal, TLocMap >:

List of all members.

Public Types

typedef multi_map< TKey, TVal,
TLocMap >::loc_map_policy_type 
loc_map_policy_type

Public Member Functions

 simple_multi_map (const loc_map_policy_type &locHandlerPolicy=loc_map_policy_type())
template<typename Reader >
void create_map (const std::string &dataFileName, int maxEntriesPerVec=std::numeric_limits< int >::max(), bool sortByValue=false)
template<typename Reader , typename ValueTransform >
void create_map (const std::string &dataFileName, const ValueTransform &valueTransformPolicy, int maxEntriesPerVec=std::numeric_limits< int >::max(), bool sortByValue=false)
template<typename Reader , typename ValueTransform >
void create_map (Reader &reader, const ValueTransform &valueTransformPolicy, int maxEntriesPerVec=std::numeric_limits< int >::max(), bool sortByValue=false)
void create_map_from_vector (std::vector< std::pair< TKey, TVal > > &i2i)

Detailed Description

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
class moost::container::simple_multi_map< TKey, TVal, TLocMap >

Definition at line 85 of file simple_multi_map.hpp.


Member Typedef Documentation

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
typedef multi_map<TKey, TVal, TLocMap>::loc_map_policy_type moost::container::simple_multi_map< TKey, TVal, TLocMap >::loc_map_policy_type

Reimplemented from moost::container::multi_map< TKey, TVal, TLocMap >.

Definition at line 89 of file simple_multi_map.hpp.


Constructor & Destructor Documentation

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
moost::container::simple_multi_map< TKey, TVal, TLocMap >::simple_multi_map ( const loc_map_policy_type locHandlerPolicy = loc_map_policy_type()) [inline]

Definition at line 95 of file simple_multi_map.hpp.


Member Function Documentation

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
template<typename Reader >
void moost::container::simple_multi_map< TKey, TVal, TLocMap >::create_map ( const std::string &  dataFileName,
int  maxEntriesPerVec = std::numeric_limits<int>::max(),
bool  sortByValue = false 
) [inline]

Definition at line 101 of file simple_multi_map.hpp.

Here is the caller graph for this function:

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
template<typename Reader , typename ValueTransform >
void moost::container::simple_multi_map< TKey, TVal, TLocMap >::create_map ( const std::string &  dataFileName,
const ValueTransform &  valueTransformPolicy,
int  maxEntriesPerVec = std::numeric_limits<int>::max(),
bool  sortByValue = false 
) [inline]

Definition at line 113 of file simple_multi_map.hpp.

Here is the call graph for this function:

template<typename TKey , typename TVal , typename TLocMap >
template<typename Reader , typename ValueTransform >
void moost::container::simple_multi_map< TKey, TVal, TLocMap >::create_map ( Reader &  reader,
const ValueTransform &  valueTransformPolicy,
int  maxEntriesPerVec = std::numeric_limits<int>::max(),
bool  sortByValue = false 
)

Definition at line 147 of file simple_multi_map.hpp.

Here is the call graph for this function:

template<typename TKey = int, typename TVal = std::pair<int, float>, typename TLocMap = moost::container::dense_hash_map<TKey, multimap_value_type>>
void moost::container::simple_multi_map< TKey, TVal, TLocMap >::create_map_from_vector ( std::vector< std::pair< TKey, TVal > > &  i2i) [inline]

Definition at line 132 of file simple_multi_map.hpp.


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