comma::RecordDecl Class Reference

#include <Decl.h>

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

List of all members.

Public Member Functions

ComponentDecladdComponent (IdentifierInfo *name, Location loc, Type *type)
unsigned numComponents () const
 Returns the number of components provided by this record.



const RecordTypegetType () const
 Returns this first subtype defined by this record type declaration.
RecordTypegetType ()
 Returns this first subtype defined by this record type declaration.
const ComponentDeclgetComponent (IdentifierInfo *name) const
 Returns the component declaration with the given identifier.
ComponentDeclgetComponent (IdentifierInfo *name)
 Returns this first subtype defined by this record type declaration.
const ComponentDeclgetComponent (unsigned i) const
 Returns the i'th component declaration provided by this record.
ComponentDeclgetComponent (unsigned i)
 Returns this first subtype defined by this record type declaration.

Static Public Member Functions

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

Friends

class AstResource

Detailed Description

Definition at line 1731 of file Decl.h.


Member Function Documentation

ComponentDecl * RecordDecl::addComponent ( IdentifierInfo name,
Location  loc,
Type type 
)

Constructs a ComponentDecl and associates it with this record.

The order in which is method is called determines the order of the associated components.

Definition at line 1219 of file Decl.cpp.

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

Reimplemented from comma::TypeDecl.

Definition at line 1774 of file Decl.h.

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

Support isa and dyn_cast.

Reimplemented from comma::TypeDecl.

Definition at line 1773 of file Decl.h.

ComponentDecl * RecordDecl::getComponent ( unsigned  i  ) 

Returns this first subtype defined by this record type declaration.

Definition at line 1229 of file Decl.cpp.

const ComponentDecl* comma::RecordDecl::getComponent ( unsigned  i  )  const [inline]

Returns the i'th component declaration provided by this record.

Definition at line 1767 of file Decl.h.

ComponentDecl * RecordDecl::getComponent ( IdentifierInfo name  ) 

Returns this first subtype defined by this record type declaration.

Definition at line 1235 of file Decl.cpp.

const ComponentDecl* comma::RecordDecl::getComponent ( IdentifierInfo name  )  const [inline]

Returns the component declaration with the given identifier.

Returns a null if a component with the given name could not be found.

Definition at line 1759 of file Decl.h.

RecordType* comma::RecordDecl::getType (  )  [inline]

Returns this first subtype defined by this record type declaration.

Reimplemented from comma::TypeDecl.

Definition at line 1740 of file Decl.h.

const RecordType* comma::RecordDecl::getType (  )  const [inline]

Returns this first subtype defined by this record type declaration.

Reimplemented from comma::TypeDecl.

Definition at line 1737 of file Decl.h.

unsigned comma::RecordDecl::numComponents (  )  const [inline]

Returns the number of components provided by this record.

Definition at line 1753 of file Decl.h.


Friends And Related Function Documentation

friend class AstResource [friend]

Definition at line 1783 of file Decl.h.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1