KDevelop API Documentation

ASTArray Class Reference

ASTArray is a class that allows ANTLR to generate code that can create and initialize an array in one expression, like: (new ASTArray(3))->add(x)->add(y)->add(z). More...

#include <ASTArray.hpp>

Collaboration diagram for ASTArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ASTArray (int capacity)
ASTArrayadd (RefAST node)

Public Attributes

int size
std::vector< RefASTarray

Detailed Description

ASTArray is a class that allows ANTLR to generate code that can create and initialize an array in one expression, like: (new ASTArray(3))->add(x)->add(y)->add(z).

Definition at line 23 of file ASTArray.hpp.


Constructor & Destructor Documentation

ASTArray::ASTArray int  capacity  )  [inline]
 

Definition at line 28 of file ASTArray.hpp.


Member Function Documentation

ASTArray* ASTArray::add RefAST  node  )  [inline]
 

Definition at line 34 of file ASTArray.hpp.

References array, RefAST, and size.


Member Data Documentation

std ::vector<RefAST> ASTArray::array
 

Definition at line 26 of file ASTArray.hpp.

Referenced by add(), and ASTFactory::make().

int ASTArray::size
 

Definition at line 25 of file ASTArray.hpp.

Referenced by add().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:19:07 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003