OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
CoutSink Class Reference

#include <CoutSink.h>

Inheritance diagram for CoutSink:
Collaboration diagram for CoutSink:

Public Member Functions

 CoutSink (std::string prefix="")
 ~CoutSink ()
void setColor (std::string color)
void setClearColor (std::string color)
void execute (std::ostringstream &dump)
void prepend (std::ostringstream &dump, std::ostringstream &prepender)
void prepend (std::ostringstream &dump, std::string prepender)

Private Attributes

std::string prefix_
std::string color_
std::string clear_color_
std::string name_

Detailed Description

Definition at line 29 of file CoutSink.h.

Constructor & Destructor Documentation

◆ CoutSink()

CoutSink::CoutSink ( std::string prefix = "")
inline

Definition at line 34 of file CoutSink.h.

References clear_color_, prefix_, and TraceComponent::TraceComponent().

Here is the call graph for this function:

◆ ~CoutSink()

CoutSink::~CoutSink ( )
inline

Definition at line 41 of file CoutSink.h.

Member Function Documentation

◆ execute()

void CoutSink::execute ( std::ostringstream & dump)
inlinevirtual

Implements TraceComponent.

Definition at line 49 of file CoutSink.h.

References clear_color_, color_, and prefix_.

◆ prepend() [1/2]

void TraceComponent::prepend ( std::ostringstream & dump,
std::ostringstream & prepender )
inlineinherited

Definition at line 39 of file TraceComponent.h.

Referenced by Timestamp::execute().

◆ prepend() [2/2]

void TraceComponent::prepend ( std::ostringstream & dump,
std::string prepender )
inlineinherited

Definition at line 47 of file TraceComponent.h.

◆ setClearColor()

void CoutSink::setClearColor ( std::string color)
inline

Definition at line 46 of file CoutSink.h.

References clear_color_.

◆ setColor()

void CoutSink::setColor ( std::string color)
inline

Definition at line 45 of file CoutSink.h.

References color_.

Member Data Documentation

◆ clear_color_

std::string CoutSink::clear_color_
private

Definition at line 59 of file CoutSink.h.

Referenced by CoutSink(), execute(), and setClearColor().

◆ color_

std::string CoutSink::color_
private

Definition at line 58 of file CoutSink.h.

Referenced by execute(), and setColor().

◆ name_

std::string TraceComponent::name_
privateinherited

Definition at line 58 of file TraceComponent.h.

Referenced by TraceComponent().

◆ prefix_

std::string CoutSink::prefix_
private

Definition at line 57 of file CoutSink.h.

Referenced by CoutSink(), and execute().


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