Custom comparator functor used by sets of DataPack shared pointers. More...
#include <datapack_interface.h>
Public Types | |
using | is_transparent = std::true_type |
Public Member Functions | |
bool | operator() (const std::shared_ptr< const DataPackInterface > &lhs, const std::shared_ptr< const DataPackInterface > &rhs) const |
bool | operator() (const std::shared_ptr< const DataPackInterface > &lhs, const DataPackIdentifier &rhs) const |
bool | operator() (const DataPackIdentifier &lhs, const std::shared_ptr< const DataPackInterface > &rhs) const |
Custom comparator functor used by sets of DataPack shared pointers.
This is a custom comparator that is used in all sets that store shared pointers to DataPacks. These sets should compare the content of the pointers, not the pointers themselves. The comparator uses the ID data of the DataPacks to decide if two pointers are equal.
using DataPackPointerComparator::is_transparent = std::true_type |
|
inline |
|
inline |
|
inline |