#include <utilities/ascConfig.h>
#include "compiler.h"
#include "fractions.h"
Include dependency graph for dimen.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | DimStruct |
Defines | |
| #define | NUM_DIMENS 10 |
| #define | D_MASS 0 |
| #define | D_QUANTITY 1 |
| #define | D_LENGTH 2 |
| #define | D_TIME 3 |
| #define | D_TEMPERATURE 4 |
| #define | D_CURRENCY 5 |
| #define | D_ELECTRIC_CURRENT 6 |
| #define | D_LUMINOUS_INTENSITY 7 |
| #define | D_PLANE_ANGLE 8 |
| #define | D_SOLID_ANGLE 9 |
| #define | DIM_WILD 0x1 |
| #define | GetDimFraction(d, i) ((d).f[i]) |
| #define | GetDimPower(d, i) (int)(Denominator((d).f[i])==1 ? Numerator((d).f[i]) : 0) |
| #define | SetDimFraction(d, i, frac) ( (d).f[(i)] = (frac) ) |
Typedefs | |
| typedef DimStruct | dim_type |
Functions | |
| void | InitDimenList (void) |
| void | DestroyDimenList (void) |
| ASC_DLLSPEC void | ClearDimensions (dim_type *d) |
| ASC_DLLSPEC CONST dim_type * | Dimensionless (void) |
| ASC_DLLSPEC CONST dim_type * | TrigDimension (void) |
| ASC_DLLSPEC CONST dim_type * | WildDimension (void) |
| CONST dim_type * | HalfDimension (CONST dim_type *d, int b) |
| CONST dim_type * | ThirdDimension (CONST dim_type *d, int b) |
| CONST dim_type * | SquareDimension (CONST dim_type *d, int b) |
| CONST dim_type * | CubeDimension (CONST dim_type *d, int b) |
| CONST dim_type * | PowDimension (long mult, CONST dim_type *d, int b) |
| void | SetWild (dim_type *dim) |
| ASC_DLLSPEC int | IsWild (CONST dim_type *d) |
| int | OddDimension (CONST dim_type *d) |
| int | NonCubicDimension (CONST dim_type *d) |
| int | SameDimen (CONST dim_type *d1, CONST dim_type *d2) |
| ASC_DLLSPEC int | CmpDimen (CONST dim_type *d1, CONST dim_type *d2) |
| ASC_DLLSPEC CONST dim_type * | FindOrAddDimen (CONST dim_type *d) |
| ASC_DLLSPEC void | CopyDimensions (CONST dim_type *src, dim_type *dest) |
| ASC_DLLSPEC dim_type | AddDimensions (CONST dim_type *d1, CONST dim_type *d2) |
| CONST dim_type * | SumDimensions (CONST dim_type *d1, CONST dim_type *d2, int check) |
| ASC_DLLSPEC dim_type | SubDimensions (CONST dim_type *d1, CONST dim_type *d2) |
| CONST dim_type * | DiffDimensions (CONST dim_type *d1, CONST dim_type *d2, int check) |
| ASC_DLLSPEC dim_type | ScaleDimensions (CONST dim_type *dim, struct fraction frac) |
| ASC_DLLSPEC void | ParseDim (dim_type *dim, CONST char *c) |
| ASC_DLLSPEC char * | DimName (CONST int nIndex) |
| CONST dim_type * | CheckDimensionsMatch (CONST dim_type *d1, CONST dim_type *d2) |
| ASC_DLLSPEC void | PrintDimen (FILE *f, CONST dim_type *d) |
| ASC_DLLSPEC void | PrintDimenMessage (CONST char *message, CONST char *label1, CONST dim_type *d1, CONST char *label2, CONST dim_type *d2) |
| ASC_DLLSPEC void | DumpDimens (FILE *f) |
Variables | |
| ASC_DLLSPEC struct gl_list_t * | g_dimen_list |
1.5.1