Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

DimensionPower Class Reference

Collaboration diagram for DimensionPower:

Collaboration graph
[legend]
List of all members.

Public Methods

 DimensionPower ()
 DimensionPower ( Dimension* dim, int pwr )
bool operator== ( const DimensionPower& other ) const
DimensionPower& operator= ( const DimensionPower& other )
bool isNull () const

Public Attributes

Dimensionm_dim
int m_pwr

Static Public Methods

void print ( const vector<DimensionPower>& dpwr, FILE* f=stderr)

Detailed Description

This is a class that holds a reference to a basic dimension (MLTt) and the power to which it is raised (power should eventually be stored as a rational number). In most cases the power is an integer, and you can think of the power as the number of times that Dimension is repeated in the specification.


Constructor & Destructor Documentation

DimensionPower::DimensionPower ( ) [inline]
 

Default constructor

DimensionPower::DimensionPower ( Dimension * dim,
int pwr ) [inline]
 

Construct a DimensionPower given a Dimension and its exponent


Member Function Documentation

bool DimensionPower::isNull ( ) const [inline]
 

Check that this tuple has a meaningful dimension associated with it

DimensionPower & DimensionPower::operator= ( const DimensionPower & other ) [inline]
 

Assignment operator

bool DimensionPower::operator== ( const DimensionPower & other ) const [inline]
 

Test two tuples for equality.

void DimensionPower::print ( const vector< DimensionPower >& dpwr,
FILE * f = stderr ) [static]
 

Print the contents of a collection of (Dimension, exponent) tuples


Member Data Documentation

Dimension * DimensionPower::m_dim
 

The basic dimension

int DimensionPower::m_pwr
 

The exponent (power) to which the dimension is raised.


The documentation for this class was generated from the following files:
Citrus C++ Reference Manual  20010520