/home/doxygen/libascend/compiler/dimen.h File Reference


Detailed Description

Ascend Dimensions Data Structure.

#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_typeDimensionless (void)
ASC_DLLSPEC CONST dim_typeTrigDimension (void)
ASC_DLLSPEC CONST dim_typeWildDimension (void)
CONST dim_typeHalfDimension (CONST dim_type *d, int b)
CONST dim_typeThirdDimension (CONST dim_type *d, int b)
CONST dim_typeSquareDimension (CONST dim_type *d, int b)
CONST dim_typeCubeDimension (CONST dim_type *d, int b)
CONST dim_typePowDimension (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_typeFindOrAddDimen (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_typeSumDimensions (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_typeDiffDimensions (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_typeCheckDimensionsMatch (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_tg_dimen_list


Generated on Thu Jul 17 04:00:23 2008 for libascend by  doxygen 1.5.1