Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::AliasCache::IdComparator Class Reference

Comparator object comparing the aliases stored in the pool. More...

Public Member Functions

 IdComparator (AliasCache *parent)
 Constructor.
 
bool operator() (PoolIdx e, NodeID id) const
 Less-than action.
 
bool operator() (NodeID id, PoolIdx e) const
 Less-than action.
 
bool operator() (PoolIdx a, PoolIdx b) const
 Less-than action.
 

Private Attributes

AliasCacheparent_
 AliasCache whose pool we are indexing into.
 

Detailed Description

Comparator object comparing the aliases stored in the pool.

Definition at line 296 of file AliasCache.hxx.

Constructor & Destructor Documentation

◆ IdComparator()

openlcb::AliasCache::IdComparator::IdComparator ( AliasCache parent)
inline

Constructor.

Parameters
parentowning AliasCache.

Definition at line 301 of file AliasCache.hxx.

Member Function Documentation

◆ operator()() [1/3]

bool openlcb::AliasCache::IdComparator::operator() ( NodeID  id,
PoolIdx  e 
) const
inline

Less-than action.

Parameters
idleft hand side
eright hand side

Definition at line 317 of file AliasCache.hxx.

◆ operator()() [2/3]

bool openlcb::AliasCache::IdComparator::operator() ( PoolIdx  a,
PoolIdx  b 
) const
inline

Less-than action.

Parameters
aleft hand side
bright hand side

Definition at line 325 of file AliasCache.hxx.

◆ operator()() [3/3]

bool openlcb::AliasCache::IdComparator::operator() ( PoolIdx  e,
NodeID  id 
) const
inline

Less-than action.

Parameters
eleft hand side
idright hand side

Definition at line 309 of file AliasCache.hxx.

Member Data Documentation

◆ parent_

AliasCache* openlcb::AliasCache::IdComparator::parent_
private

AliasCache whose pool we are indexing into.

Definition at line 333 of file AliasCache.hxx.


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