SmartEnumerators.h File Reference

Contains the interface to the smart enumerator classes. More...

#include <string>
#include <vector>
#include <algorithm>
#include <libpf/utility/EnumeratorInterface.h>

Classes

class  Libpf::Utility::SmartEnumerator< T >
 Trait type to define the a static set of valid values for a StringOption. More...
 

Namespaces

namespace  Libpf
 
namespace  Libpf::Utility
 

Enumerations

enum class  Libpf::Utility::ScalingMode : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::noscaling , Libpf::Utility::linear , Libpf::Utility::power ,
  Libpf::Utility::arctangent , Libpf::Utility::arctangentExclusive , Libpf::Utility::arctangentpower , Libpf::Utility::rational ,
  Libpf::Utility::log
}
 
enum class  Libpf::Utility::CutsSolution : int { Libpf::Utility::Null = 0 , Libpf::Utility::direct , Libpf::Utility::newton , Libpf::Utility::wegstein }
 
enum class  Libpf::Utility::MassBalanceMode : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::Nx , Libpf::Utility::Mx , Libpf::Utility::Nw ,
  Libpf::Utility::Mw , Libpf::Utility::N , Libpf::Utility::M
}
 
enum class  Libpf::Utility::FlashMode : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::PT , Libpf::Utility::PA , Libpf::Utility::PH ,
  Libpf::Utility::RH , Libpf::Utility::RT , Libpf::Utility::PS , Libpf::Utility::SA
}
 
enum class  Libpf::Utility::Direction : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::up , Libpf::Utility::down , Libpf::Utility::left ,
  Libpf::Utility::right
}
 
enum class  Libpf::Utility::PhaseType : int { Libpf::Utility::Null = 0 , Libpf::Utility::vapor , Libpf::Utility::liquid , Libpf::Utility::solid }
 
enum class  Libpf::Utility::PhaseIndex : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::vapor , Libpf::Utility::liquid1 , Libpf::Utility::liquid2 ,
  Libpf::Utility::liquid3 , Libpf::Utility::solid1 , Libpf::Utility::solid2 , Libpf::Utility::solid3 ,
  Libpf::Utility::solid4 , Libpf::Utility::solid5 , Libpf::Utility::solid6 , Libpf::Utility::solid7 ,
  Libpf::Utility::solid8 , Libpf::Utility::solid9
}
 
enum class  Libpf::Utility::Category : int {
  Libpf::Utility::Null = 0 , Libpf::Utility::phase , Libpf::Utility::stream , Libpf::Utility::unit ,
  Libpf::Utility::flowsheet , Libpf::Utility::option
}
 

Functions

template<typename T >
const std::string & Libpf::Utility::to_string (T e)
 
template<typename T >
const T Libpf::Utility::from_string (const std::string &s)
 
template<typename T >
void Libpf::Utility::increment (T &v, int delta)
 
template<typename T >
std::ostream & Libpf::Utility::operator<< (typename std::enable_if< std::is_enum< T >::value, std::ostream >::type &stream, const T &e)
 

Detailed Description

Contains the interface to the smart enumerator classes.

This file is part of LIBPF All rights reserved; do not distribute without permission.

Author
(C) Copyright 2004-2023 Paolo Greppi simevo s.r.l.