Puma Reference Manual Puma: 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>

Inherits Puma::CScopeRequest.

Inherited by Puma::CEnumeratorInfo.

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.
CT_ExprListInit () const
 Get the initializer of the object.
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

Puma::CAttributeInfo::CAttributeInfo ( CObjectInfo::ObjectId  id  )  [inline, protected]

Constructor.

Parameters:
id The object type.
Puma::CAttributeInfo::CAttributeInfo (  )  [inline]

Constructor.

Puma::CAttributeInfo::~CAttributeInfo (  ) 

Destructor.

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


Member Function Documentation

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

Get the semantic object for the object definition.

See also:
CObjectInfo::DefObject()

Reimplemented from Puma::CObjectInfo.

CT_ExprList* Puma::CAttributeInfo::Init (  )  const

Get the initializer of the object.

Returns:
The syntax tree node of the initializer or NULL if there is no initializer.

Reimplemented from Puma::CObjectInfo.

Reimplemented in Puma::CEnumeratorInfo.

CNamespaceInfo* Puma::CAttributeInfo::Namespace (  )  const

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

Returns:
The namespace or NULL if not declared in a namespace.
void Puma::CAttributeInfo::QualifiedScope ( CStructure scope  )  [inline]

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:
scope The qualification scope.
CRecord* Puma::CAttributeInfo::Record (  )  const

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.

void Puma::CAttributeInfo::TemplateInfo ( CTemplateInfo info  )  [inline]

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

Parameters:
info The semantic object of the template.
CTemplateInfo * Puma::CAttributeInfo::TemplateInfo (  )  const [inline]

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.

CT_InitDeclarator* Puma::CAttributeInfo::Tree (  )  const

Get the syntax tree node of the object.

Reimplemented from Puma::CObjectInfo.

Reimplemented in Puma::CEnumeratorInfo.




Puma Reference Manual. Created on 24 Nov 2009.