Puma Reference Manual | Puma: Puma::CTypeBitField Class Reference |
Type of a bit-field. More...
#include <Puma/CTypeInfo.h>
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. |
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 };
Puma::CTypeBitField::CTypeBitField | ( | CTypeInfo * | base | ) | [inline] |
Puma::CTypeBitField::~CTypeBitField | ( | ) | [inline] |
Destructor.
void Puma::CTypeBitField::Dimension | ( | long int | dim | ) | [inline] |
Set the dimension of the bit-field.
dim | The dimension. |
long int Puma::CTypeBitField::Dimension | ( | ) | const [inline] |
Get the dimension of the bit-field.
Reimplemented from Puma::CTypeInfo.