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

enum class Libpf::Utility::Category : int
strong
Enumerator
Null 
phase 
stream 
unit 
flowsheet 
option 

◆ CutsSolution

enum class Libpf::Utility::CutsSolution : int
strong
Enumerator
Null 
direct 
newton 
wegstein 

◆ Direction

enum class Libpf::Utility::Direction : int
strong
Enumerator
Null 
up 
down 
left 
right 

◆ FlashMode

enum class Libpf::Utility::FlashMode : int
strong
Enumerator
Null 
PT 
PA 
PH 
RH 
RT 
PS 
SA 

◆ MassBalanceMode

enum class Libpf::Utility::MassBalanceMode : int
strong
Enumerator
Null 
Nx 
Mx 
Nw 
Mw 

◆ PhaseIndex

enum class Libpf::Utility::PhaseIndex : int
strong
Enumerator
Null 
vapor 
liquid1 
liquid2 
liquid3 
solid1 
solid2 
solid3 
solid4 
solid5 
solid6 
solid7 
solid8 
solid9 

◆ PhaseType

enum class Libpf::Utility::PhaseType : int
strong
Enumerator
Null 
vapor 
liquid 
solid 

◆ ScalingMode

enum class Libpf::Utility::ScalingMode : int
strong
Enumerator
Null 
noscaling 
linear 
power 
arctangent 
arctangentExclusive 
arctangentpower 
rational 
log 

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 ( e)