Puma Reference Manual | Puma: Puma::CTypeMemberPointer Class Reference |
Type of a member pointer. More...
#include <Puma/CTypeInfo.h>
Inherits Puma::CTypePointer.
Public Member Functions | |
CTypeMemberPointer (CTypeInfo *base, CObjectInfo *info) | |
Constructor. | |
~CTypeMemberPointer () | |
Destructor. | |
CRecord * | Record () const |
Get the class or union containing the member. | |
CTemplateParamInfo * | TemplateParam () const |
Get the template parameter information if the member's class is a type template parameter. |
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
Puma::CTypeMemberPointer::CTypeMemberPointer | ( | CTypeInfo * | base, | |
CObjectInfo * | info | |||
) | [inline] |
Constructor.
Type has id CTypeInfo::TYPE_MEMBER_POINTER.
base | The base type (type of the member). | |
info | The class containing the member. |
Puma::CTypeMemberPointer::~CTypeMemberPointer | ( | ) | [inline] |
Destructor.
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.