The LinkedRefMap
Class Template Reference
Container class representing a vector of objects with keys. More...
Declaration
Included Headers
Public Member Typedefs Index
template < ... > | |
using | Ptr = T * |
template < ... > | |
using | Vec = std::vector< Ptr > |
template < ... > | |
using | iterator = typename Vec::iterator |
template < ... > | |
using | const_iterator = typename Vec::const_iterator |
template < ... > | |
using | reverse_iterator = typename Vec::reverse_iterator |
template < ... > | |
using | const_reverse_iterator = typename Vec::const_reverse_iterator |
Public Operators Index
template < ... > | |
Ptr & | operator[] (size_t pos) |
template < ... > | |
const Ptr & | operator[] (size_t pos) const |
Public Member Functions Index
template < ... > | |
const T * | find (const std::string &key) const |
template < ... > | |
const T * | find (const QCString &key) const |
template < ... > | |
const T * | find (const char *key) const |
template < ... > | |
T * | find (const char *key) |
non-const wrapper for find() const More... | |
template < ... > | |
T * | find (const QCString &key) |
template < ... > | |
T * | find (const std::string &key) |
non-const wrapper for find() const More... | |
template < ... > | |
bool | add (const char *k, T *obj) |
template < ... > | |
bool | add (const QCString &k, T *obj) |
template < ... > | |
bool | prepend (const char *k, T *obj) |
template < ... > | |
bool | prepend (const QCString &key, T *obj) |
template < ... > | |
bool | del (const QCString &key) |
template < ... > | |
iterator | begin () |
template < ... > | |
iterator | end () |
template < ... > | |
const_iterator | begin () const |
template < ... > | |
const_iterator | end () const |
template < ... > | |
reverse_iterator | rbegin () |
template < ... > | |
reverse_iterator | rend () |
template < ... > | |
const_reverse_iterator | rbegin () const |
template < ... > | |
const_reverse_iterator | rend () const |
template < ... > | |
bool | empty () const |
template < ... > | |
size_t | size () const |
template < ... > | |
void | clear () |
Private Member Attributes Index
template < ... > | |
Map | m_lookup |
template < ... > | |
Vec | m_entries |
Description
Container class representing a vector of objects with keys.
Objects can be efficiently be looked up given the key. Objects are not owned by the container, the container will only hold references. When adding objects the order of addition is kept, and used while iterating.
Definition at line 231 of file linkedmap.h.
Public Member Typedefs
const_iterator
|
Definition at line 237 of file linkedmap.h.
const_reverse_iterator
|
Definition at line 239 of file linkedmap.h.
iterator
|
Definition at line 236 of file linkedmap.h.
Ptr
|
Definition at line 234 of file linkedmap.h.
reverse_iterator
|
Definition at line 238 of file linkedmap.h.
Vec
|
Definition at line 235 of file linkedmap.h.
Public Operators
operator[]()
| inline |
Definition at line 364 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
operator[]()
| inline |
Definition at line 365 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
Public Member Functions
add()
| inline |
Adds an object reference to the ordered vector if it was not added already. Return true if the reference was added, and false if an object with the same key was already added before
Definition at line 284 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries and LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup.
Referenced by FileDefImpl::insertClass and NamespaceDefImpl::insertClass.
add()
| inline |
Definition at line 299 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries, LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup and QCString::str.
begin()
| inline |
Definition at line 366 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
begin()
| inline |
Definition at line 368 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
clear()
| inline |
Definition at line 377 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries and LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup.
del()
| inline |
Removes an object from the container and deletes it. Returns true if the object was deleted or false it is was not found.
Definition at line 348 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries, LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup and QCString::str.
empty()
| inline |
Definition at line 374 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
Referenced by findScopeFromQualifiedName, PerlModGenerator::generatePerlModForGroup, PerlModGenerator::generatePerlModForModule, PerlModGenerator::generatePerlModForNamespace, processTagLessClasses and writeGroupTreeNode.
end()
| inline |
Definition at line 367 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
end()
| inline |
Definition at line 369 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
find()
| inline |
find an object given the key. Returns a pointer to the object if found or nullptr if it is not found.
Definition at line 243 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup.
Referenced by LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::find, findGlobalMember, LinkedRefMap< T, Hash, KeyEqual, Map >::prepend and LinkedRefMap< T, Hash, KeyEqual, Map >::prepend.
find()
| inline |
find an object given the key. Returns a pointer to the object if found or nullptr if it is not found.
Definition at line 251 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup and QCString::str.
find()
| inline |
find an object given the key. Returns a pointer to the object if found or nullptr if it is not found.
Definition at line 259 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::find.
find()
| inline |
non-const wrapper for find() const
Definition at line 265 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::find.
find()
| inline |
Definition at line 270 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::find.
find()
| inline |
non-const wrapper for find() const
Definition at line 276 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::find.
prepend()
| inline |
Prepends an object reference to the ordered vector if it was not added already. Return true if the reference was added, and false if an object with the same key was already added before
Definition at line 317 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries and LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup.
prepend()
| inline |
Definition at line 332 of file linkedmap.h.
References LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries, LinkedRefMap< T, Hash, KeyEqual, Map >::m_lookup and QCString::str.
rbegin()
| inline |
Definition at line 370 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
rbegin()
| inline |
Definition at line 372 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
rend()
| inline |
Definition at line 371 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
rend()
| inline |
Definition at line 373 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
size()
| inline |
Definition at line 375 of file linkedmap.h.
Reference LinkedRefMap< T, Hash, KeyEqual, Map >::m_entries.
Referenced by writeGroupTreeNode.
Private Member Attributes
m_entries
|
Definition at line 385 of file linkedmap.h.
Referenced by LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::begin, LinkedRefMap< T, Hash, KeyEqual, Map >::begin, LinkedRefMap< T, Hash, KeyEqual, Map >::clear, LinkedRefMap< T, Hash, KeyEqual, Map >::del, LinkedRefMap< T, Hash, KeyEqual, Map >::empty, LinkedRefMap< T, Hash, KeyEqual, Map >::end, LinkedRefMap< T, Hash, KeyEqual, Map >::end, LinkedRefMap< T, Hash, KeyEqual, Map >::operator[], LinkedRefMap< T, Hash, KeyEqual, Map >::operator[], LinkedRefMap< T, Hash, KeyEqual, Map >::prepend, LinkedRefMap< T, Hash, KeyEqual, Map >::prepend, LinkedRefMap< T, Hash, KeyEqual, Map >::rbegin, LinkedRefMap< T, Hash, KeyEqual, Map >::rbegin, LinkedRefMap< T, Hash, KeyEqual, Map >::rend, LinkedRefMap< T, Hash, KeyEqual, Map >::rend and LinkedRefMap< T, Hash, KeyEqual, Map >::size.
m_lookup
|
Definition at line 384 of file linkedmap.h.
Referenced by LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::add, LinkedRefMap< T, Hash, KeyEqual, Map >::clear, LinkedRefMap< T, Hash, KeyEqual, Map >::del, LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::find, LinkedRefMap< T, Hash, KeyEqual, Map >::prepend and LinkedRefMap< T, Hash, KeyEqual, Map >::prepend.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.