Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes
Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL > Class Template Reference

Helper class for keeping Lists of Objects associated with keys. More...

#include <MapOfSets.h>

Public Types

typedef HashSet< SETVALUE, SETHASH, SETEQUAL > set_type
 
typedef HashMap< MAPKEY, set_type, MAPHASH, MAPEQUAL > map_type
 

Public Member Functions

 MapOfSets (map_type m)
 
map_type getMap ()
 
int32_t put (MAPKEY key, SETVALUE val)
 Adds val to the HashSet associated with key in the HashMap. If key is not already in the map, a new HashSet will first be created.
 
int32_t putAll (MAPKEY key, set_type vals)
 Adds multiple vals to the HashSet associated with key in the HashMap. If key is not already in the map, a new HashSet will first be created.
 

Protected Attributes

map_type theMap
 

Detailed Description

template<class MAPKEY, class MAPHASH, class MAPEQUAL, class SETVALUE, class SETHASH, class SETEQUAL>
class Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >

Helper class for keeping Lists of Objects associated with keys.

Member Typedef Documentation

◆ map_type

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
typedef HashMap<MAPKEY, set_type, MAPHASH, MAPEQUAL> Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::map_type

◆ set_type

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
typedef HashSet<SETVALUE, SETHASH, SETEQUAL> Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::set_type

Constructor & Destructor Documentation

◆ MapOfSets()

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::MapOfSets ( map_type  m)
inline

Member Function Documentation

◆ getMap()

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
map_type Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::getMap ( )
inline
Returns
direct access to the map backing this object.

References Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::theMap.

◆ put()

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
int32_t Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::put ( MAPKEY  key,
SETVALUE  val 
)
inline

◆ putAll()

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
int32_t Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::putAll ( MAPKEY  key,
set_type  vals 
)
inline

Field Documentation

◆ theMap

template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
map_type Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::theMap
protected

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

clucene.sourceforge.net