doxygen
Public Types | Public Member Functions | List of all members
SymbolMap< T > Class Template Reference

Class implementing a symbol map that maps symbol names to objects. More...

#include <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) const
 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.
 
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
 

Detailed Description

template<class T>
class SymbolMap< T >

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().


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