Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | List of all members
alsfvm::config::GenericParameters Class Reference

#include <alsfvm/config/GenericParameters.hpp>

Inheritance diagram for alsfvm::config::GenericParameters:
alsfvm::mpi::domain::DomainDecompositionParameters

Public Member Functions

 GenericParameters (const boost::property_tree::ptree &tree)
 
double getDouble (const std::string &key) const
 Gets a double parameter with key key. More...
 
int getInteger (const std::string &key) const
 Gets an integer parameter with key key. More...
 
double getDouble (const std::string &key, double defaultValue) const
 
int getInteger (const std::string &key, int defaultValue) const
 

Detailed Description

Base class to hold parameters through a boost property tree. To be passed around to other classes.

Constructor & Destructor Documentation

◆ GenericParameters()

alsfvm::config::GenericParameters::GenericParameters ( const boost::property_tree::ptree &  tree)

Member Function Documentation

◆ getDouble() [1/2]

double alsfvm::config::GenericParameters::getDouble ( const std::string &  key) const

Gets a double parameter with key key.

◆ getDouble() [2/2]

double alsfvm::config::GenericParameters::getDouble ( const std::string &  key,
double  defaultValue 
) const

Gets a double parameter with key key,

if they key does not exist, returns defaultValue

◆ getInteger() [1/2]

int alsfvm::config::GenericParameters::getInteger ( const std::string &  key) const

Gets an integer parameter with key key.

◆ getInteger() [2/2]

int alsfvm::config::GenericParameters::getInteger ( const std::string &  key,
int  defaultValue 
) const

Gets an integer parameter with key key

if they key does not exist, returns defaultValue


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