Doxygen
|
Class implementing a symbol map that maps symbol names to objects. More...
#include <src/symbolmap.h>
Public Types | |
using | Ptr = T * |
using | VectorPtr = std::vector<Ptr> |
using | Map = std::unordered_map<std::string,VectorPtr> |
using | iterator = typename Map::iterator |
using | const_iterator = typename Map::const_iterator |
Public Member Functions | |
void | add (const QCString &name, Ptr def) |
Add a symbol def into the map under key name. | |
void | remove (const QCString &name, Ptr def) |
Remove a symbol def from the map that was stored under key name. | |
const VectorPtr & | find (const QCString &name) |
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. | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bool | empty () const |
Private Attributes | |
Map | m_map |
VectorPtr | m_noMatch |
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.
using SymbolMap< T >::const_iterator = typename Map::const_iterator |
Definition at line 38 of file symbolmap.h.
using SymbolMap< T >::iterator = typename Map::iterator |
Definition at line 37 of file symbolmap.h.
Definition at line 36 of file symbolmap.h.
using SymbolMap< T >::Ptr = T * |
Definition at line 34 of file symbolmap.h.
Definition at line 35 of file symbolmap.h.
Add a symbol def into the map under key name.
Definition at line 41 of file symbolmap.h.
References m_map, and QCString::str().
|
inline |
|
inline |
|
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 m_map, m_noMatch, and QCString::str().
Remove a symbol def from the map that was stored under key name.
Definition at line 55 of file symbolmap.h.
References m_map, and QCString::str().
Definition at line 90 of file symbolmap.h.
Referenced by find().