comma::LastArrayAE Class Reference

#include <AttribExpr.h>

Inheritance diagram for comma::LastArrayAE:
Inheritance graph
[legend]
Collaboration diagram for comma::LastArrayAE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LastArrayAE (Expr *prefix, Expr *dimension, Location loc)
 LastArrayAE (Expr *prefix, Location loc)

Static Public Member Functions

static bool classof (const LastArrayAE *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)

Detailed Description

Represents the attribute A'Last(N), where A is an object of array type and N is a positive static integer expression denoting the dimension to which the attribute applies. The dimension is not required to be explicit, in which case the index defaults to 1.

Definition at line 300 of file AttribExpr.h.


Constructor & Destructor Documentation

comma::LastArrayAE::LastArrayAE ( Expr prefix,
Expr dimension,
Location  loc 
) [inline]

Creates a Last attribute expression with an explicit dimension.

Parameters:
prefix An expression which must resolve to an array type.
dimension A positive static integer expression which does not exceed the dimensionality of the type of prefix.
loc the location of the attribute.

Definition at line 311 of file AttribExpr.h.

comma::LastArrayAE::LastArrayAE ( Expr prefix,
Location  loc 
) [inline]

Creates a Last arribute expression with an implicit dimension of 1.

Parameters:
prefix An expression which must resolve to an array type.
loc the location of the attribute.

Definition at line 319 of file AttribExpr.h.


Member Function Documentation

static bool comma::LastArrayAE::classof ( const Ast node  )  [inline, static]

Reimplemented from comma::ArrayBoundAE.

Definition at line 324 of file AttribExpr.h.

static bool comma::LastArrayAE::classof ( const LastArrayAE node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::ArrayBoundAE.

Definition at line 323 of file AttribExpr.h.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1