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

#include "io/SectionParserManager.hpp"

Public Types

typedef std::list< SectionParserContextSectionParserContextList
 
typedef SectionParserContextList::iterator iterator
 
typedef SectionParserContextList::const_iterator const_iterator
 

Public Member Functions

 SectionParserManager ()
 
 ~SectionParserManager ()
 
void parse (std::istream &input, ForceField &ff)
 
void push_front (SectionParser *sp)
 
void push_back (SectionParser *sp)
 
void insert (SectionParser *sp, int priority)
 
const_iterator begin () const
 
const_iterator end () const
 

Private Member Functions

iterator findSectionParser (const std::string &sectionName)
 

Private Attributes

const int beginPriority_
 
int priorityDifference_
 
SectionParserContextList sectionParsers_
 

Detailed Description

SectionParserManager maintains a priority list

Definition at line 75 of file SectionParserManager.hpp.

Member Typedef Documentation

◆ const_iterator

typedef SectionParserContextList::const_iterator OpenMD::SectionParserManager::const_iterator

Definition at line 80 of file SectionParserManager.hpp.

◆ iterator

typedef SectionParserContextList::iterator OpenMD::SectionParserManager::iterator

Definition at line 79 of file SectionParserManager.hpp.

◆ SectionParserContextList

Constructor & Destructor Documentation

◆ SectionParserManager()

OpenMD::SectionParserManager::SectionParserManager ( )
inline

Definition at line 82 of file SectionParserManager.hpp.

References OpenMD::SectionParserContext::priority.

◆ ~SectionParserManager()

OpenMD::SectionParserManager::~SectionParserManager ( )

Definition at line 51 of file SectionParserManager.cpp.

References sectionParsers_.

Member Function Documentation

◆ begin()

const_iterator OpenMD::SectionParserManager::begin ( ) const
inline

Definition at line 93 of file SectionParserManager.hpp.

◆ end()

const_iterator OpenMD::SectionParserManager::end ( ) const
inline

Definition at line 97 of file SectionParserManager.hpp.

◆ findSectionParser()

SectionParserManager::iterator OpenMD::SectionParserManager::findSectionParser ( const std::string &  sectionName)
private

Definition at line 236 of file SectionParserManager.cpp.

References sectionParsers_.

Referenced by insert(), push_back(), and push_front().

◆ insert()

◆ parse()

void OpenMD::SectionParserManager::parse ( std::istream &  input,
ForceField ff 
)

◆ push_back()

◆ push_front()

Member Data Documentation

◆ beginPriority_

const int OpenMD::SectionParserManager::beginPriority_
private

Definition at line 103 of file SectionParserManager.hpp.

Referenced by push_back(), and push_front().

◆ priorityDifference_

int OpenMD::SectionParserManager::priorityDifference_
private

Definition at line 104 of file SectionParserManager.hpp.

Referenced by push_back(), and push_front().

◆ sectionParsers_

SectionParserContextList OpenMD::SectionParserManager::sectionParsers_
private

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