#include <Puma/infos/CAttributeInfo.h>

Public Member Functions | |
| CAttributeInfo () | |
| ~CAttributeInfo () | |
| CAttributeInfo * | BaseObject () const |
| CAttributeInfo * | DefObject () const |
| CT_InitDeclarator * | Tree () const |
| CT_ExprList * | Init () const |
| CTemplateInfo * | TemplateInfo () const |
| void | TemplateInfo (CTemplateInfo *info) |
| CRecord * | Record () const |
| CNamespaceInfo * | Namespace () const |
| void | QualifiedScope (CStructure *scope) |
Protected Member Functions | |
| CAttributeInfo (ObjectId id) | |
| Puma::CAttributeInfo::CAttributeInfo | ( | CObjectInfo::ObjectId | id | ) | [inline, protected] |
This constructor is to be used by classes inherited from CAttributeInfo. It makes it possible to set another object id than ATTRIBUTE_INFO.
| id | The object id to be used instead of ATTRIBUTE_INFO. |
| Puma::CAttributeInfo::CAttributeInfo | ( | ) | [inline] |
Construct a new attribute info.
| Puma::CAttributeInfo::~CAttributeInfo | ( | ) |
Destruct the attribute info. If the object id is ATTRIBUTE_INFO, Puma::CObjectInfo::CleanUp() is called.
| CAttributeInfo * Puma::CAttributeInfo::BaseObject | ( | ) | const [inline] |
Get the base info object of the info object. The corresponding information is not yet set!
NULL. Reimplemented from Puma::CObjectInfo.
Reimplemented in Puma::CEnumeratorInfo.
| CAttributeInfo* Puma::CAttributeInfo::DefObject | ( | ) | const |
Get the info object of the variable definition.
Reimplemented from Puma::CObjectInfo.
| CT_InitDeclarator* Puma::CAttributeInfo::Tree | ( | ) | const |
Get the syntax tree node of the variable declaration.
Reimplemented from Puma::CObjectInfo.
Reimplemented in Puma::CEnumeratorInfo.
| CT_ExprList* Puma::CAttributeInfo::Init | ( | ) | const |
Get the initializer of the variable.
NULL if there is no initializer. Reimplemented from Puma::CObjectInfo.
Reimplemented in Puma::CEnumeratorInfo.
| CTemplateInfo * Puma::CAttributeInfo::TemplateInfo | ( | ) | const [inline] |
Get the corresponding template info of static data members of class templates.
NULL otherwise. Reimplemented from Puma::CObjectInfo.
| void Puma::CAttributeInfo::TemplateInfo | ( | CTemplateInfo * | info | ) | [inline] |
Set the corresponding of a static data member or a class template.
| info | The info of the template. |
| CRecord* Puma::CAttributeInfo::Record | ( | ) | const |
Get the record info if this is a data member of a record.
NULL if not a member of a record. Reimplemented from Puma::CObjectInfo.
| CNamespaceInfo* Puma::CAttributeInfo::Namespace | ( | ) | const |
Get the namespace info if the variable is declared in a namespace.
NULL if not declared in a namespace. | void Puma::CAttributeInfo::QualifiedScope | ( | CStructure * | scope | ) | [inline] |
Set the qualification scope of the variable. This can be a namespace info for variables declared in a namespace or a record info for data members of a class/struct/union.
| scope | The qualification scope of the variable. |
1.5.5