Cantera  3.1.0b1
Loading...
Searching...
No Matches
AnyMap.cpp File Reference
#include "cantera/base/AnyMap.h"
#include "application.h"
#include "cantera/base/yaml.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/global.h"
#include "cantera/base/utilities.h"
#include <boost/algorithm/string.hpp>
#include <fstream>
#include <mutex>
#include <unordered_set>
Include dependency graph for AnyMap.cpp:

Go to the source code of this file.

Classes

struct  convert< Cantera::AnyMap >
 
struct  convert< Cantera::AnyValue >
 

Namespaces

namespace  Cantera
 Namespace for the Cantera kernel.
 

Functions

YAML::Emitter & operator<< (YAML::Emitter &out, const AnyMap &rhs)
 
void emitString (YAML::Emitter &out, const string &str0)
 Write YAML strings spanning multiple lines if input includes endline '
'.
 
void emitFlowVector (YAML::Emitter &out, const vector< double > &v, long int precision)
 Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).
 
void emitFlowVector (YAML::Emitter &out, const vector< string > &v)
 Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).
 
template<typename T >
void emitFlowVector (YAML::Emitter &out, const vector< T > &v)
 Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).
 
YAML::Emitter & operator<< (YAML::Emitter &out, const AnyValue &rhs)
 
bool operator== (const string &lhs, const AnyValue &rhs)
 
bool operator!= (const string &lhs, const AnyValue &rhs)
 
bool operator== (const double &lhs, const AnyValue &rhs)
 
bool operator!= (const double &lhs, const AnyValue &rhs)
 
bool operator== (const long int &lhs, const AnyValue &rhs)
 
bool operator!= (const long int &lhs, const AnyValue &rhs)
 
bool operator== (const int &lhs, const AnyValue &rhs)
 
bool operator!= (const int &lhs, const AnyValue &rhs)
 
AnyMap::Iterator begin (const AnyValue &v)
 
AnyMap::Iterator end (const AnyValue &v)
 
void warn_deprecated (const string &source, const AnyBase &node, const string &message)
 A deprecation warning for syntax in an input file.
 

Variables

static const int max_line_length = 87
 

Function Documentation

◆ operator<<() [1/2]

YAML::Emitter & operator<< ( YAML::Emitter &  out,
const AnyMap rhs 
)

Definition at line 292 of file AnyMap.cpp.

◆ emitString()

void emitString ( YAML::Emitter &  out,
const string &  str0 
)

Write YAML strings spanning multiple lines if input includes endline '
'.

Definition at line 352 of file AnyMap.cpp.

◆ emitFlowVector() [1/3]

void emitFlowVector ( YAML::Emitter &  out,
const vector< double > &  v,
long int  precision 
)

Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).

Specialized for vector<double> to be able to use the custom formatDouble function with a given precision.

Definition at line 372 of file AnyMap.cpp.

◆ emitFlowVector() [2/3]

void emitFlowVector ( YAML::Emitter &  out,
const vector< string > &  v 
)

Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).

Specialized for vector<string> to quote strings that look like numeric values

Definition at line 393 of file AnyMap.cpp.

◆ emitFlowVector() [3/3]

template<typename T >
void emitFlowVector ( YAML::Emitter &  out,
const vector< T > &  v 
)

Write a vector in YAML "flow" style, wrapping lines to avoid exceeding the preferred maximum line length (set by max_line_length).

Definition at line 417 of file AnyMap.cpp.

◆ operator<<() [2/2]

YAML::Emitter & operator<< ( YAML::Emitter &  out,
const AnyValue rhs 
)

Definition at line 435 of file AnyMap.cpp.

Variable Documentation

◆ max_line_length

const int max_line_length = 87
static

Definition at line 252 of file AnyMap.cpp.