Puma Reference Manual Puma::CAttributeInfo Class Reference



Puma::CAttributeInfo Class Reference

Semantic information about a local or global object or a class data member. More...

#include <Puma/CAttributeInfo.h>

Inheritance diagram for Puma::CAttributeInfo:
Inheritance graph

List of all members.

Public Member Functions

 CAttributeInfo ()
 Constructor.
 ~CAttributeInfo ()
 Destructor.
CAttributeInfoDefObject () const
 Get the semantic object for the object definition.
CT_InitDeclaratorTree () const
 Get the syntax tree node of the object.
CTreeInit ()
 Get the syntax tree node of the initializer.
void Init (CTree *)
 Set the syntax tree node of the initializer.
CTemplateInfoTemplateInfo () const
 Get the template information object if this is a static data member of a class template.
void TemplateInfo (CTemplateInfo *info)
 Set the template information object of a static data member of a class template.
CRecordRecord () const
 Get the class or union if this is a data member of a class or union.
CNamespaceInfoNamespace () const
 Get the namespace if the object is declared in a namespace.
void QualifiedScope (CStructure *scope)
 Set the qualification scope of the object.

Protected Member Functions

 CAttributeInfo (ObjectId id)
 Constructor.

Detailed Description

Semantic information about a local or global object or a class data member.


Constructor & Destructor Documentation

Constructor.

Parameters:
idThe object type.

Constructor.

Destructor.

If the object type is CObjectInfo::ATTRIBUTE_INFO, then CObjectInfo::CleanUp() is called.


Member Function Documentation

Get the semantic object for the object definition.

See also:
CObjectInfo::DefObject()

Reimplemented from Puma::CObjectInfo.

Get the syntax tree node of the initializer.

void Puma::CAttributeInfo::Init ( CTree init) [inline]

Set the syntax tree node of the initializer.

Get the namespace if the object is declared in a namespace.

Returns:
The namespace or NULL if not declared in a namespace.

Set the qualification scope of the object.

This can be a namespace for objects declared in a namespace or a class/union for data members of a class/union.

Parameters:
scopeThe qualification scope.

Get the class or union if this is a data member of a class or union.

Returns:
The class or union, or NULL if not a member.

Reimplemented from Puma::CObjectInfo.

Get the template information object if this is a static data member of a class template.

Returns:
The template information object or NULL.

Reimplemented from Puma::CObjectInfo.

Set the template information object of a static data member of a class template.

Parameters:
infoThe semantic object of the template.

Get the syntax tree node of the object.

Reimplemented from Puma::CObjectInfo.

Reimplemented in Puma::CEnumeratorInfo.