Public Member Functions | List of all members
TemplateNodeList Class Reference

Class representing a list of AST nodes in a template. More...

Inheritance diagram for TemplateNodeList:
QList< TemplateNode > QGList

Public Member Functions

 TemplateNodeList ()
 
void render (FTextStream &ts, TemplateContext *c)
 
- Public Member Functions inherited from QList< TemplateNode >
 QList ()
 
 QList (const QList< TemplateNode > &l)
 
 ~QList ()
 
QList< TemplateNode > & operator= (const QList< TemplateNode > &l)
 
bool operator== (const QList< TemplateNode > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const TemplateNode *d)
 
void inSort (const TemplateNode *d)
 
void prepend (const TemplateNode *d)
 
void append (const TemplateNode *d)
 
bool remove (uint i)
 
bool remove (const TemplateNode *d)
 
bool removeRef (const TemplateNode *d)
 
bool removeFirst ()
 
bool removeLast ()
 
TemplateNodetake (uint i)
 
void clear ()
 
void sort ()
 
int find (const TemplateNode *d) const
 
int findRef (const TemplateNode *d) const
 
uint contains (const TemplateNode *d) const
 
uint containsRef (const TemplateNode *d) const
 
TemplateNodeat (uint i) const
 
TemplateNodegetFirst () const
 
TemplateNodegetLast () const
 
void setAutoDelete (bool enable)
 

Detailed Description

Class representing a list of AST nodes in a template.

Definition at line 2239 of file template.cpp.

Constructor & Destructor Documentation

TemplateNodeList::TemplateNodeList ( )
inline

Definition at line 2242 of file template.cpp.

2243  {
2245  }
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

void TemplateNodeList::render ( FTextStream ts,
TemplateContext c 
)
inline

Definition at line 2246 of file template.cpp.

2247  {
2248  TRACE(("{TemplateNodeList::render\n"));
2249  QListIterator<TemplateNode> it(*this);
2250  TemplateNode *tn=0;
2251  for (it.toFirst();(tn=it.current());++it)
2252  {
2253  tn->render(ts,c);
2254  }
2255  TRACE(("}TemplateNodeList::render\n"));
2256  }
virtual void render(FTextStream &ts, TemplateContext *c)=0
Base class of all nodes in a template&#39;s AST.
Definition: template.cpp:1639
#define TRACE(x)
Definition: template.cpp:43

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