PeTar
N-body code for collisional gravitational systems
IOParams< Type > Struct Template Reference

#include <io.hpp>

Public Member Functions

template<class TContainer >
 IOParams (TContainer &_ioc, const Type &_value, const char *_key, const char *_name, const char *_defaulted=NULL, const bool _print_help_flag=true)
 
void print (std::ostream &os) const
 
void printHelp (std::ostream &os, const IOParamsPrintHelp &_align) const
 

Public Attributes

Type value
 
const char * key
 
const char * name
 
const char * defaulted
 
bool print_help_flag
 

Constructor & Destructor Documentation

◆ IOParams()

template<class Type >
template<class TContainer >
IOParams< Type >::IOParams ( TContainer &  _ioc,
const Type &  _value,
const char *  _key,
const char *  _name,
const char *  _defaulted = NULL,
const bool  _print_help_flag = true 
)
inline

Member Function Documentation

◆ print()

template<class Type >
void IOParams< Type >::print ( std::ostream &  os) const
inline
Here is the caller graph for this function:

◆ printHelp()

template<class Type >
void IOParams< Type >::printHelp ( std::ostream &  os,
const IOParamsPrintHelp _align 
) const
inline

Member Data Documentation

◆ defaulted

template<class Type >
const char* IOParams< Type >::defaulted

◆ key

template<class Type >
const char* IOParams< Type >::key

◆ name

template<class Type >
const char* IOParams< Type >::name

◆ print_help_flag

template<class Type >
bool IOParams< Type >::print_help_flag

◆ value

template<class Type >
Type IOParams< Type >::value

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