Puma Reference Manual Puma: Puma::CTypeBitField Class Reference



Puma::CTypeBitField Class Reference

Type of a bit-field. More...

#include <Puma/CTypeInfo.h>

Inherits Puma::CTypeInfo.

List of all members.

Public Member Functions

 CTypeBitField (CTypeInfo *base)
 Constructor.
 ~CTypeBitField ()
 Destructor.
void Dimension (long int dim)
 Set the dimension of the bit-field.
long int Dimension () const
 Get the dimension of the bit-field.

Detailed Description

Type of a bit-field.

Example:

 class X {
   int i : 10;      // i has type 'bit-field of size 10'
                    // type structure:
                    // CTypeBitField dim=10
                    //   CTypePrimitive int
 };

Constructor & Destructor Documentation

Puma::CTypeBitField::CTypeBitField ( CTypeInfo base  )  [inline]

Constructor.

Type has id CTypeInfo::TYPE_BIT_FIELD.

Parameters:
base The base type.
Puma::CTypeBitField::~CTypeBitField (  )  [inline]

Destructor.


Member Function Documentation

long int Puma::CTypeBitField::Dimension (  )  const [inline]

Get the dimension of the bit-field.

Reimplemented from Puma::CTypeInfo.

void Puma::CTypeBitField::Dimension ( long int  dim  )  [inline]

Set the dimension of the bit-field.

Parameters:
dim The dimension.



Puma Reference Manual. Created on 18 Sep 2009.