#include <Decl.h>
Public Member Functions | |
unsigned | getIndex () const |
Returns the index of this component. | |
const Type * | getType () const |
Returns the type of this component. | |
Type * | getType () |
Returns the type of this component. | |
RecordDecl * | getDeclRegion () |
Returns the RecordDecl this component belongs to. | |
const RecordDecl * | getDeclRegion () const |
Returns the type of this component. | |
Static Public Member Functions | |
static bool | classof (const ComponentDecl *node) |
Support isa and dyn_cast. | |
static bool | classof (const Ast *node) |
Friends | |
class | RecordDecl |
Definition at line 1795 of file Decl.h.
static bool comma::ComponentDecl::classof | ( | const Ast * | node | ) | [inline, static] |
Reimplemented from comma::Decl.
static bool comma::ComponentDecl::classof | ( | const ComponentDecl * | node | ) | [inline, static] |
const RecordDecl* comma::ComponentDecl::getDeclRegion | ( | ) | const [inline] |
Returns the type of this component.
Reimplemented from comma::Decl.
RecordDecl* comma::ComponentDecl::getDeclRegion | ( | ) | [inline] |
Returns the RecordDecl this component belongs to.
Reimplemented from comma::Decl.
unsigned comma::ComponentDecl::getIndex | ( | ) | const [inline] |
Returns the index of this component.
The value returned by this method gives the relative position of the component within its inclosing record. In particular, RecordDecl::getComponent(this->getIndex()) == this.
Type* comma::ComponentDecl::getType | ( | ) | [inline] |
const Type* comma::ComponentDecl::getType | ( | ) | const [inline] |
friend class RecordDecl [friend] |