NRP Core  1.4.1
DataPackPointerComparator Struct Reference

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
 

Detailed Description

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.

Member Typedef Documentation

◆ is_transparent

Member Function Documentation

◆ operator()() [1/3]

bool DataPackPointerComparator::operator() ( const DataPackIdentifier lhs,
const std::shared_ptr< const DataPackInterface > &  rhs 
) const
inline

◆ operator()() [2/3]

bool DataPackPointerComparator::operator() ( const std::shared_ptr< const DataPackInterface > &  lhs,
const DataPackIdentifier rhs 
) const
inline

◆ operator()() [3/3]

bool DataPackPointerComparator::operator() ( const std::shared_ptr< const DataPackInterface > &  lhs,
const std::shared_ptr< const DataPackInterface > &  rhs 
) const
inline

The documentation for this struct was generated from the following file: