CoolProp 8.0.0
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 54 of file tools.h.

#include <tools.h>

Public Member Functions

 Dictionary ()=default
 
bool is_empty () 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 ( )
default

Member Function Documentation

◆ add_double_vector()

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

Definition at line 81 of file tools.h.

◆ add_number()

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

Definition at line 74 of file tools.h.

◆ add_string()

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

Definition at line 71 of file tools.h.

◆ add_string_vector()

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

Definition at line 84 of file tools.h.

◆ get_double() [1/2]

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

Definition at line 95 of file tools.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 104 of file tools.h.

◆ get_double_vector()

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

Definition at line 115 of file tools.h.

◆ get_number()

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

Definition at line 112 of file tools.h.

◆ get_string()

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

Definition at line 87 of file tools.h.

◆ get_string_vector()

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

Definition at line 123 of file tools.h.

◆ has_number()

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

Definition at line 78 of file tools.h.

◆ is_empty()

bool Dictionary::is_empty ( ) const
inline

Definition at line 68 of file tools.h.


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