dune-fem  2.4.1-rc
Static Public Member Functions | List of all members
Dune::Fem::FemEocTable Class Reference

The Fem Eoc Table writer. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/misc/femeoctable.hh>

Static Public Member Functions

static FemEocTableinstance ()
 
static int initialize (const std::string &path, const std::string &name, const std::string &descript)
 
static int initialize (const std::string &name, const std::string &descript)
 
template<class StrVectorType >
static size_t addEntry (const int tabId, const StrVectorType &descript, size_t size)
 add a vector of new eoc values More...
 
template<class StrVectorType >
static size_t addEntry (const StrVectorType &descript, size_t size)
 
template<class StrVectorType >
static size_t addEntry (const int tabId, const StrVectorType &descript)
 add a vector of new eoc values More...
 
template<class StrVectorType >
static size_t addEntry (const StrVectorType &descript)
 
static size_t addEntry (const int tabId, const std::string &descript)
 add a single new eoc output More...
 
static size_t addEntry (const std::string &descript)
 
static size_t addEntry (const int tabId, const char *descript)
 add a single new eoc output More...
 
static size_t addEntry (const char *descript)
 
template<class VectorType >
static void setErrors (const int tabId, size_t id, const VectorType &err, int size)
 add a vector of error values for the given id (returned by addEntry) More...
 
template<class VectorType >
static void setErrors (size_t id, const VectorType &err, int size)
 
template<class VectorType >
static void setErrors (const int tabId, size_t id, const VectorType &err)
 add a vector of error values for the given id (returned by addEntry) More...
 
template<class VectorType >
static void setErrors (size_t id, const VectorType &err)
 
template<int SIZE>
static void setErrors (const int tabId, size_t id, const FieldVector< double, SIZE > &err)
 add a vector in a FieldVector of error values for the given id (returned by addEntry) More...
 
template<int SIZE>
static void setErrors (size_t id, const FieldVector< double, SIZE > &err)
 
static void setErrors (const int tabId, size_t id, const double &err)
 add a single error value for the given id (returned by addEntry) More...
 
static void setErrors (size_t id, const double &err)
 
