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

#include <Trace.h>

Collaboration diagram for Trace:

Public Member Functions

 Trace (std::string name)
 ~Trace ()
void registerComponent (std::string name, std::shared_ptr< TraceComponent > component)
void unregisterComponent (std::string)
void log (std::ostringstream &dump)

Private Attributes

std::string name_
std::vector< std::shared_ptr< TraceComponent > > pipeline_
std::map< std::string, size_t > nameToIdx_

Detailed Description

Definition at line 31 of file Trace.h.

Constructor & Destructor Documentation

◆ Trace()

Trace::Trace ( std::string name)
inline

Definition at line 35 of file Trace.h.

References name, and name_.

◆ ~Trace()

Trace::~Trace ( )
inline

Definition at line 39 of file Trace.h.

Member Function Documentation

◆ log()

void Trace::log ( std::ostringstream & dump)
inline

Definition at line 53 of file Trace.h.

References pipeline_.

◆ registerComponent()

void Trace::registerComponent ( std::string name,
std::shared_ptr< TraceComponent > component )
inline

Definition at line 42 of file Trace.h.

References name, nameToIdx_, and pipeline_.

◆ unregisterComponent()

void Trace::unregisterComponent ( std::string )
inline

Definition at line 49 of file Trace.h.

Member Data Documentation

◆ name_

std::string Trace::name_
private

Definition at line 61 of file Trace.h.

Referenced by Trace().

◆ nameToIdx_

std::map< std::string, size_t > Trace::nameToIdx_
private

Definition at line 64 of file Trace.h.

Referenced by registerComponent().

◆ pipeline_

std::vector< std::shared_ptr<TraceComponent> > Trace::pipeline_
private

Definition at line 63 of file Trace.h.

Referenced by log(), and registerComponent().


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