Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::VirtualMemorySpace::RepeatComparator Struct Reference

STL-compatible comparator function for sorting RepeatElements. More...

Public Member Functions

bool operator() (const RepeatElement &a, const RepeatElement &b) const
 Sorting operator by end address.
 
bool operator() (uint32_t a, const RepeatElement &b) const
 Sorting operator by end address against a lookup key.
 

Detailed Description

STL-compatible comparator function for sorting RepeatElements.

Sorts repeats by the end_ as the key.

Definition at line 388 of file VirtualMemorySpace.hxx.

Member Function Documentation

◆ operator()() [1/2]

bool openlcb::VirtualMemorySpace::RepeatComparator::operator() ( const RepeatElement a,
const RepeatElement b 
) const
inline

Sorting operator by end address.

Definition at line 391 of file VirtualMemorySpace.hxx.

◆ operator()() [2/2]

bool openlcb::VirtualMemorySpace::RepeatComparator::operator() ( uint32_t  a,
const RepeatElement b 
) const
inline

Sorting operator by end address against a lookup key.

Definition at line 396 of file VirtualMemorySpace.hxx.


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