OpenMD  2.5
Molecular Dynamics in the Open
antlr::ASTArray Class Reference

#include <ASTArray.hpp>

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()

antlr::ASTArray::ASTArray ( int  capacity)

Definition at line 28 of file ASTArray.hpp.

Member Function Documentation

◆ add()

ASTArray* antlr::ASTArray::add ( RefAST  node)

Definition at line 34 of file ASTArray.hpp.

Member Data Documentation

◆ array

std ::vector<RefAST> antlr::ASTArray::array

Definition at line 26 of file ASTArray.hpp.

Referenced by antlr::ASTFactory::make().

◆ size

int antlr::ASTArray::size

Definition at line 25 of file ASTArray.hpp.

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