Puma Reference Manual Puma: Puma::CTypeRecord Class Reference



Puma::CTypeRecord Class Reference

Type of a class or union. More...

#include <Puma/CTypeInfo.h>

Inherits Puma::CTypeInfo.

Inherited by Puma::CTypeClass, and Puma::CTypeUnion.

List of all members.

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.

Detailed Description

Type of a class or union.


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::Align (  )  [inline]

Get the alignment of the type.

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

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

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::isComplete ( unsigned long  pos = 0  )  const

Check if the class or union is complete.

Parameters:
pos Optional source code position.

Reimplemented from Puma::CTypeInfo.

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

Set the class or union.

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

Get the class or union.

Reimplemented from Puma::CTypeInfo.

long int Puma::CTypeRecord::Size (  ) 

Get the size of the class or union in bits.




Puma Reference Manual. Created on 11 Sep 2009.