IOSS 2.0
Loading...
Searching...
No Matches
Iohb::Layout Class Reference

#include <Iohb_Layout.h>

Public Member Functions

 Layout (bool show_labels, int precision, std::string separator, int field_width)
 
 Layout (const Layout &)=delete
 
Layoutoperator= (const Layout &)=delete
 
const std::string layout () const
 
void add_literal (const std::string &label)
 
void add_legend (const std::string &label)
 
template<typename T >
void add (const std::string &name, const T &value)
 
template<typename T >
void add (const std::string &name, const std::vector< T > &value)
 
template<>
void add (const std::string &name, const double &value)
 
template<>
void add (const std::string &name, const std::vector< double > &value)
 

Private Member Functions

void output_common (const std::string &name)
 

Private Attributes

std::ostringstream layout_ {}
 
std::string separator_ {", "}
 
int precision_ {5}
 
int count_ {0}
 
int fieldWidth_ {0}
 
bool showLabels {true}
 
bool legendStarted {false}
 

Constructor & Destructor Documentation

◆ Layout() [1/2]

Iohb::Layout::Layout ( bool show_labels,
int precision,
std::string separator,
int field_width )

◆ Layout() [2/2]

Iohb::Layout::Layout ( const Layout & )
delete

Member Function Documentation

◆ add() [1/4]

template<>
void Iohb::Layout::add ( const std::string & name,
const double & value )

◆ add() [2/4]

template<>
void Iohb::Layout::add ( const std::string & name,
const std::vector< double > & value )

◆ add() [3/4]

template<typename T >
void Iohb::Layout::add ( const std::string & name,
const std::vector< T > & value )

◆ add() [4/4]

template<typename T >
void Iohb::Layout::add ( const std::string & name,
const T & value )

◆ add_legend()

void Iohb::Layout::add_legend ( const std::string & label)

◆ add_literal()

void Iohb::Layout::add_literal ( const std::string & label)

◆ layout()

const std::string Iohb::Layout::layout ( ) const
inline

◆ operator=()

Layout & Iohb::Layout::operator= ( const Layout & )
delete

◆ output_common()

void Iohb::Layout::output_common ( const std::string & name)
private

Member Data Documentation

◆ count_

int Iohb::Layout::count_ {0}
private

◆ fieldWidth_

int Iohb::Layout::fieldWidth_ {0}
private

◆ layout_

std::ostringstream Iohb::Layout::layout_ {}
private

◆ legendStarted

bool Iohb::Layout::legendStarted {false}
private

◆ precision_

int Iohb::Layout::precision_ {5}
private

◆ separator_

std::string Iohb::Layout::separator_ {", "}
private

◆ showLabels

bool Iohb::Layout::showLabels {true}
private

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