My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros
equation.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "logging.h"
#include "complex.h"
#include "object.h"
#include "vector.h"
#include "matrix.h"
#include "matvec.h"
#include "dataset.h"
#include "strlist.h"
#include "netdefs.h"
#include "equation.h"
#include "evaluate.h"
#include "differentiate.h"
#include "constants.h"
#include "range.h"
#include "exception.h"
#include "exceptionstack.h"
#include "gperfapphash.cpp"
Include dependency graph for equation.cpp:

Go to the source code of this file.

Classes

struct  pconstant
 

Macros

#define A(a)   ((assignment *) (a))
 
#define N(n)   ((node *) (n))
 
#define C(c)   ((constant *) (c))
 
#define R(r)   ((reference *) (r))
 
#define D(con)   (C(con)->d)
 
#define isConst(n)   ((n)->getTag()==CONSTANT && C(n)->getType()==TAG_DOUBLE)
 
#define isZero(n)   (isConst(n) && D(n) == 0.0)
 
#define isOne(n)   (isConst(n) && D(n) == 1.0)
 
#define defCon(res, val)   res = new constant (TAG_DOUBLE); C(res)->d = val;
 
#define isDDX()
 
#define foreach_equation(eqn)
 

Macro Definition Documentation

#define A (   a)    ((assignment *) (a))

Definition at line 55 of file equation.cpp.

#define C (   c)    ((constant *) (c))

Definition at line 57 of file equation.cpp.

#define D (   con)    (C(con)->d)

Definition at line 441 of file equation.cpp.

#define defCon (   res,
  val 
)    res = new constant (TAG_DOUBLE); C(res)->d = val;

Definition at line 445 of file equation.cpp.

#define foreach_equation (   eqn)
Value:
for (assignment * (eqn) = A (equations); \
(eqn) != NULL; (eqn) = A ((eqn)->getNext ()))

Definition at line 1187 of file equation.cpp.

#define isConst (   n)    ((n)->getTag()==CONSTANT && C(n)->getType()==TAG_DOUBLE)

Definition at line 442 of file equation.cpp.

#define isDDX ( )
Value:
(nargs == 2 && !strcmp (n, "ddx") && \
args->getNext()->getTag () == REFERENCE)

Definition at line 699 of file equation.cpp.

#define isOne (   n)    (isConst(n) && D(n) == 1.0)

Definition at line 444 of file equation.cpp.

#define isZero (   n)    (isConst(n) && D(n) == 0.0)

Definition at line 443 of file equation.cpp.

#define N (   n)    ((node *) (n))

Definition at line 56 of file equation.cpp.

#define R (   r)    ((reference *) (r))

Definition at line 58 of file equation.cpp.