| Puma Reference Manual | Puma: Puma::CTypeMemberPointer Class Reference |
#include <Puma/CTypeInfo.h>

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. | |
| 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. | |
| 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 |
| CTemplateParamInfo* Puma::CTypeMemberPointer::TemplateParam | ( | ) | const |
Get the template parameter information if the member's class is a type template parameter.