Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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"

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 658 of file check_mdl.cpp.

static void mdl_check_xform_dep ( void  )
static

Definition at line 621 of file check_mdl.cpp.

static void mdl_check_xform_deplen ( void  )
static

Definition at line 607 of file check_mdl.cpp.

static void mdl_check_xforms ( void  )
static

Definition at line 651 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 458 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 672 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 430 of file check_mdl.cpp.

void mdl_find_syncdatasets ( struct mdl_sync_t root)

Definition at line 464 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 396 of file check_mdl.cpp.

static void mdl_free_data ( struct mdl_data_t d)
static

Definition at line 549 of file check_mdl.cpp.

static void mdl_free_dataset ( struct mdl_dataset_t d)
static

Definition at line 525 of file check_mdl.cpp.

static void mdl_free_datasize ( struct mdl_datasize_t d)
static

Definition at line 497 of file check_mdl.cpp.

static void mdl_free_dcontent ( struct mdl_dcontent_t c)
static

Definition at line 541 of file check_mdl.cpp.

static void mdl_free_element ( struct mdl_element_t e)
static

Definition at line 489 of file check_mdl.cpp.

static void mdl_free_hyptable ( struct mdl_hyptable_t h)
static

Definition at line 503 of file check_mdl.cpp.

static void mdl_free_lcontent ( struct mdl_lcontent_t c)
static

Definition at line 561 of file check_mdl.cpp.

static void mdl_free_link ( struct mdl_link_t l)
static

Definition at line 571 of file check_mdl.cpp.

static void mdl_free_sync ( struct mdl_sync_t s)
static

Definition at line 582 of file check_mdl.cpp.

static void mdl_free_table ( struct mdl_table_t t)
static

Definition at line 514 of file check_mdl.cpp.

static int mdl_get_depsize ( strlist *  deps)
static

Definition at line 593 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 695 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 417 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.