https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Classes | Functions
ReporterState.h File Reference

Go to the source code of this file.

Classes

class  ReporterStateBase
 The base class for storing a Reporter's state. More...
 
class  ReporterState< T >
 A special version of RestartableData to aid in storing Reporter values. More...
 

Functions

bool operator< (const std::pair< ReporterMode, const MooseObject * > &a, const std::pair< ReporterMode, const MooseObject * > &b)
 Custom sort for ReporterState::_consumers so that they are sorted by object type, object name, and then mode, which makes for pretty output.
 

Function Documentation

◆ operator<()

bool operator< ( const std::pair< ReporterMode, const MooseObject * > &  a,
const std::pair< ReporterMode, const MooseObject * > &  b 
)

Custom sort for ReporterState::_consumers so that they are sorted by object type, object name, and then mode, which makes for pretty output.

Definition at line 22 of file ReporterState.C.

25{
26 // Sort by object type, object name, and then mode
27 return a.second->type() < b.second->type() ||
28 (a.second->type() == b.second->type() && a.second->name() < b.second->name()) ||
29 (a.second->type() == b.second->type() && a.second->name() == b.second->name() &&
30 a.first < b.first);
31}