Qucs-core  0.0.19
Functions | Variables
check_mdl.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <assert.h>
#include <float.h>
#include <ctype.h>
#include "logging.h"
#include "strlist.h"
#include "object.h"
#include "complex.h"
#include "vector.h"
#include "dataset.h"
#include "sweep.h"
#include "valuelist.h"
#include "constants.h"
#include "check_mdl.h"
#include "tokens_mdl.h"
Include dependency graph for check_mdl.cpp:

Go to the source code of this file.

Functions

static void mdl_create_depdataset (sweep *data, char *name)
static void mdl_create_condataset (double val, char *name)
static void mdl_create_vardataset (struct mdl_point_t *point, struct mdl_datasize_t *dsize, const char *name, const char *type, strlist *deps)
static char * mdl_find_helement (struct mdl_element_t *root, const char *name)
static char * mdl_find_telement (struct mdl_element_t *root, const char *name)
static double mdl_convert_factor (char *end)
static double mdl_telement_dvalue (struct mdl_link_t *, struct mdl_element_t *, const char *)
static int mdl_resolve_variable (struct mdl_link_t *link, char *name, double &val)
static double mdl_variable_value (struct mdl_link_t *link, char *txt)
static double mdl_helement_dvalue (struct mdl_link_t *link, struct mdl_element_t *eroot, const char *name)
static int mdl_helement_ivalue (struct mdl_link_t *link, struct mdl_element_t *eroot, const char *name)
static void mdl_find_vardataset (struct mdl_dcontent_t *droot, char *name, strlist *deps)
valuelist< int > * mdl_find_depdataset (struct mdl_link_t *link, struct mdl_dcontent_t *droot, char *name)
static char * mdl_create_linkname (char *base, char *name)
static void mdl_find_deplink (struct mdl_link_t *link, char *name, valuelist< int > *deps)
static void mdl_find_varlink (struct mdl_link_t *link, char *name, strlist *deps)
static strlist * mdl_sort_deps (valuelist< int > *d)
static void mdl_find_link (struct mdl_link_t *link, char *name)
static void mdl_create_syndataset (vector *v, char *name)
void mdl_find_syncdatasets (struct mdl_sync_t *root)
static void mdl_free_element (struct mdl_element_t *e)
static void mdl_free_datasize (struct mdl_datasize_t *d)
static void mdl_free_hyptable (struct mdl_hyptable_t *h)
static void mdl_free_table (struct mdl_table_t *t)
static void mdl_free_dataset (struct mdl_dataset_t *d)
static void mdl_free_dcontent (struct mdl_dcontent_t *c)
static void mdl_free_data (struct mdl_data_t *d)
static void mdl_free_link (struct mdl_link_t *)
static void mdl_free_lcontent (struct mdl_lcontent_t *c)
static void mdl_free_sync (struct mdl_sync_t *s)
static int mdl_get_depsize (strlist *deps)
static void mdl_check_xform_deplen (void)
static void mdl_check_xform_dep (void)
static void mdl_check_xforms (void)
int mdl_check (void)
void mdl_destroy (void)
void mdl_init (void)

Variables

dataset * mdl_result = NULL
struct mdl_link_tmdl_root = NULL
struct mdl_sync_tmdl_sync_root = NULL

Function Documentation

int mdl_check ( void  )

Definition at line 660 of file check_mdl.cpp.

static void mdl_check_xform_dep ( void  ) [static]

Definition at line 623 of file check_mdl.cpp.

static void mdl_check_xform_deplen ( void  ) [static]

Definition at line 609 of file check_mdl.cpp.

static void mdl_check_xforms ( void  ) [static]

Definition at line 653 of file check_mdl.cpp.

static double mdl_convert_factor ( char *  end) [static]

Definition at line 136 of file check_mdl.cpp.

static void mdl_create_condataset ( double  val,
char *  name 
) [static]

Definition at line 64 of file check_mdl.cpp.

static void mdl_create_depdataset ( sweep *  data,
char *  name 
) [static]

Definition at line 57 of file check_mdl.cpp.

static char* mdl_create_linkname ( char *  base,
char *  name 
) [static]

Definition at line 364 of file check_mdl.cpp.

static void mdl_create_syndataset ( vector *  v,
char *  name 
) [static]

Definition at line 460 of file check_mdl.cpp.

