Puma::CAttributeInfo Class Reference

#include <Puma/infos/CAttributeInfo.h>

Inheritance diagram for Puma::CAttributeInfo:

Inheritance graph

List of all members.


Detailed Description

A CAttributeInfo object represents a local or global variable or a class data member.

Public Member Functions

 CAttributeInfo ()
 ~CAttributeInfo ()
CAttributeInfoBaseObject () const
CAttributeInfoDefObject () const
CT_InitDeclaratorTree () const
CT_ExprListInit () const
CTemplateInfoTemplateInfo () const
void TemplateInfo (CTemplateInfo *info)
CRecordRecord () const
CNamespaceInfoNamespace () const
void QualifiedScope (CStructure *scope)

Protected Member Functions

 CAttributeInfo (ObjectId id)

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

CAttributeInfo * Puma::CAttributeInfo::BaseObject (  )  const [inline]

Get the base info object of the info object. The corresponding information is not yet set!

Returns:
This method always returns NULL.
Warning:
Do not use this method.

Reimplemented from Puma::CObjectInfo.

Reimplemented in Puma::CEnumeratorInfo.

CAttributeInfo* Puma::CAttributeInfo::DefObject (  )  const

Get the info object of the variable definition.

Returns:
this or the info of the definition if the variable is a static class data member initialized outside of the class declaration.

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.

Returns:
The syntax tree node of the initializer or 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.

Returns:
The info or 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.

Parameters:
info The info of the template.

CRecord* Puma::CAttributeInfo::Record (  )  const

Get the record info if this is a data member of a record.

Returns:
The record info or 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.

Returns:
The info or 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.

Parameters:
scope The qualification scope of the variable.


Generated on Sat May 10 03:03:49 2008 for Puma by  doxygen 1.5.5