Puma Reference Manual Puma: Puma::CTypeRecord Class Reference



Puma::CTypeRecord Class Reference

#include <Puma/CTypeInfo.h>

Inheritance diagram for Puma::CTypeRecord:

Inheritance graph

List of all members.


Detailed Description

Type of a class or union.


Public Member Functions

 ~CTypeRecord ()
 Destructor.
long int Size ()
 Get the size of the class or union in bits.
long int Align ()
 Get the alignment of the type.
void hasConstMember (bool v)
 Set whether the class or union has a const member and thus is not modifiable.
bool hasConstMember () const
 Check if the class or union type has a const member and thus is not modifiable.
bool isComplete (unsigned long pos=0) const
 Check if the class or union is complete.
CRecordRecord () const
 Get the class or union.
void Record (CRecord *)
 Set the class or union.

Protected Member Functions

 CTypeRecord (TypeId id, CRecord *cu)
 Constructor.


Constructor & Destructor Documentation

Puma::CTypeRecord::CTypeRecord ( CTypeInfo::TypeId  id,
CRecord cu 
) [inline, protected]

Constructor.

Parameters:
id The type identifier.
cu The class or union.

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

Destructor.


Member Function Documentation

long int Puma::CTypeRecord::Size (  ) 

Get the size of the class or union in bits.

long int Puma::CTypeRecord::Align (  )  [inline]

Get the alignment of the type.

void Puma::CTypeRecord::hasConstMember ( bool  v  )  [inline]

Set whether the class or union has a const member and thus is not modifiable.

Parameters:
v True if it has a const member.

bool Puma::CTypeRecord::hasConstMember (  )  const [inline]

Check if the class or union type has a const member and thus is not modifiable.

bool Puma::CTypeRecord::isComplete ( unsigned long  pos = 0  )  const

Check if the class or union is complete.

Parameters:
pos Optional source code position.

Reimplemented from Puma::CTypeInfo.

CRecord * Puma::CTypeRecord::Record (  )  const [inline]

Get the class or union.

Reimplemented from Puma::CTypeInfo.

void Puma::CTypeRecord::Record ( CRecord r  )  [inline]

Set the class or union.




Puma Reference Manual. Created on 11 Jul 2008.