The SymbolMap
Class Template Reference
Declaration
Included Headers
Public Member Typedefs Index
template <class T> | |
using | Ptr = T * |
template <class T> | |
using | VectorPtr = std::vector< Ptr > |
template <class T> | |
using | Map = std::unordered_map< std::string, VectorPtr > |
template <class T> | |
using | iterator = typename Map::iterator |
template <class T> | |
using | const_iterator = typename Map::const_iterator |
Public Member Functions Index
template <class T> | |
void | add (const QCString &name, Ptr def) |
Add a symbol def into the map under key name. More... | |
template <class T> | |
void | remove (const QCString &name, Ptr def) |
Remove a symbol def from the map that was stored under key name. More... | |
template <class T> | |
const VectorPtr & | find (const QCString &name) |
template <class T> | |
iterator | begin () |
template <class T> | |
iterator | end () |
template <class T> | |
const_iterator | begin () const |
template <class T> | |
const_iterator | end () const |
template <class T> | |
bool | empty () const |
Private Member Attributes Index
template <class T> | |
Map | m_map |
template <class T> | |
VectorPtr | m_noMatch |
Description
Class implementing a symbol map that maps symbol names to objects. Symbol names do not have to be unique. Supports adding symbols with add(), removing symbols with remove(), and finding symbols with find().
Definition at line 31 of file symbolmap.h.
Public Member Typedefs
const_iterator
|
Definition at line 38 of file symbolmap.h.
iterator
|
Definition at line 37 of file symbolmap.h.
Map
|
Definition at line 36 of file symbolmap.h.
Ptr
|
Definition at line 34 of file symbolmap.h.
VectorPtr
|
Definition at line 35 of file symbolmap.h.
Public Member Functions
add()
Add a symbol def into the map under key name.
Definition at line 41 of file symbolmap.h.
References SymbolMap< T >::m_map and QCString::str.
begin()
| inline |
Definition at line 82 of file symbolmap.h.
Reference SymbolMap< T >::m_map.
begin()
| inline |
Definition at line 84 of file symbolmap.h.
Reference SymbolMap< T >::m_map.
empty()
| inline |
Definition at line 86 of file symbolmap.h.
Reference SymbolMap< T >::m_map.
end()
| inline |
Definition at line 83 of file symbolmap.h.
Reference SymbolMap< T >::m_map.
end()
| inline |
Definition at line 85 of file symbolmap.h.
Reference SymbolMap< T >::m_map.
find()
| inline |
Find the list of symbols stored under key name Returns a pair of iterators pointing to the start and end of the range of matching symbols
Definition at line 75 of file symbolmap.h.
References SymbolMap< T >::m_map, SymbolMap< T >::m_noMatch and QCString::str.
remove()
Remove a symbol def from the map that was stored under key name.
Definition at line 55 of file symbolmap.h.
References SymbolMap< T >::m_map and QCString::str.
Private Member Attributes
m_map
|
Definition at line 89 of file symbolmap.h.
Referenced by SymbolMap< T >::add, SymbolMap< T >::begin, SymbolMap< T >::begin, SymbolMap< T >::empty, SymbolMap< T >::end, SymbolMap< T >::end, SymbolMap< T >::find and SymbolMap< T >::remove.
m_noMatch
|
Definition at line 90 of file symbolmap.h.
Referenced by SymbolMap< T >::find.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.