Tree Compression with Top Trees Revisited
Public Member Functions | Public Attributes | List of all members
StatWriter Struct Reference

A completely thread-safe statistics writer. More...

#include <Statistics.h>

Collaboration diagram for StatWriter:
Collaboration graph
[legend]

Public Member Functions

void open (const std::string &filename)
 
void close ()
 
template<typename T >
void write (const T &data, const bool newLine=true)
 

Public Attributes

std::mutex mutex
 
std::ofstream out
 

Detailed Description

A completely thread-safe statistics writer.

Definition at line 10 of file Statistics.h.

Member Function Documentation

void StatWriter::close ( )
inline

Definition at line 17 of file Statistics.h.

void StatWriter::open ( const std::string &  filename)
inline

Definition at line 11 of file Statistics.h.

template<typename T >
void StatWriter::write ( const T &  data,
const bool  newLine = true 
)
inline

Definition at line 25 of file Statistics.h.

Member Data Documentation

std::mutex StatWriter::mutex

Definition at line 35 of file Statistics.h.

std::ofstream StatWriter::out

Definition at line 36 of file Statistics.h.


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