Libpf::Utility Namespace Reference
Classes | |
class | EnumeratorInterface |
Abstract interface for static and dynamics enumerators. More... | |
class | Option |
To define the individual values of an Enumerator. More... | |
class | SmartEnumerator |
Trait type to define the a static set of valid values for a StringOption. More... | |
Enumerations | |
enum class | ScalingMode : int { Null = 0 , noscaling , linear , power , arctangent , arctangentExclusive , arctangentpower , rational , log } |
enum class | CutsSolution : int { Null = 0 , direct , newton , wegstein } |
enum class | MassBalanceMode : int { Null = 0 , Nx , Mx , Nw , Mw , N , M } |
enum class | FlashMode : int { Null = 0 , PT , PA , PH , RH , RT , PS , SA } |
enum class | Direction : int { Null = 0 , up , down , left , right } |
enum class | PhaseType : int { Null = 0 , vapor , liquid , solid } |
enum class | PhaseIndex : int { Null = 0 , vapor , liquid1 , liquid2 , liquid3 , solid1 , solid2 , solid3 , solid4 , solid5 , solid6 , solid7 , solid8 , solid9 } |
enum class | Category : int { Null = 0 , phase , stream , unit , flowsheet , option } |
Functions | |
template<typename T > | |
const std::string & | to_string (T e) |
template<typename T > | |
const T | from_string (const std::string &s) |
template<typename T > | |
void | increment (T &v, int delta) |
template<typename T > | |
std::ostream & | operator<< (typename std::enable_if< std::is_enum< T >::value, std::ostream >::type &stream, const T &e) |
Enumeration Type Documentation
◆ Category
|
strong |
◆ CutsSolution
|
strong |
◆ Direction
|
strong |
◆ FlashMode
|
strong |
◆ MassBalanceMode
|
strong |
◆ PhaseIndex
|
strong |
◆ PhaseType
|
strong |
◆ ScalingMode
|
strong |
Function Documentation
◆ from_string()
template<typename T >
const T Libpf::Utility::from_string | ( | const std::string & | s | ) |
◆ increment()
template<typename T >
void Libpf::Utility::increment | ( | T & | v, |
int | delta | ||
) |
◆ operator<<()
template<typename T >
std::ostream & Libpf::Utility::operator<< | ( | typename std::enable_if< std::is_enum< T >::value, std::ostream >::type & | stream, |
const T & | e | ||
) |
◆ to_string()
template<typename T >
const std::string & Libpf::Utility::to_string | ( | T | e | ) |