antioch-0.4.0
List of all members | Public Types | Public Member Functions | Private Attributes
Antioch::ChemKinDefinitions Class Reference

#include <chemkin_definitions.h>

Public Types

enum  Delim {
  ERROR = -1, PLUS, IRREVERSIBLE, REVERSIBLE,
  REVERSIBLE_ALT
}
 
enum  Symbol { TB = 0, FAL, PHOTO, ELECTRO }
 

Public Member Functions

 ChemKinDefinitions ()
 
 ~ChemKinDefinitions ()
 
const std::map< Delim,
std::string > & 
delim () const
 
const std::map< Symbol,
std::string > & 
symbol () const
 
const std::string & reversible () const
 
const std::string & duplicate () const
 
const std::string & end_tag () const
 
const std::string & comment () const
 
const std::string & parser () const
 
bool is_comment (const char &c) const
 
bool is_equation_delimiter (const std::string &test) const
 
Delim equation_delimiter (const std::string &test) const
 

Private Attributes

const std::string _reversible
 
const std::string _duplicate
 
const std::string _end_tag
 
const std::string _comment
 
const std::string _parser
 
std::map< Delim, std::string > _delim
 
std::map< Symbol, std::string > _symbol
 

Detailed Description

Definition at line 38 of file chemkin_definitions.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

Antioch::ChemKinDefinitions::ChemKinDefinitions ( )
inline

Definition at line 90 of file chemkin_definitions.h.

References _delim, _symbol, ELECTRO, FAL, IRREVERSIBLE, PHOTO, PLUS, REVERSIBLE, REVERSIBLE_ALT, and TB.

90  :
91  _reversible("REV"),
92  _duplicate("DUP"),
93  _end_tag("END"),
94  _comment("!"),
95  _parser("/")
96  {
97  _delim[PLUS] = "+";
98  _delim[REVERSIBLE] = "=";
99  _delim[REVERSIBLE_ALT] = "<=>";
100  _delim[IRREVERSIBLE] = "=>";
101 
102  _symbol[TB] = "M";
103  _symbol[FAL] = "(+M)";
104  _symbol[PHOTO] = "HV";
105  _symbol[ELECTRO] = "E";
106  }
std::map< Symbol, std::string > _symbol
std::map< Delim, std::string > _delim
Antioch::ChemKinDefinitions::~ChemKinDefinitions ( )
inline

Definition at line 42 of file chemkin_definitions.h.

42 {}

Member Function Documentation

const std::string & Antioch::ChemKinDefinitions::comment ( ) const
inline

Definition at line 139 of file chemkin_definitions.h.

References _comment.

140  {
141  return _comment;
142  }
const std::map< ChemKinDefinitions::Delim, std::string > & Antioch::ChemKinDefinitions::delim ( ) const
inline

Definition at line 109 of file chemkin_definitions.h.

References _delim.

110  {
111  return _delim;
112  }
std::map< Delim, std::string > _delim
const std::string & Antioch::ChemKinDefinitions::duplicate ( ) const
inline

Definition at line 127 of file chemkin_definitions.h.

References _duplicate.

128  {
129  return _duplicate;
130  }
const std::string & Antioch::ChemKinDefinitions::end_tag ( ) const
inline

Definition at line 133 of file chemkin_definitions.h.

References _end_tag.

134  {
135  return _end_tag;
136  }
ChemKinDefinitions::Delim Antioch::ChemKinDefinitions::equation_delimiter ( const std::string &  test) const
inline

Definition at line 166 of file chemkin_definitions.h.

References _delim, ERROR, IRREVERSIBLE, REVERSIBLE, and REVERSIBLE_ALT.

167  {
168  if(test.find(_delim.at(REVERSIBLE_ALT)) != std::string::npos)
169  {
170  return REVERSIBLE_ALT;
171  }else if(test.find(_delim.at(IRREVERSIBLE)) != std::string::npos)
172  {
173  return IRREVERSIBLE;
174  }else if(test.find(_delim.at(REVERSIBLE)) != std::string::npos)
175  {
176  return REVERSIBLE;
177  }else
178  {
179  return ERROR;
180  }
181  }
std::map< Delim, std::string > _delim
bool Antioch::ChemKinDefinitions::is_comment ( const char &  c) const
inline

Definition at line 151 of file chemkin_definitions.h.

References _comment.

152  {
153  return (c == _comment[0]);
154  }
bool Antioch::ChemKinDefinitions::is_equation_delimiter ( const std::string &  test) const
inline
const std::string & Antioch::ChemKinDefinitions::parser ( ) const
inline

Definition at line 145 of file chemkin_definitions.h.

References _parser.

146  {
147  return _parser;
148  }
const std::string & Antioch::ChemKinDefinitions::reversible ( ) const
inline

Definition at line 121 of file chemkin_definitions.h.

References _reversible.

122  {
123  return _reversible;
124  }
const std::map< ChemKinDefinitions::Symbol, std::string > & Antioch::ChemKinDefinitions::symbol ( ) const
inline

Definition at line 115 of file chemkin_definitions.h.

References _symbol.

116  {
117  return _symbol;
118  }
std::map< Symbol, std::string > _symbol

Member Data Documentation

const std::string Antioch::ChemKinDefinitions::_comment
private

Definition at line 82 of file chemkin_definitions.h.

Referenced by comment(), and is_comment().

std::map<Delim,std::string> Antioch::ChemKinDefinitions::_delim
private
const std::string Antioch::ChemKinDefinitions::_duplicate
private

Definition at line 80 of file chemkin_definitions.h.

Referenced by duplicate().

const std::string Antioch::ChemKinDefinitions::_end_tag
private

Definition at line 81 of file chemkin_definitions.h.

Referenced by end_tag().

const std::string Antioch::ChemKinDefinitions::_parser
private

Definition at line 83 of file chemkin_definitions.h.

Referenced by parser().

const std::string Antioch::ChemKinDefinitions::_reversible
private

Definition at line 79 of file chemkin_definitions.h.

Referenced by reversible().

std::map<Symbol,std::string> Antioch::ChemKinDefinitions::_symbol
private

Definition at line 85 of file chemkin_definitions.h.

Referenced by ChemKinDefinitions(), and symbol().


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

Generated on Thu Jul 7 2016 11:09:48 for antioch-0.4.0 by  doxygen 1.8.8