|
Simpatico
v1.10
|
#include <TypeMap.h>
Public Member Functions | |
| TypeMap () | |
| Constructor. More... | |
| ~TypeMap () | |
| Destructor. More... | |
| void | insert (int id, const std::string &name) |
| Add typeId / type name pair to the container. More... | |
| void | read (std::istream &in) |
| Read pairs from file. More... | |
| int | id (const std::string &name) const |
| Get type id associated with a type name. More... | |
| const std::string & | name (int id) const |
| Get type name associated with an integer id. More... | |
| int | size () const |
| Number of a pairs in map. More... | |
| Tools::TypeMap::TypeMap | ( | ) |
Constructor.
Definition at line 19 of file TypeMap.cpp.
| Tools::TypeMap::~TypeMap | ( | ) |
Destructor.
Definition at line 25 of file TypeMap.cpp.
| void Tools::TypeMap::insert | ( | int | id, |
| const std::string & | name | ||
| ) |
Add typeId / type name pair to the container.
| id | integer type id |
| name | type names string |
Definition at line 28 of file TypeMap.cpp.
References UTIL_THROW.
| void Tools::TypeMap::read | ( | std::istream & | in | ) |
Read pairs from file.
| in | input stream. |
Definition at line 42 of file TypeMap.cpp.
Referenced by Tools::HoomdConfigWriter::readAuxiliaryFile(), and Tools::HoomdConfigReader::readAuxiliaryFile().
|
inline |
Get type id associated with a type name.
Definition at line 82 of file TypeMap.h.
References UTIL_THROW.
Referenced by Tools::HoomdConfigReader::readConfig().
|
inline |
Get type name associated with an integer id.
Definition at line 92 of file TypeMap.h.
References UTIL_THROW.
Referenced by Tools::HoomdConfigWriter::readAuxiliaryFile(), and Tools::HoomdConfigWriter::writeConfig().
|
inline |
1.8.11