CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Public Member Functions | List of all members
Dictionary Class Reference

Detailed Description

Definition at line 61 of file CoolPropTools.h.

#include <CoolPropTools.h>

Public Member Functions

 Dictionary ()
 
bool is_empty (void) const
 
void add_string (const std::string &s1, const std::string &s2)
 
void add_number (const std::string &s1, double d)
 
bool has_number (const std::string &s1)
 
void add_double_vector (const std::string &s1, const std::vector< double > &d)
 
void add_string_vector (const std::string &s1, const std::vector< std::string > &d)
 
std::string get_string (const std::string &s) const
 
double get_double (const std::string &s) const
 
double get_double (const std::string &s, const double default_value) const
 Get a double, or return the default value if not found. More...
 
double get_number (const std::string &s) const
 
const std::vector< double > & get_double_vector (const std::string &s) const
 
const std::vector< std::string > & get_string_vector (const std::string &s) const
 

Constructor & Destructor Documentation

◆ Dictionary()

Dictionary::Dictionary ( )
inline

Definition at line 74 of file CoolPropTools.h.

Member Function Documentation

◆ add_double_vector()

void Dictionary::add_double_vector ( const std::string &  s1,
const std::vector< double > &  d 
)
inline

Definition at line 88 of file CoolPropTools.h.

◆ add_number()

void Dictionary::add_number ( const std::string &  s1,
double  d 
)
inline

Definition at line 81 of file CoolPropTools.h.

◆ add_string()

void Dictionary::add_string ( const std::string &  s1,
const std::string &  s2 
)
inline

Definition at line 78 of file CoolPropTools.h.

◆ add_string_vector()

void Dictionary::add_string_vector ( const std::string &  s1,
const std::vector< std::string > &  d 
)
inline

Definition at line 91 of file CoolPropTools.h.

◆ get_double() [1/2]

double Dictionary::get_double ( const std::string &  s) const
inline

Definition at line 102 of file CoolPropTools.h.

◆ get_double() [2/2]

double Dictionary::get_double ( const std::string &  s,
const double  default_value 
) const
inline

Get a double, or return the default value if not found.

Definition at line 111 of file CoolPropTools.h.

◆ get_double_vector()

const std::vector<double>& Dictionary::get_double_vector ( const std::string &  s) const
inline

Definition at line 122 of file CoolPropTools.h.

◆ get_number()

double Dictionary::get_number ( const std::string &  s) const
inline

Definition at line 119 of file CoolPropTools.h.

◆ get_string()

std::string Dictionary::get_string ( const std::string &  s) const
inline

Definition at line 94 of file CoolPropTools.h.

◆ get_string_vector()

const std::vector<std::string>& Dictionary::get_string_vector ( const std::string &  s) const
inline

Definition at line 130 of file CoolPropTools.h.

◆ has_number()

bool Dictionary::has_number ( const std::string &  s1)
inline

Definition at line 85 of file CoolPropTools.h.

◆ is_empty()

bool Dictionary::is_empty ( void  ) const
inline

Definition at line 75 of file CoolPropTools.h.


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