Public Member Functions | Protected Attributes | List of all members
CompAccept< T > Class Template Reference

#include <docparser.h>

Public Member Functions

 CompAccept ()
 
virtual ~CompAccept ()
 
void accept (T *obj, DocVisitor *v)
 
const QList< DocNode > & children () const
 
QList< DocNode > & children ()
 

Protected Attributes

QList< DocNodem_children
 

Detailed Description

template<class T>
class CompAccept< T >

Default accept implementation for compound nodes in the abstract syntax tree.

Definition at line 172 of file docparser.h.

Constructor & Destructor Documentation

template<class T>
CompAccept< T >::CompAccept ( )
inline

Definition at line 175 of file docparser.h.

QList< DocNode > m_children
Definition: docparser.h:189
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
template<class T>
virtual CompAccept< T >::~CompAccept ( )
inlinevirtual

Definition at line 176 of file docparser.h.

176 {}

Member Function Documentation

template<class T>
void CompAccept< T >::accept ( T *  obj,
DocVisitor v 
)
inline

Definition at line 177 of file docparser.h.

178  {
179  v->visitPre(obj);
181  DocNode *n;
182  for (cli.toFirst();(n=cli.current());++cli) n->accept(v);
183  v->visitPost(obj);
184  }
QList< DocNode > m_children
Definition: docparser.h:189
def cli(ctx)
Definition: main.py:7
std::void_t< T > n
virtual void visitPre(DocAutoList *)=0
virtual void visitPost(DocAutoList *)=0
virtual void accept(DocVisitor *v)=0
template<class T>
const QList<DocNode>& CompAccept< T >::children ( ) const
inline

Definition at line 185 of file docparser.h.

185 { return m_children; }
QList< DocNode > m_children
Definition: docparser.h:189
template<class T>
QList<DocNode>& CompAccept< T >::children ( )
inline

Definition at line 186 of file docparser.h.

186 { return m_children; }
QList< DocNode > m_children
Definition: docparser.h:189

Member Data Documentation

template<class T>
QList<DocNode> CompAccept< T >::m_children
protected

Definition at line 189 of file docparser.h.


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