|
CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <ParsingDictionary.hh>
Inheritance diagram for CASM::ParsingDictionary< T >:Parsing dictionary for obtaining the correct MoleculeAttribute given a name.
Definition at line 23 of file ParsingDictionary.hh.
Public Types | |
| typedef notstd::unique_cloneable_map< std::string, T > | Base |
| typedef Base::key_type | key_type |
| typedef Base::value_type | value_type |
| typedef Base::size_type | size_type |
| typedef Base::iterator | iterator |
| typedef Base::const_iterator | const_iterator |
| typedef std::function< KeyType(const ValueType &)> | KeyFuncType |
| typedef std::function< typename MapType::mapped_type(const ValueType &)> | ConvertType |
| typedef ValueType & | reference |
| typedef ValueType * | pointer |
| typedef MapType::iterator | MapIterator |
| typedef MapType::const_iterator | ConstMapIterator |
Public Member Functions | |
| ParsingDictionary () | |
| std::unique_ptr< ParsingDictionary< value_type > > | clone () const |
| T const & | lookup (const key_type &_name) const |
| Equivalent to find, but set 'home' and throws error with suggestion if. More... | |
| bool | contains (const key_type &_name) const |
| True if dictionary contains entry for. More... | |
| void | print_help (std::ostream &_stream, std::function< bool(T const &)> filter, int width=60, int separation=8) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const key_type &key) |
| const_iterator | find (const key_type &key) const |
| std::pair< iterator, bool > | insert (const value_type &value) |
| Insert single value. More... | |
| iterator | insert (const_iterator hint, const value_type &value) |
| Insert single value. More... | |
| iterator | insert (iterator hint, const value_type &value) |
| Insert single value. More... | |
| template<typename... ValuesOrMaps> | |
| void | insert (const ValuesOrMaps &... more) |
| Variadic insert accepts as const UniqueMap& or const ValueType&. More... | |
| template<typename Iterator > | |
| void | insert (Iterator begin, Iterator end, typename CASM::CASM_TMP::enable_if_iterator< Iterator >::type *=nullptr) |
| Iterator range insert. More... | |
| key_type | key (const value_type &value) const |
| std::pair< iterator, bool > | insert (const value_type &value) |
| Insert single value. More... | |
| iterator | insert (const_iterator hint, const value_type &value) |
| Insert single value. More... | |
| iterator | insert (iterator hint, const value_type &value) |
| Insert single value. More... | |
| template<typename... ValuesOrMaps> | |
| void | insert (const ValuesOrMaps &... more) |
| Variadic insert accepts as const UniqueMap& or const ValueType&. More... | |
| template<typename Iterator > | |
| void | insert (Iterator begin, Iterator end, typename CASM::CASM_TMP::enable_if_iterator< Iterator >::type *=nullptr) |
| Iterator range insert. More... | |
| value_type & | operator[] (const key_type &key) |
| iterator | find (const key_type &key) |
| const_iterator | find (const key_type &key) const |
| void | clear () |
| iterator | erase (const_iterator pos) |
| iterator | erase (const_iterator first, const_iterator last) |
| size_type | erase (const key_type &key) |
| size_type | size () const |
| bool | empty () const |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | end () const |
| const_iterator | cend () const |
Private Member Functions | |
| std::pair< iterator, bool > | _insert (const value_type &value) |
| Copy insert. More... | |
| template<typename A , typename B , typename C , typename D , typename E > | |
| int | _insert (const unique_map< A, B, C, D, E > &value) |
| Dictionary insert. More... | |
Private Attributes | |
| MapType | m_map |
| KeyFuncType | m_keyfunc |
| ConvertType | m_converter |
| typedef notstd::unique_cloneable_map<std::string, T> CASM::ParsingDictionary< T >::Base |
Definition at line 25 of file ParsingDictionary.hh.
| typedef Base::const_iterator CASM::ParsingDictionary< T >::const_iterator |
Definition at line 31 of file ParsingDictionary.hh.
|
inherited |
Definition at line 135 of file unique_map.hh.
|
inherited |
Definition at line 130 of file unique_map.hh.
| typedef Base::iterator CASM::ParsingDictionary< T >::iterator |
Definition at line 30 of file ParsingDictionary.hh.
| typedef Base::key_type CASM::ParsingDictionary< T >::key_type |
Definition at line 27 of file ParsingDictionary.hh.
|
inherited |
Definition at line 128 of file unique_map.hh.
|
inherited |
Definition at line 134 of file unique_map.hh.
|
inherited |
Definition at line 132 of file unique_map.hh.
|
inherited |
Definition at line 131 of file unique_map.hh.
| typedef Base::size_type CASM::ParsingDictionary< T >::size_type |
Definition at line 29 of file ParsingDictionary.hh.
| typedef Base::value_type CASM::ParsingDictionary< T >::value_type |
Definition at line 28 of file ParsingDictionary.hh.
|
inline |
Definition at line 38 of file ParsingDictionary.hh.
|
inlineprivateinherited |
Dictionary insert.
Definition at line 235 of file unique_map.hh.
|
inlineprivateinherited |
Copy insert.
Definition at line 227 of file unique_map.hh.
|
inline |
Definition at line 213 of file unique_map.hh.
|
inline |
Definition at line 215 of file unique_map.hh.
|
inlineinherited |
Definition at line 215 of file unique_map.hh.
|
inlineinherited |
Definition at line 217 of file unique_map.hh.
|
inlineinherited |
Definition at line 223 of file unique_map.hh.
|
inlineinherited |
Definition at line 197 of file unique_map.hh.
|
inline |
Definition at line 43 of file ParsingDictionary.hh.
|
inline |
True if dictionary contains entry for.
| _name |
Definition at line 52 of file ParsingDictionary.hh.
|
inlineinherited |
Definition at line 211 of file unique_map.hh.
|
inline |
Definition at line 219 of file unique_map.hh.
|
inline |
Definition at line 221 of file unique_map.hh.
|
inlineinherited |
Definition at line 221 of file unique_map.hh.
|
inlineinherited |
Definition at line 207 of file unique_map.hh.
|
inlineinherited |
Definition at line 203 of file unique_map.hh.
|
inlineinherited |
Definition at line 199 of file unique_map.hh.
|
inline |
Definition at line 191 of file unique_map.hh.
|
inlineinherited |
Definition at line 191 of file unique_map.hh.
|
inline |
Definition at line 193 of file unique_map.hh.
|
inlineinherited |
Definition at line 193 of file unique_map.hh.
|
inline |
Insert single value.
Definition at line 149 of file unique_map.hh.
|
inlineinherited |
Insert single value.
Definition at line 149 of file unique_map.hh.
|
inline |
Variadic insert accepts as const UniqueMap& or const ValueType&.
Definition at line 169 of file unique_map.hh.
|
inlineinherited |
Variadic insert accepts as const UniqueMap& or const ValueType&.
Definition at line 169 of file unique_map.hh.
|
inline |
Insert single value.
Definition at line 154 of file unique_map.hh.
|
inlineinherited |
Insert single value.
Definition at line 154 of file unique_map.hh.
|
inline |
Iterator range insert.
Definition at line 175 of file unique_map.hh.
|
inlineinherited |
Iterator range insert.
Definition at line 175 of file unique_map.hh.
|
inline |
Insert single value.
Definition at line 161 of file unique_map.hh.
|
inlineinherited |
Insert single value.
Definition at line 161 of file unique_map.hh.
|
inlineinherited |
Definition at line 146 of file unique_map.hh.
| T const & CASM::ParsingDictionary< T >::lookup | ( | const key_type & | _name | ) | const |
Equivalent to find, but set 'home' and throws error with suggestion if.
Equivalent to find, but throw error with suggestion if _name not found.
| _name | not found |
Definition at line 66 of file ParsingDictionary.hh.
|
inlineinherited |
Definition at line 183 of file unique_map.hh.
| void CASM::ParsingDictionary< T >::print_help | ( | std::ostream & | _stream, |
| std::function< bool(T const &)> | filter, | ||
| int | width = 60, |
||
| int | separation = 8 |
||
| ) | const |
Definition at line 94 of file ParsingDictionary.hh.
|
inlineinherited |
Definition at line 209 of file unique_map.hh.
|
privateinherited |
Definition at line 242 of file unique_map.hh.
|
privateinherited |
Definition at line 241 of file unique_map.hh.
|
privateinherited |
Definition at line 240 of file unique_map.hh.