Struct ClassMap¶
Defined in File class_map.h
Struct Documentation¶
-
struct ClassMap¶
A mapping from class IDs to class names.
Public Functions
-
inline bool operator==(const ClassMap &other) const¶
Compare this ClassMap to another for equality.
Two ClassMaps are equal if they contain the same class IDs and the corresponding class names are equal.
- Parameters:
other[in] The ClassMap to compare to.
- Returns:
True if the ClassMaps are equal, false otherwise.
-
inline bool operator!=(const ClassMap &other) const¶
Compare this ClassMap to another for inequality.
Two ClassMaps are not equal if they do not contain the same class IDs or the corresponding class names are not equal.
- Parameters:
other[in] The ClassMap to compare to.
- Returns:
True if the ClassMaps are not equal, false otherwise.
-
inline std::unordered_map<int, std::string>::const_iterator begin() const¶
- Returns:
iterator to the beginning of the class map
-
inline std::unordered_map<int, std::string>::const_iterator end() const¶
- Returns:
iterator to the end of the class map
-
inline std::unordered_map<int, std::string>::iterator begin()¶
- Returns:
iterator to the beginning of the class map
-
inline std::unordered_map<int, std::string>::iterator end()¶
- Returns:
iterator to the end of the class map
Public Members
-
std::unordered_map<int, std::string> class_map¶
Mapping of class IDs to class names.
-
inline bool operator==(const ClassMap &other) const¶