static void mdl_create_vardataset ( struct mdl_point_t point,
struct mdl_datasize_t dsize,
const char *  name,
const char *  type,
strlist *  deps 
) [static]

Definition at line 71 of file check_mdl.cpp.

void mdl_destroy ( void  )

Definition at line 674 of file check_mdl.cpp.

valuelist<int>* mdl_find_depdataset ( struct mdl_link_t link,
struct mdl_dcontent_t droot,
char *  name 
)

Definition at line 270 of file check_mdl.cpp.

static void mdl_find_deplink ( struct mdl_link_t link,
char *  name,
valuelist< int > *  deps 
) [static]

Definition at line 371 of file check_mdl.cpp.

static char* mdl_find_helement ( struct mdl_element_t root,
const char *  name 
) [static]

Definition at line 114 of file check_mdl.cpp.

static void mdl_find_link ( struct mdl_link_t link,
char *  name 
) [static]

Definition at line 432 of file check_mdl.cpp.

void mdl_find_syncdatasets ( struct mdl_sync_t root)

Definition at line 466 of file check_mdl.cpp.

static char* mdl_find_telement ( struct mdl_element_t root,
const char *  name 
) [static]

Definition at line 123 of file check_mdl.cpp.

static void mdl_find_vardataset ( struct mdl_dcontent_t droot,
char *  name,
strlist *  deps 
) [static]

Definition at line 251 of file check_mdl.cpp.

static void mdl_find_varlink ( struct mdl_link_t link,
char *  name,
strlist *  deps 
) [static]

Definition at line 398 of file check_mdl.cpp.

static void mdl_free_data ( struct mdl_data_t d) [static]

Definition at line 551 of file check_mdl.cpp.

static void mdl_free_dataset ( struct mdl_dataset_t d) [static]

Definition at line 527 of file check_mdl.cpp.

static void mdl_free_datasize ( struct mdl_datasize_t d) [static]

Definition at line 499 of file check_mdl.cpp.

static void mdl_free_dcontent ( struct mdl_dcontent_t c) [static]

Definition at line 543 of file check_mdl.cpp.

static void mdl_free_element ( struct mdl_element_t e) [static]

Definition at line 491 of file check_mdl.cpp.

static void mdl_free_hyptable ( struct mdl_hyptable_t h) [static]

Definition at line 505 of file check_mdl.cpp.

static void mdl_free_lcontent ( struct mdl_lcontent_t c) [static]

Definition at line 563 of file check_mdl.cpp.

static void mdl_free_link ( struct mdl_link_t l) [static]

Definition at line 573 of file check_mdl.cpp.

static void mdl_free_sync ( struct mdl_sync_t s) [static]

Definition at line 584 of file check_mdl.cpp.

static void mdl_free_table ( struct mdl_table_t t) [static]

Definition at line 516 of file check_mdl.cpp.

static int mdl_get_depsize ( strlist *  deps) [static]

Definition at line 595 of file check_mdl.cpp.

static double mdl_helement_dvalue ( struct mdl_link_t link,
struct mdl_element_t eroot,
const char *  name 
) [static]

Definition at line 228 of file check_mdl.cpp.

static int mdl_helement_ivalue ( struct mdl_link_t link,
struct mdl_element_t eroot,
const char *  name 
) [static]

Definition at line 244 of file check_mdl.cpp.

void mdl_init ( void  )

Definition at line 697 of file check_mdl.cpp.

static int mdl_resolve_variable ( struct mdl_link_t link,
char *  name,
double &  val 
) [static]

Definition at line 160 of file check_mdl.cpp.

static strlist* mdl_sort_deps ( valuelist< int > *  d) [static]

Definition at line 419 of file check_mdl.cpp.

static double mdl_telement_dvalue ( struct mdl_link_t link,
struct mdl_element_t eroot,
const char *  name 
) [static]

Definition at line 236 of file check_mdl.cpp.

static double mdl_variable_value ( struct mdl_link_t link,
char *  txt 
) [static]

Definition at line 183 of file check_mdl.cpp.


Variable Documentation

dataset* mdl_result = NULL

Definition at line 52 of file check_mdl.cpp.

struct mdl_link_t* mdl_root = NULL

Definition at line 53 of file check_mdl.cpp.

struct mdl_sync_t* mdl_sync_root = NULL

Definition at line 54 of file check_mdl.cpp.