struct DataPackPointerComparator¶
Overview¶
Custom comparator functor used by sets of DataPack shared pointers. More…
#include <datapack_interface.h> struct DataPackPointerComparator { // typedefs typedef std::true_type is_transparent; // methods 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; };
Detailed Documentation¶
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.