OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::InversionTypeParser Class Reference

#include "types/InversionTypeParser.hpp"

Public Member Functions

 InversionTypeParser ()
 
InversionTypeparseLine (const std::string &line)
 
InversionTypeparseTypeAndPars (const std::string &type, std::vector< RealType > pars)
 

Private Types

enum  InversionTypeEnum {
  itImproperCosine, itHarmonic, itCentralAtomHeight, itAmberImproper,
  itDreiding, itUnknown
}
 

Private Member Functions

InversionTypeEnum getInversionTypeEnum (const std::string &str)
 

Private Attributes

std::map< std::string, InversionTypeEnumstringToEnumMap_
 

Detailed Description

Definition at line 56 of file InversionTypeParser.hpp.

Member Enumeration Documentation

◆ InversionTypeEnum

Enumerator
itImproperCosine 
itHarmonic 
itCentralAtomHeight 
itAmberImproper 
itDreiding 
itUnknown 

Definition at line 85 of file InversionTypeParser.hpp.

Constructor & Destructor Documentation

◆ InversionTypeParser()

OpenMD::InversionTypeParser::InversionTypeParser ( )

Member Function Documentation

◆ getInversionTypeEnum()

InversionTypeParser::InversionTypeEnum OpenMD::InversionTypeParser::getInversionTypeEnum ( const std::string &  str)
private

Definition at line 179 of file InversionTypeParser.cpp.

References itUnknown, and stringToEnumMap_.

Referenced by parseLine().

◆ parseLine()

◆ parseTypeAndPars()

InversionType * OpenMD::InversionTypeParser::parseTypeAndPars ( const std::string &  type,
std::vector< RealType >  pars 
)

Definition at line 65 of file InversionTypeParser.cpp.

References parseLine(), and OpenMD::to_string().

Referenced by OpenMD::MoleculeCreator::createInversion().

Member Data Documentation

◆ stringToEnumMap_

std::map<std::string, InversionTypeEnum> OpenMD::InversionTypeParser::stringToEnumMap_
private

Definition at line 95 of file InversionTypeParser.hpp.

Referenced by getInversionTypeEnum(), and InversionTypeParser().


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