ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SolverOutput Class Reference

SolverOutput prints important performance information. More...

#include <SolverOutput.h>

Public Member Functions

const SolverOutputoperator<< (const std::string &message) const
 print string message
 
const SolverOutputoperator<< (float value) const
 print float value
 
void TurnOn (bool on)
 turn on/off actual output
 

Static Public Member Functions

static SolverOutputget (void)
 get singleton object
 

Detailed Description

SolverOutput prints important performance information.

Definition at line 25 of file SolverOutput.h.

Member Function Documentation

◆ get()

SolverOutput & SolverOutput::get ( void  )
static

get singleton object

Definition at line 21 of file SolverOutput.cpp.

22{
23 static SolverOutput d;
24 return d;
25}
SolverOutput prints important performance information.

Referenced by entry(), and mpqsolver::bisection::BisectionSolver::run().

◆ operator<<() [1/2]

const SolverOutput & SolverOutput::operator<< ( const std::string &  message) const

print string message

Definition at line 27 of file SolverOutput.cpp.

28{
29 if (_turn_on)
30 {
31 std::cout << message;
32 }
33
34 return *this;
35}

◆ operator<<() [2/2]

const SolverOutput & SolverOutput::operator<< ( float  value) const

print float value

Definition at line 37 of file SolverOutput.cpp.

38{
39 if (_turn_on)
40 {
41 std::cout << value;
42 }
43
44 return *this;
45}

◆ TurnOn()

void SolverOutput::TurnOn ( bool  on)

turn on/off actual output

Definition at line 47 of file SolverOutput.cpp.

47{ _turn_on = on; }

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