doxygen
Public Member Functions | List of all members
DocNodeList Struct Reference
Inheritance diagram for DocNodeList:
Inheritance graph
[legend]
Collaboration diagram for DocNodeList:
Collaboration graph
[legend]

Public Member Functions

template<class T , class... Args>
void append (Args &&... args)
 Append a new DocNodeVariant to the list by constructing it with type T and parameters Args.
 
void move_append (DocNodeList &l)
 moves the element of list l at the end of this list. More...
 
template<class T >
T * get_last ()
 Returns a pointer to the last element in the list if that element exists and holds a T, otherwise nullptr is returned.
 
- Public Member Functions inherited from GrowVector< DocNodeVariant >
iterator begin ()
 returns an iterator to the beginning
 
const_iterator begin () const
 returns an iterator to the beginning
 
iterator end ()
 returns an iterator to the end
 
const_iterator end () const
 returns an iterator to the end
 
size_t size () const
 returns the number of elements
 
void push_back (DocNodeVariant &&t)
 adds an element to the end
 
void emplace_back (Args &&...args)
 constructs an element in-place at the end
 
void pop_back ()
 removes the last element
 
DocNodeVariant & at (size_t i)
 access specified element
 
const DocNodeVariant & at (size_t i) const
 access specified element
 
DocNodeVariant & front ()
 access the first element
 
const DocNodeVariant & front () const
 access the first element
 
DocNodeVariant & back ()
 access the last element
 
const DocNodeVariant & back () const
 access the last element
 
bool empty () const
 checks whether the container is empty
 
void clear ()
 clears the contents
 

Additional Inherited Members

- Public Types inherited from GrowVector< DocNodeVariant >
using iterator = Iterator< GrowVector, DocNodeVariant >
 
using const_iterator = Iterator< const GrowVector, const DocNodeVariant >
 

Member Function Documentation

◆ move_append()

void DocNodeList::move_append ( DocNodeList l)
inline

moves the element of list l at the end of this list.

List l will become empty.


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