Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

UnitPower Class Reference

#include <UnitPower.H>

Collaboration diagram for UnitPower:

Collaboration graph
[legend]
List of all members.

Public Methods

 UnitPower ()
 UnitPower ( Unit* unit, Prefix* prfx, int pwr )
bool operator== ( const UnitPower& other ) const
UnitPower& operator= ( const UnitPower& other )
bool isNull () const
xmlNodePtr mathML () const

Public Attributes

Unitm_unit
Prefixm_prfx
int m_pwr

Static Public Methods

void print ( const vector<UnitPower>& upwr, FILE* f=stderr )
xmlNodePtr mathML ( const vector<UnitPower>& upwr )

Detailed Description

This is a class that holds a reference to a unit and the power to which it is raised (power should eventually be stored as a rational number).


Constructor & Destructor Documentation

UnitPower::UnitPower ( )
 

Construct an empty UnitPower. Avoid this constructor.


Member Function Documentation

bool UnitPower::isNull ( ) const
 

Does this UnitPower make any sense? If so, this will return false.

xmlNodePtr UnitPower::mathML ( const vector< UnitPower >& upwr ) [static]
 

Generate a MathML XML tree of nodes for a vector of UnitPowers.

xmlNodePtr UnitPower::mathML ( ) const
 

Generate a MathML XML node for the unit power.

UnitPower & UnitPower::operator= ( const UnitPower & other )
 

Assignment operator

bool UnitPower::operator== ( const UnitPower & other ) const
 

Compare UnitPowers. Checks unit and power, but not prefix for match.

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

Print the units out


Member Data Documentation

Prefix * UnitPower::m_prfx
 

The prefix in front of the unit

int UnitPower::m_pwr
 

The power to which it is raised.

Unit * UnitPower::m_unit
 

The unit


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