static void write (const int tabId, std::vector< double > &vals, std::vector< std::string > &descriptions, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 commit a line to the eoc file More...
 
static void write (std::vector< double > &vals, std::vector< std::string > &descriptions, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 
template<class EocCalculatorType >
static void write (const int tabId, std::vector< double > &vals, std::vector< std::string > &descriptions, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 commit a line to the eoc file, using EocCalculatorType to calculate the eoc. More...
 
template<class EocCalculatorType >
static void write (std::vector< double > &vals, std::vector< std::string > &descriptions, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 
static void write (const int tabId, std::vector< double > &vals, std::vector< std::string > &descriptions, std::ostream &out, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 commit a line to the eoc file More...
 
static void write (std::vector< double > &vals, std::vector< std::string > &descriptions, std::ostream &out, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 
template<class EocCalculatorType >
static void write (const int tabId, std::vector< double > &vals, std::vector< std::string > &descriptions, std::ostream &out, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 commit a line to the eoc file, using EocCalculatorType for non standart Eoc calculations. More...
 
template<class EocCalculatorType >
static void write (std::vector< double > &vals, std::vector< std::string > &descriptions, std::ostream &out, std::string delimiter=" ", std::string terminatingChar="", std::string header="", std::string tableSpacer="", std::string footer="")
 

Detailed Description

The Fem Eoc Table writer.

Member Function Documentation

template<class StrVectorType >
static size_t Dune::Fem::FemEocTable::addEntry ( const int  tabId,
const StrVectorType &  descript,
size_t  size 
)
inlinestatic

add a vector of new eoc values

Parameters
tabIdId of the table we inserte a value
Template Parameters
StrVectorTypea vector type with operator[] returning a string (a C style array can be used) the size of the vector is given as parameter
Parameters
descriptvector with entry description
sizelength of description
Returns
a unique index used to add the error values
template<class StrVectorType >
static size_t Dune::Fem::FemEocTable::addEntry ( const StrVectorType &  descript,
size_t  size 
)
inlinestatic
template<class StrVectorType >
static size_t Dune::Fem::FemEocTable::addEntry ( const int  tabId,
const StrVectorType &  descript 
)
inlinestatic

add a vector of new eoc values

Parameters
tabIdId of the table we inserte a value
Template Parameters
StrVectorTypea vector type with size() and operator[] returning a string
Parameters
descriptvector with entry description
Returns
a unique index used to add the error values
template<class StrVectorType >
static size_t Dune::Fem::FemEocTable::addEntry ( const StrVectorType &  descript)
inlinestatic
static size_t Dune::Fem::FemEocTable::addEntry ( const int  tabId,
const std::string &  descript 
)
inlinestatic

add a single new eoc output

Parameters
tabIdId of the table we want to add an entry
descriptvector with entry description
Returns
a unique index used to add the error values
static size_t Dune::Fem::FemEocTable::addEntry ( const std::string &  descript)
inlinestatic
static size_t Dune::Fem::FemEocTable::addEntry ( const int  tabId,
const char *  descript 
)
inlinestatic

add a single new eoc output

Parameters
tabIdId of the table we want to add an entry
descriptvector with entry description
Returns
a unique index used to add the error values
static size_t Dune::Fem::FemEocTable::addEntry ( const char *  descript)
inlinestatic
static int Dune::Fem::FemEocTable::initialize ( const std::string &  path,
const std::string &  name,
const std::string &  descript 
)
inlinestatic

creates a new table and opens the corresponding file path/name returns the Id of the created table.

static int Dune::Fem::FemEocTable::initialize ( const std::string &  name,
const std::string &  descript 
)
inlinestatic

creates a new table and opens file name as above returns the Id of the table opened.

static FemEocTable& Dune::Fem::FemEocTable::instance ( )
inlinestatic
template<class VectorType >
static void Dune::Fem::FemEocTable::setErrors ( const int  tabId,
size_t  id,
const VectorType &  err,
int  size 
)
inlinestatic

add a vector of error values for the given id (returned by addEntry)

Parameters
tabIdId of the table we want to set errors
idId of the error
errVector containing the error
sizeSize of error Vector
Template Parameters
VectorTypea vector type with an operator[] returning a double (C style array can be used)
template<class VectorType >
static void Dune::Fem::FemEocTable::setErrors ( size_t  id,
const VectorType &  err,
int  size 
)
inlinestatic
template<class VectorType >
static void Dune::Fem::FemEocTable::setErrors ( const int  tabId,
size_t  id,
const VectorType &  err 
)
inlinestatic

add a vector of error values for the given id (returned by addEntry)

Parameters
tabIdId of the table we want to set errors
idId of the error
errVector containing the error
Template Parameters
VectorTypea vector type with a size() and an operator[] returning a double
template<class VectorType >
static void Dune::Fem::FemEocTable::setErrors ( size_t  id,
const VectorType &  err 
)
inlinestatic
template<int SIZE>
static void Dune::Fem::FemEocTable::setErrors ( const int  tabId,
size_t  id,
const FieldVector< double, SIZE > &  err 
)
inlinestatic

add a vector in a FieldVector of error values for the given id (returned by addEntry)

Parameters
tabIdId of the table we want to set errors
idId of the error
errVector containing the error
template<int SIZE>
static void Dune::Fem::FemEocTable::setErrors ( size_t  id,
const FieldVector< double, SIZE > &  err 
)
inlinestatic
static void Dune::Fem::FemEocTable::setErrors ( const int  tabId,
size_t  id,
const double &  err 
)
inlinestatic

add a single error value for the given id (returned by addEntry)

Parameters
tabIdId of the table we want to set errors
idId of the error
errVector containing the error
static void Dune::Fem::FemEocTable::setErrors ( size_t  id,
const double &  err 
)
inlinestatic
static void Dune::Fem::FemEocTable::write ( const int  tabId,
std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic

commit a line to the eoc file

Parameters
tabIdtable Id returned by the initial function
valsstd::vector of vals that should appear in the EOC table, vals[0] is expected to be a charateristical value.
descriptionsstd::vector with descriptions of the values that should appear
terminatingCharchar which ends an entry, default = " "
headerheader string for Latex output, default = ""
tableSpacerspacer for empty columns in the table, default = ""
footerfooter string for Latex output, default = ""
delimiterspacer between the entries, default =" "
static void Dune::Fem::FemEocTable::write ( std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic
template<class EocCalculatorType >
static void Dune::Fem::FemEocTable::write ( const int  tabId,
std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic

commit a line to the eoc file, using EocCalculatorType to calculate the eoc.

Parameters
tabIdtable Id returned by the initial function
valsstd::vector of vals that should appear in the EOC table, vals[0] is expected to be a charateristical value.
descriptionsstd::vector with descriptions of the values that should appear
terminatingCharchar which ends an entry, default = " "
headerheader string for Latex output, default = ""
tableSpacerspacer for empty columns in the table, default = ""
footerfooter string for Latex output, default = ""
delimiterspacer between the entries, default =" "
template<class EocCalculatorType >
static void Dune::Fem::FemEocTable::write ( std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic
static void Dune::Fem::FemEocTable::write ( const int  tabId,
std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::ostream &  out,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic

commit a line to the eoc file

Parameters
tabIdtable Id returned by the initial function
valsstd::vector of vals that should appear in the EOC table
descriptionsstd::vector with descriptions of the values that should appear
terminatingCharchar which ends an entry, default = " "
outstd::ostream to print data to (e.g. std::cout)
headerheader string for Latex output, default = " "
tableSpacerspacer for empty columns in the table, default = " "
footerfooter string for Latex output, default = " "
delimiterspacer between the entries, default " "
static void Dune::Fem::FemEocTable::write ( std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::ostream &  out,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic
template<class EocCalculatorType >
static void Dune::Fem::FemEocTable::write ( const int  tabId,
std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::ostream &  out,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic

commit a line to the eoc file, using EocCalculatorType for non standart Eoc calculations.

Parameters
tabIdtable Id returned by the initial function
valsstd::vector of vals that should appear in the EOC table
descriptionsstd::vector with descriptions of the values that should appear
terminatingCharchar which ends an entry, default = " "
outstd::ostream to print data to (e.g. std::cout)
headerheader string for Latex output, default = " "
tableSpacerspacer for empty columns in the table, default = " "
footerfooter string for Latex output, default = " "
delimiterspacer between the entries, default " "
template<class EocCalculatorType >
static void Dune::Fem::FemEocTable::write ( std::vector< double > &  vals,
std::vector< std::string > &  descriptions,
std::ostream &  out,
std::string  delimiter = " ",
std::string  terminatingChar = "",
std::string  header = "",
std::string  tableSpacer = "",
std::string  footer = "" 
)
inlinestatic

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