comma::ASTStencil Class Reference

#include <Stencil.h>

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

List of all members.

Public Member Functions

 ASTStencil ()
void init (IdentifierInfo *name, Location loc)
 Initialize this stencil with the given location.
virtual void reset ()
 Reset this stencil to its default state.
IdentifierInfogetIdInfo () const
 Returns the defining identifier associated with this stencil.
Location getLocation () const
 Returns the location associated with this stencil.
bool isValid () const
 Returns true if this stencil is valid.
bool isInvalid () const
 Returns true if this stencil is invalid.
void markInvalid ()
 Marks this stencil as invalid.

Protected Attributes

IdentifierInfoname
Location location
unsigned validFlag: 1
unsigned subBits: 8*sizeof(unsigned) - 1

Detailed Description

Common base class for stencils. Provides encapsulation of identifier and location information, as well as state for marking a stencil as invalid.

Definition at line 42 of file Stencil.h.


Constructor & Destructor Documentation

comma::ASTStencil::ASTStencil (  )  [inline]

Definition at line 45 of file Stencil.h.


Member Function Documentation

IdentifierInfo* comma::ASTStencil::getIdInfo (  )  const [inline]

Returns the defining identifier associated with this stencil.

Definition at line 62 of file Stencil.h.

Location comma::ASTStencil::getLocation (  )  const [inline]

Returns the location associated with this stencil.

Definition at line 65 of file Stencil.h.

void comma::ASTStencil::init ( IdentifierInfo name,
Location  loc 
) [inline]

Initialize this stencil with the given location.

Definition at line 48 of file Stencil.h.

bool comma::ASTStencil::isInvalid (  )  const [inline]

Returns true if this stencil is invalid.

Definition at line 71 of file Stencil.h.

bool comma::ASTStencil::isValid (  )  const [inline]

Returns true if this stencil is valid.

Definition at line 68 of file Stencil.h.

void comma::ASTStencil::markInvalid (  )  [inline]

Marks this stencil as invalid.

Definition at line 74 of file Stencil.h.

virtual void comma::ASTStencil::reset (  )  [inline, virtual]

Reset this stencil to its default state.

Reimplemented in comma::EnumDeclStencil, and comma::SRDeclStencil.

Definition at line 54 of file Stencil.h.


Member Data Documentation

Definition at line 78 of file Stencil.h.

Definition at line 77 of file Stencil.h.

unsigned comma::ASTStencil::subBits [protected]

Definition at line 80 of file Stencil.h.

unsigned comma::ASTStencil::validFlag [protected]

Definition at line 79 of file Stencil.h.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1