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.
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 |
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.
- Returns
- the size of the HashSet associated with key once val is added to it.
References Lucene::HashSet< TYPE, HASH, EQUAL >::add(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::end(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::find(), Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::put(), and Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::theMap.
template<class MAPKEY , class MAPHASH , class MAPEQUAL , class SETVALUE , class SETHASH , class SETEQUAL >
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.
- Returns
- the size of the HashSet associated with key once val is added to it.
References Lucene::HashSet< TYPE, HASH, EQUAL >::begin(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::end(), Lucene::HashSet< TYPE, HASH, EQUAL >::end(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::find(), Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance(), Lucene::HashMap< KEY, VALUE, HASH, EQUAL >::put(), Lucene::HashSet< TYPE, HASH, EQUAL >::size(), and Lucene::MapOfSets< MAPKEY, MAPHASH, MAPEQUAL, SETVALUE, SETHASH, SETEQUAL >::theMap.