Struct ClassMapSet

Struct Documentation

struct ClassMapSet

A set of ClassMaps, indexed by string keys.

Public Functions

inline bool operator==(const ClassMapSet &other) const

Compare this ClassMapSet to another for equality.

Two ClassMapSets are equal if they contain the same keys and the corresponding ClassMaps are equal.

Parameters:

other[in] The ClassMapSet to compare to.

Returns:

True if the ClassMapSets are equal, false otherwise.

inline bool operator!=(const ClassMapSet &other) const

Compare this ClassMapSet to another for inequality.

Two ClassMapSets are not equal if they do not contain the same keys or the corresponding ClassMaps are not equal.

Parameters:

other[in] The ClassMapSet to compare to.

Returns:

True if the ClassMapSets are not equal, false otherwise.

inline std::vector<std::string> keys() const

Get the keys of the ClassMaps in this set.

Returns:

A vector of strings representing the keys of the ClassMaps in this set.

inline std::unordered_map<std::string, ClassMap>::const_iterator begin() const
Returns:

iterator to the beginning of the class maps

inline std::unordered_map<std::string, ClassMap>::const_iterator end() const
Returns:

iterator to the end of the class maps

inline std::unordered_map<std::string, ClassMap>::iterator begin()
Returns:

iterator to the beginning of the class maps

inline std::unordered_map<std::string, ClassMap>::iterator end()
Returns:

iterator to the end of the class maps

Public Members

std::unordered_map<std::string, ClassMap> class_maps

Mapping of string keys to ClassMaps.