RobWorkProject
24.12.4-
|
A map from an unordered pair of frames to some value. More...
#include <FramePairMap.hpp>
Inherits PairMap< rw::core::Ptr< const Frame >, T >.
Public Member Functions | |
FramePairMap () | |
creates a map More... | |
FramePairMap (const T &defaultVal) | |
creates a map with an initial size of s More... | |
Public Member Functions inherited from PairMap< rw::core::Ptr< const Frame >, T > | |
PairMap () | |
creates a map | |
PairMap (const T &defaultVal) | |
creates a map with an initial size of s More... | |
void | insert (const Pair &pair, const T &value) |
inserts a value into the map More... | |
bool | has (const Pair &pair) const |
True iff a value for frame has been inserted in the map (or accessed using non-const operator[]). | |
bool | has (const rw::core::Ptr< const Frame > f1, const rw::core::Ptr< const Frame > f2) const |
True iff a value for frame has been inserted in the map (or accessed using operator[]). More... | |
const T & | operator[] (const Pair &pair) const |
return a reference to the value that is associated with the pair pair. More... | |
T & | operator[] (const Pair &pair) |
return a reference to the value that is associated with the pair More... | |
const T & | operator() (rw::core::Ptr< const Frame > f1, rw::core::Ptr< const Frame > f2) const |
return a reference to the value that is associated with the pair consisting of f1 and f2. More... | |
T & | operator() (rw::core::Ptr< const Frame > f1, rw::core::Ptr< const Frame > f2) |
return a reference to the value that is associated with the pair consisting of f1 and f2. More... | |
void | erase (const Pair &pair) |
Erase a pair from the map. More... | |
void | erase (rw::core::Ptr< const Frame > f1, rw::core::Ptr< const Frame > f2) |
Erase a pair from the map. More... | |
void | clear () |
Clear the map. | |
std::size_t | size () const |
Return the map size. More... | |
std::size_t | max_size () const |
Return maximum size. More... | |
bool | empty () const |
Test whether map is empty. More... | |
A map from an unordered pair of frames to some value.
|
inline |
creates a map
|
inline |
creates a map with an initial size of s
defaultVal | [in] the default value of new instances of T |