Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JClockwork< T > Struct Template Reference

Group of clocks. More...

#include <JClock.hh>

Inheritance diagram for JLANG::JClockwork< T >:
std::map< T, JClock >

Public Types

typedef std::map< T, JClock > map_type
 

Public Member Functions

 ~JClockwork ()
 Destructor.
 
void sets (std::ostream &out)
 Set output stream.
 
void sets ()
 Reset output stream.
 

Protected Attributes

std::ostream * out = NULL
 

Detailed Description

template<class T>
struct JLANG::JClockwork< T >

Group of clocks.

Definition at line 163 of file JClock.hh.

Member Typedef Documentation

◆ map_type

template<class T >
std::map<T, JClock> JLANG::JClockwork< T >::map_type

Definition at line 166 of file JClock.hh.

Constructor & Destructor Documentation

◆ ~JClockwork()

template<class T >
JLANG::JClockwork< T >::~JClockwork ( )
inline

Destructor.

The clock data will be printed to the set output stream.

Definition at line 173 of file JClock.hh.

174 {
175 if (out != NULL) {
176 for (typename map_type::const_iterator i = this->begin(); i != this->end(); ++i) {
177 *out << i->first << ' ' << i->second << std::endl;
178 }
179 }
180 }
std::ostream * out
Definition JClock.hh:203

Member Function Documentation

◆ sets() [1/2]

template<class T >
void JLANG::JClockwork< T >::sets ( std::ostream & out)
inline

Set output stream.

Parameters
outoutput stream

Definition at line 188 of file JClock.hh.

189 {
190 this->out = &out;
191 }

◆ sets() [2/2]

template<class T >
void JLANG::JClockwork< T >::sets ( )
inline

Reset output stream.

Definition at line 197 of file JClock.hh.

198 {
199 this->out = NULL;
200 }

Member Data Documentation

◆ out

template<class T >
std::ostream* JLANG::JClockwork< T >::out = NULL
protected

Definition at line 203 of file JClock.hh.


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