Dimension Class Reference
#include <measurement.h>
List of all members.
|
Public Member Functions |
| | ~Dimension () |
Public Attributes |
| int | m |
| int | l |
| int | t |
| int | k |
| int | i |
Detailed Description
An dynamically-typed units class, for ease of integration with scripting languages and the like.
Although the units.h class has no runtime overhead in C++, it imposes too much of a burden in Python as far as the 'width' of the SWIG interface, and makes declaring values etc painful.
Also, type-checking with python becomes impossible since checks only work in units.h at compile-time.
This class implements runtime declaration of values and the units.h class will be expanded to allow automatic casting from suitable Measurement values.
Constructor & Destructor Documentation
| Dimension::~Dimension |
( |
|
) |
|
Member Data Documentation
Referenced by dimension_add(), dimension_cmp(), dimension_mul(), dimension_sub(), Measurement::isNonDim(), Units< M, L, T, K, I >::operator Measurement(), operator<<(), Measurement::toString(), and Units< M, L, T, K, I >::Units().
Referenced by dimension_add(), dimension_cmp(), dimension_mul(), dimension_sub(), Measurement::isNonDim(), Units< M, L, T, K, I >::operator Measurement(), operator<<(), Measurement::toString(), and Units< M, L, T, K, I >::Units().
Referenced by dimension_add(), dimension_cmp(), dimension_mul(), dimension_sub(), Measurement::isNonDim(), Units< M, L, T, K, I >::operator Measurement(), operator<<(), Measurement::toString(), and Units< M, L, T, K, I >::Units().
Referenced by dimension_add(), dimension_cmp(), dimension_mul(), dimension_sub(), Measurement::isNonDim(), Units< M, L, T, K, I >::operator Measurement(), operator<<(), Measurement::toString(), and Units< M, L, T, K, I >::Units().
Referenced by dimension_add(), dimension_cmp(), dimension_mul(), dimension_sub(), Measurement::isNonDim(), Units< M, L, T, K, I >::operator Measurement(), operator<<(), Measurement::toString(), and Units< M, L, T, K, I >::Units().
The documentation for this class was generated from the following files: