OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::TypeContainer< ElemType, SIZE > Class Template Reference

Public Types

using ElemPtr = ElemType*
 
using KeyType = std::vector<std::string>
 
using KeyTypeIterator = typename KeyType::iterator
 
using ValueType = std::pair<int, ElemPtr>
 
using MapType = typename std::map<KeyType, ValueType>
 
using MapTypeIterator = typename std::map<KeyType, ValueType>::iterator
 
using value_type = typename MapType::value_type
 
using MutableValues = typename std::vector<int>
 

Public Member Functions

bool add (KeyType &keys, ElemPtr elem)
 
bool replace (KeyType &keys, ElemPtr elem)
 
ElemPtr find (KeyType &keys)
 Exact Match.
 
ElemPtr permutedFindSkippingFirstElement (KeyType &keys)
 
ElemPtr find (KeyType &keys, const std::string &wildCard)
 
size_t size ()
 
ElemPtr beginType (MapTypeIterator &i)
 
ElemPtr nextType (MapTypeIterator &i)
 
KeyType getKeys (MapTypeIterator &i)
 

Detailed Description

template<class ElemType, int SIZE>
class OpenMD::TypeContainer< ElemType, SIZE >

Definition at line 68 of file TypeContainer.hpp.

Member Typedef Documentation

◆ ElemPtr

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::ElemPtr = ElemType*

Definition at line 70 of file TypeContainer.hpp.

◆ KeyType

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::KeyType = std::vector<std::string>

Definition at line 71 of file TypeContainer.hpp.

◆ KeyTypeIterator

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::KeyTypeIterator = typename KeyType::iterator

Definition at line 72 of file TypeContainer.hpp.

◆ MapType

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::MapType = typename std::map<KeyType, ValueType>

Definition at line 74 of file TypeContainer.hpp.

◆ MapTypeIterator

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::MapTypeIterator = typename std::map<KeyType, ValueType>::iterator

Definition at line 75 of file TypeContainer.hpp.

◆ MutableValues

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::MutableValues = typename std::vector<int>

Definition at line 77 of file TypeContainer.hpp.

◆ value_type

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::value_type = typename MapType::value_type

Definition at line 76 of file TypeContainer.hpp.

◆ ValueType

template<class ElemType , int SIZE>
using OpenMD::TypeContainer< ElemType, SIZE >::ValueType = std::pair<int, ElemPtr>

Definition at line 73 of file TypeContainer.hpp.

Constructor & Destructor Documentation

◆ TypeContainer()

template<class ElemType , int SIZE>
OpenMD::TypeContainer< ElemType, SIZE >::TypeContainer ( )
inline

Definition at line 79 of file TypeContainer.hpp.

◆ ~TypeContainer()

template<class ElemType , int SIZE>
OpenMD::TypeContainer< ElemType, SIZE >::~TypeContainer ( )
inline

Definition at line 81 of file TypeContainer.hpp.

Member Function Documentation

◆ add()

template<class ElemType , int SIZE>
bool OpenMD::TypeContainer< ElemType, SIZE >::add ( KeyType & keys,
ElemPtr elem )
inline

Definition at line 83 of file TypeContainer.hpp.

◆ beginType()

template<class ElemType , int SIZE>
ElemPtr OpenMD::TypeContainer< ElemType, SIZE >::beginType ( MapTypeIterator & i)
inline

Definition at line 191 of file TypeContainer.hpp.

◆ find() [1/2]

template<class ElemType , int SIZE>
ElemPtr OpenMD::TypeContainer< ElemType, SIZE >::find ( KeyType & keys)
inline

Exact Match.

Definition at line 106 of file TypeContainer.hpp.

Referenced by OpenMD::ForceField::getAtomType().

◆ find() [2/2]

template<class ElemType , int SIZE>
ElemPtr OpenMD::TypeContainer< ElemType, SIZE >::find ( KeyType & keys,
const std::string & wildCard )
inline
Todo

Definition at line 148 of file TypeContainer.hpp.

References OpenMD::replaceWithWildCard().

◆ getKeys()

template<class ElemType , int SIZE>
KeyType OpenMD::TypeContainer< ElemType, SIZE >::getKeys ( MapTypeIterator & i)
inline

Definition at line 201 of file TypeContainer.hpp.

◆ nextType()

template<class ElemType , int SIZE>
ElemPtr OpenMD::TypeContainer< ElemType, SIZE >::nextType ( MapTypeIterator & i)
inline

Definition at line 196 of file TypeContainer.hpp.

◆ permutedFindSkippingFirstElement()

template<class ElemType , int SIZE>
ElemPtr OpenMD::TypeContainer< ElemType, SIZE >::permutedFindSkippingFirstElement ( KeyType & keys)
inline

Definition at line 124 of file TypeContainer.hpp.

◆ replace()

template<class ElemType , int SIZE>
bool OpenMD::TypeContainer< ElemType, SIZE >::replace ( KeyType & keys,
ElemPtr elem )
inline

Definition at line 90 of file TypeContainer.hpp.

◆ size()

template<class ElemType , int SIZE>
size_t OpenMD::TypeContainer< ElemType, SIZE >::size ( )
inline

Definition at line 189 of file TypeContainer.hpp.


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