CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Dictionary Class Reference

#include <MPLPlot.h>

Public Member Functions

 Dictionary (void)
 
void add (std::string key, double value)
 Add a floating point value to the dictionary. More...
 
void add (std::string key, std::string value)
 Add a string to the dictionary. More...
 
std::string print_call ()
 

Public Attributes

std::map< std::string,
std::string > 
string_values
 
std::map< std::string, double > double_values
 

Detailed Description

A C++ equivalent of a dictionary to hold values for the plotting functions

Definition at line 13 of file MPLPlot.h.

Constructor & Destructor Documentation

Dictionary::Dictionary ( void  )
inline

Definition at line 16 of file MPLPlot.h.

Member Function Documentation

void Dictionary::add ( std::string  key,
double  value 
)
inline

Add a floating point value to the dictionary.

Definition at line 21 of file MPLPlot.h.

void Dictionary::add ( std::string  key,
std::string  value 
)
inline

Add a string to the dictionary.

Definition at line 26 of file MPLPlot.h.

std::string Dictionary::print_call ( )
inline

print in the form for the call to plot function in matplotlib.pyplot.plot function k1 = v1, k2 = v2, k3 = v3 ..... with vi properly quote escaped

Definition at line 32 of file MPLPlot.h.

Member Data Documentation

std::map<std::string, double> Dictionary::double_values

Definition at line 18 of file MPLPlot.h.

std::map<std::string, std::string> Dictionary::string_values

Definition at line 16 of file MPLPlot.h.


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