53 return _map_int.count(from) != 0;
62 std::map<int, int>::const_iterator mi;
63 mi = _map_int.find(from);
64 if (mi == _map_int.end()) {
void clear()
Removes all mappings from the object.
bool in_map(int from) const
Returns true if the given 'from' integer has been assigned a mapping, false if it has not.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_mapping(int from, int to)
Adds a mapping from the integer 'from' to 'to'.
int map_from(int from) const
Returns the integer that the given 'from' integer had been set to map to, or the same integer if noth...