Puma Reference Manual Puma: Puma::CTypeMemberPointer Class Reference



Puma::CTypeMemberPointer Class Reference

#include <Puma/CTypeInfo.h>

Inheritance diagram for Puma::CTypeMemberPointer:

Inheritance graph

List of all members.


Detailed Description

Type of a member pointer.

Examples:

 struct X { int a; void f(int); };
 int X::* aptr = &X::a;          // aptr has type 'member pointer to int'
                                 // type structure:
                                 // CTypeMemberPointer class=X
                                 //   CTypePrimitive int
 void (X::*fptr)(int) = &X::f;   // fptr has type 'member pointer to function returning void with one argument int'
                                 // type structure:
                                 // CTypeMemberPointer class=X
                                 //   CTypeFunction args=int
                                 //     CTypePrimitive void

Public Member Functions

 CTypeMemberPointer (CTypeInfo *base, CObjectInfo *info)
 Constructor.
 ~CTypeMemberPointer ()
 Destructor.
CRecordRecord () const
 Get the class or union containing the member.
CTemplateParamInfoTemplateParam () const
 Get the template parameter information if the member's class is a type template parameter.

Constructor & Destructor Documentation

Puma::CTypeMemberPointer::CTypeMemberPointer ( CTypeInfo base,
CObjectInfo info 
) [inline]

Constructor.

Type has id CTypeInfo::TYPE_MEMBER_POINTER.

Parameters:
base The base type (type of the member).
info The class containing the member.

Puma::CTypeMemberPointer::~CTypeMemberPointer (  )  [inline]

Destructor.


Member Function Documentation

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

Get the class or union containing the member.

Reimplemented from Puma::CTypeInfo.

CTemplateParamInfo* Puma::CTypeMemberPointer::TemplateParam (  )  const

Get the template parameter information if the member's class is a type template parameter.




Puma Reference Manual. Created on 11 Jul 2008.