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

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

Public Member Functions

 AliasComparator (AliasCache *parent)
 Constructor.
 
bool operator() (PoolIdx e, uint16_t alias) const
 Less-than action.
 
bool operator() (uint16_t alias, 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 256 of file AliasCache.hxx.

Constructor & Destructor Documentation

◆ AliasComparator()

openlcb::AliasCache::AliasComparator::AliasComparator ( AliasCache parent)
inline

Constructor.

Parameters
parentowning AliasCache.

Definition at line 261 of file AliasCache.hxx.

Member Function Documentation

◆ operator()() [1/3]

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

Less-than action.

Parameters
aleft hand side
bright hand side

Definition at line 285 of file AliasCache.hxx.

◆ operator()() [2/3]

bool openlcb::AliasCache::AliasComparator::operator() ( PoolIdx  e,
uint16_t  alias 
) const
inline

Less-than action.

Parameters
eleft hand side
aliasright hand side

Definition at line 269 of file AliasCache.hxx.

◆ operator()() [3/3]

bool openlcb::AliasCache::AliasComparator::operator() ( uint16_t  alias,
PoolIdx  e 
) const
inline

Less-than action.

Parameters
aliasleft hand side
eright hand side

Definition at line 277 of file AliasCache.hxx.

Member Data Documentation

◆ parent_

AliasCache* openlcb::AliasCache::AliasComparator::parent_
private

AliasCache whose pool we are indexing into.

Definition at line 292 of file AliasCache.hxx.


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