Generated on Thu Feb 14 2013 20:59:56 for Gecode by doxygen 1.8.3.1
Gecode::FlatZinc::AST::ArrayAccess Class Reference

Node representing an array access More...

#include <ast.hh>

Public Member Functions

 ArrayAccess (Node *a0, Node *idx0)
 
 ~ArrayAccess (void)
 
virtual void print (std::ostream &os)
 Output string representation. More...
 
- Public Member Functions inherited from Gecode::FlatZinc::AST::Node
virtual ~Node (void)
 Destructor. More...
 
void append (Node *n)
 Append n to an array node. More...
 
bool hasAtom (const std::string &id)
 Test if node has atom with id. More...
 
bool isInt (int &i)
 Test if node is int, if yes set i to the value. More...
 
bool isCall (const std::string &id)
 Test if node is function call with id. More...
 
Call * getCall (void)
 Return function call. More...
 
bool hasCall (const std::string &id)
 Test if node is function call or array containing function call id. More...
 
Call * getCall (const std::string &id)
 Return function call id. More...
 
Array * getArray (void)
 Cast this node to an array node. More...
 
Atom * getAtom (void)
 Cast this node to an Atom node. More...
 
int getIntVar (void)
 Cast this node to an integer variable node. More...
 
int getBoolVar (void)
 Cast this node to a Boolean variable node. More...
 
int getSetVar (void)
 Cast this node to a set variable node. More...
 
int getInt (void)
 Cast this node to an integer node. More...
 
bool getBool (void)
 Cast this node to a Boolean node. More...
 
double getFloat (void)
 Cast this node to a Float node. More...
 
SetLit * getSet (void)
 Cast this node to a set literal node. More...
 
std::string getString (void)
 Cast this node to a string node. More...
 
bool isIntVar (void)
 Test if node is an integer variable node. More...
 
bool isBoolVar (void)
 Test if node is a Boolean variable node. More...
 
bool isSetVar (void)
 Test if node is a set variable node. More...
 
bool isInt (void)
 Test if node is an integer node. More...
 
bool isBool (void)
 Test if node is a Boolean node. More...
 
bool isString (void)
 Test if node is a string node. More...
 
bool isArray (void)
 Test if node is an array node. More...
 
bool isSet (void)
 Test if node is a set literal node. More...
 
bool isAtom (void)
 Test if node is an atom node. More...
 

Public Attributes

Node * a
 
Node * idx
 

Detailed Description

Node representing an array access

Definition at line 264 of file ast.hh.

Constructor & Destructor Documentation

Gecode::FlatZinc::AST::ArrayAccess::ArrayAccess ( Node *  a0,
Node *  idx0 
)
inline

Definition at line 268 of file ast.hh.

Gecode::FlatZinc::AST::ArrayAccess::~ArrayAccess ( void  )
inline

Definition at line 270 of file ast.hh.

Member Function Documentation

virtual void Gecode::FlatZinc::AST::ArrayAccess::print ( std::ostream &  )
inlinevirtual

Output string representation.

Implements Gecode::FlatZinc::AST::Node.

Definition at line 271 of file ast.hh.

Member Data Documentation

Node* Gecode::FlatZinc::AST::ArrayAccess::a

Definition at line 266 of file ast.hh.

Node* Gecode::FlatZinc::AST::ArrayAccess::idx

Definition at line 267 of file ast.hh.


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