Puma Reference Manual Puma: Puma::CTypeBitField Class Reference



Puma::CTypeBitField Class Reference

Type of a bit-field. More...

#include <Puma/CTypeInfo.h>

Inheritance diagram for Puma::CTypeBitField:
Inheritance graph

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:
baseThe base type.
Puma::CTypeBitField::~CTypeBitField ( ) [inline]

Destructor.


Member Function Documentation

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

Set the dimension of the bit-field.

Parameters:
dimThe dimension.
long int Puma::CTypeBitField::Dimension ( ) const [inline]

Get the dimension of the bit-field.

Reimplemented from Puma::CTypeInfo.