comma::RangeAttrib Class Reference

Base class for range attribute nodes. More...

#include <RangeAttrib.h>

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

List of all members.

Public Member Functions

Location getLocation () const
 Returns the location of this attribute.



const AstgetPrefix () const
AstgetPrefix ()
virtual const DiscreteTypegetType () const =0
 Returns the type of this range attribute.
virtual DiscreteTypegetType ()=0

Static Public Member Functions

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

Protected Member Functions

 RangeAttrib (AstKind kind, Ast *prefix, Location loc)

Static Protected Member Functions

static bool denotesRangeAttrib (AstKind kind)

Detailed Description

Base class for range attribute nodes.

Definition at line 21 of file RangeAttrib.h.


Constructor & Destructor Documentation

comma::RangeAttrib::RangeAttrib ( AstKind  kind,
Ast prefix,
Location  loc 
) [inline, protected]

Definition at line 48 of file RangeAttrib.h.


Member Function Documentation

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

Reimplemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.

Definition at line 43 of file RangeAttrib.h.

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

Support isa and dyn_cast.

Reimplemented from comma::Ast.

Reimplemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.

Definition at line 42 of file RangeAttrib.h.

static bool comma::RangeAttrib::denotesRangeAttrib ( AstKind  kind  )  [inline, static, protected]

Definition at line 51 of file RangeAttrib.h.

Location comma::RangeAttrib::getLocation (  )  const [inline, virtual]

Returns the location of this attribute.

Reimplemented from comma::Ast.

Definition at line 33 of file RangeAttrib.h.

Ast* comma::RangeAttrib::getPrefix (  )  [inline]

Returns the prefix to which this attribute applies.

The returned node is either a TypeRef, SubroutineRef, or an Expr.

Reimplemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.

Definition at line 29 of file RangeAttrib.h.

const Ast* comma::RangeAttrib::getPrefix (  )  const [inline]

Returns the prefix to which this attribute applies.

The returned node is either a TypeRef, SubroutineRef, or an Expr.

Reimplemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.

Definition at line 28 of file RangeAttrib.h.

virtual DiscreteType* comma::RangeAttrib::getType (  )  [pure virtual]

Returns the prefix to which this attribute applies.

The returned node is either a TypeRef, SubroutineRef, or an Expr.

Implemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.

virtual const DiscreteType* comma::RangeAttrib::getType (  )  const [pure virtual]

Returns the type of this range attribute.

Implemented in comma::ArrayRangeAttrib, and comma::ScalarRangeAttrib.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1