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

#include "types/BendTypeParser.hpp"

Public Member Functions

 BendTypeParser ()
 
BendTypeparseLine (const std::string &line, RealType kScale)
 
BendTypeparseTypeAndPars (const std::string &type, std::vector< RealType > pars)
 

Private Types

enum  BendTypeEnum {
  btHarmonic, btGhostBend, btUreyBradley, btCubic,
  btQuartic, btPolynomial, btCosine, btSDK,
  btUnknown
}
 

Private Member Functions

BendTypeEnum getBendTypeEnum (const std::string &str)
 

Private Attributes

std::map< std::string, BendTypeEnumstringToEnumMap_
 

Detailed Description

Definition at line 55 of file BendTypeParser.hpp.

Member Enumeration Documentation

◆ BendTypeEnum

Enumerator
btHarmonic 
btGhostBend 
btUreyBradley 
btCubic 
btQuartic 
btPolynomial 
btCosine 
btSDK 
btUnknown 

Definition at line 64 of file BendTypeParser.hpp.

Constructor & Destructor Documentation

◆ BendTypeParser()

OpenMD::BendTypeParser::BendTypeParser ( )

Member Function Documentation

◆ getBendTypeEnum()

BendTypeParser::BendTypeEnum OpenMD::BendTypeParser::getBendTypeEnum ( const std::string &  str)
private

Definition at line 211 of file BendTypeParser.cpp.

References btUnknown, and stringToEnumMap_.

Referenced by parseLine().

◆ parseLine()

◆ parseTypeAndPars()

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

Definition at line 68 of file BendTypeParser.cpp.

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

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

Member Data Documentation

◆ stringToEnumMap_

std::map<std::string, BendTypeEnum> OpenMD::BendTypeParser::stringToEnumMap_
private

Definition at line 78 of file BendTypeParser.hpp.

Referenced by BendTypeParser(), and getBendTypeEnum().


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