MEER  0.1
 Vše Třídy Prostory jmen Soubory Funkce Proměnné Výčty Hodnoty výčtu Definice maker
Třídy | Výčty | Funkce
Dokumentace prostoru jmen meerspace

Třídy

struct  Elem3D
 
struct  PoinT
 
struct  VectoR
 
struct  MatriX
 
class  Array
 
class  Array1d
 
class  Xscal
 
class  Dscal
 
class  Xvctr
 
class  Lvctr
 
class  Dvctr
 
class  Xmtrx
 
class  Lmtrx
 
class  Dmtrx
 
class  GPA
 GPA - Generic Pointer Array, template class manages 1d array of pointers to objects of type T. ...
 
struct  REGION
 data spojena s regionem ...
 
struct  NODE
 data spojena s uzlem ...
 
struct  ELEMENT
 data spojena s elementem ...
 
class  MEER
 Hlavní, a jedíná, třída knihovny MEER. ...
 

Výčty

enum  arrayClassType { DvctrClass, LvctrClass, DscalClass }
 
enum  arrayTypedef { ATlong, ATdouble }
 
enum  MEER_ErrorNorm {
  MEER_EN_Void, MEER_EN_strainDstrain, MEER_EN_strain_stress, MEER_EN_stressDstress,
  MEER_EN_stress_stress
}
 Typ integrálního meřítka chyby. ...
 
enum  MEER_IPValues { MEER_IPV_Void, MEER_IPV_strain, MEER_IPV_stress }
 Hodnoty v integracnich bodech, ktere budou vylepsovany a bude se z nich pocitat chyba. ...
 
enum  MEER_SPRpatchType { MEER_SPRPT_Void, MEER_SPRPT_2d }
 Typ spr patche, závisí na typu/geometrii elementů. ...
 
enum  MEER_SPRboundaryPatchType { MEER_SPRbpt_Void, MEER_SPRbpt_basic = 1, MEER_SPRbpt_nobnd = 2 }
 Strategie vytváření patchí na okraji regionu. ...
 
enum  MEER_ElemDisplInterpol { MEER_EDI_Void, MEER_EDI_2d_3n_linear, MEER_EDI_2d_4n_bilinear_1, MEER_EDI_2d_4n_bilinear_2 }
 pomoci tohoto enumu se predava nekolik informaci: ...
 
enum  ETCLR {
  ETC_VOID, ETC_B_BLACK, ETC_D_BLACK, ETC_B_RED,
  ETC_D_RED, ETC_B_GREEN, ETC_D_GREEN, ETC_B_YELLOW,
  ETC_D_YELLOW, ETC_B_BLUE, ETC_D_BLUE, ETC_B_VIOLET,
  ETC_D_VIOLET, ETC_B_CYAN, ETC_D_CYAN, ETC_B_WHITE,
  ETC_D_WHITE, ETC_DEFAULT
}
 enum ...
 

Funkce

double give_copy_r2z (double a, double zero)
 
double * give_copy_r2z (double *a, long n, double zero)
 
void pprint_symtensor (char *stream, int precision, const long *a)
 
void pprint_symtensor_zeroL (char *stream, int precision)
 
void pprint_symtensor (FILE *stream, int precision, const long *a)
 
void pprint_symtensor_zeroL (FILE *stream, int precision)
 
void pprint_tensor (FILE *stream, int precision, const double *a)
 
void pprint_symtensor (char *stream, int precision, const double *a)
 
void pprint_symtensor (FILE *stream, int precision, const double *a)
 
void pprint_tensor_zero (char *stream, int precision)
 
void pprint_tensor_zero (FILE *stream, int precision)
 
void shaker (long &n, long *a)
 zlikviduje vicenasobne cifry pro long in <0;..> ...
 
void sort_4 (long *x)
 Function sorts first four members of array with ascending order. ...
 
void sort_3 (long *x)
 Function sorts first three members of array with ascending order. ...
 
void sort_2 (long *x)
 Function sorts first two members of array with ascending order. ...
 
void solve_3 (const double *m, const double *r, double *l)
 Function solves the system of linear equations. ...
 
void solve_3 (const double **m, const double *r, double *l)
 Function solves the system of linear equations. ...
 
long solv_2nle (double zero, const double *a, const double *b, const double *c, const double *d, double *x, double *y)
 function solves system of two non-linear equations: a[0]*x*y + b[0]*x + c[0]*y + d[0] = 0 a[1]*x*y + b[1]*x + c[1]*y + d[1] = 0 answer: -1 = infinite number of results 0,1,2 = number of results ...
 
long solv_2le (double zero, const double *a, const double *b, const double *c, double &x, double &y)
 function solves system of two linear equations: a[0]*x + b[0]*y + c[0] = 0 a[1]*x + b[1]*y + c[1] = 0 answer: -1 = infinite number of results 0,1 = number of results ...
 
long solv_1le (double zero, double a, double b, double &x)
 function solves linear equation: a*x + b = 0 answer: -1 = infinite number of results 0,1 = number of results ...
 
void nilling (double zero, double &a)
 
double nillret (double zero, double a)
 
bool isZero (double zero, double a)
 
bool isZero (double abszero, double relzero, double a)
 
long solv_polynom_2 (double zero, double a, double b, double c, double &r1, double &r2)
 function searchs roots of polynom of 2nd order = quadratic equation a*x^2 + b*x + c = 0 answer: -1 = infinite number of results 0,1,2 = no,one,two results ...
 
long div_dd (double d1, double d2, const char *s1, const char *s2, const long line)
 
long div_dd (long &answer, double d1, double d2)
 
long div_dd (int &answer, double d1, double d2)
 
int decomp_int (int answer[], int n, int l, int rad)
 
long decomp_int (int answer[], int n, long l, long rad)
 
long long decomp_int (int answer[], int n, long long l, long long rad)
 
bool isNonZero (double x, double tolerance)
 
void errorr (const char *file, int line, const char *format,...)
 

*** *** *** *** ERROR FCE *** *** *** ***


...
 
void warningg (const char *file, int line, const char *format,...)
 
void openFileTest (const FILE *stream, const char *name)
 

*** *** *** *** FILE FCE *** *** *** ***


...
 
FILE * openFileN (const char *File, int Line, const char *mode, const char *key, const char *name)
 
FILE * openFilePN (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name)
 
FILE * openFilePNS (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name, const char *suff)
 
FILE * openFilePNSS (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name, const char *suff, const char *suff2)
 
const char * trmt_clr_int2clr (ETCLR clr)
 
void change_console_colour (FILE *stream, ETCLR clr)
 
template<class ArgType >
void allocate (ArgType *&p, long a)
 

*** *** *** *** ALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void allocate (ArgType **&p, long a, long b)
 
template<class ArgType >
void allocate (ArgType ***&p, long a, long b, long c)
 
template<class ArgType >
void deallocateCheck (ArgType *p, bool check=true)
 

*** *** *** *** DEALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void deallocateCheckUno (ArgType *p, bool check=true)
 
template<class ArgType >
void deallocateCheck (ArgType **p, long a, bool check=true)
 
template<class ArgType >
void deallocateCheckUno (ArgType **p, long a, bool check=true)
 
template<class ArgType >
void deallocateCheck (ArgType ***p, long a, long b, bool check=true)
 
template<class ArgType >
void deallocateCheckUno (ArgType ***p, long a, long b, bool check=true)
 
template<class ArgType >
void deallocateCheck (ArgType ***p, long a, long *b, bool check=true)
 
template<class ArgType >
void fill_all_by (ArgType *p, long a, ArgType value)
 

*** *** *** *** FILL TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void fill_all_by (ArgType **p, long a, long b, ArgType value)
 
template<class ArgType >
void fill_all_by (ArgType ***p, long a, long b, long c, ArgType value)
 
template<class ArgType >
void fill_row_by (ArgType **p, long i, long m, ArgType value)
 
template<class ArgType >
void fill_col_by (ArgType **p, long n, long j, ArgType value)
 
template<class ArgType >
void allocate_another_val (long n, ArgType *&old_field)
 

*** *** *** *** REALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void allocate_another_uno_ptr (long n, ArgType **&old_field, long add=1)
 
template<class ArgType >
void setadd_another_uno_ptr (long &n, ArgType **&field, ArgType *p)
 
template<class ArgType >
void shake_down_ptr_array (long &n, ArgType *array)
 

*** *** *** *** VARIOUS TEMPLATES *** *** *** ***


...
 
template<class ArgType >
long arrays_arenot_identical (long n, ArgType *a1, ArgType *a2)
 
template<class ArgType >
long is_member_of_array (ArgType val, long n, const ArgType *array)
 check out "val" is member of "array" ...
 
template<class ArgType >
bool members_are_unique (long n, const ArgType *array)
 check out all members of array "a" are uniq ...
 
template<class ArgType >
bool same_array_elements_asym (long nx, const ArgType *x, long ny, const ArgType *y, bool same_dim=false)
 Function finds out whether every element of the array 'x' is in the array 'y'. ...
 
template<class ArgType >
bool same_array_elements_sym (long nx, const ArgType *x, long ny, const ArgType *y, bool same_dim=false)
 Function finds out whether every element of the array 'x' is in the array 'y', and symmetrically every element of the array 'y' is in the array 'x'. ...
 
template<class ArgType >
void add_array (long &n1, ArgType *&array1, long n2, const ArgType *array2)
 
template<class ArgType >
void add_array_unique (long &n1, ArgType *&array1, long n2, const ArgType *array2)
 
template<class ArgType >
void interchange2 (ArgType &a, ArgType &b)
 
bool isWordChar (char C)
 

*** *** *** *** GENERAL FUNCTIONS *** *** *** ***


return true if character C is "normal" char –> C != ' ' '' '
' '\0' '' ...

 
bool isLineChar (char C)
 return true if character C is "normal" char or "space" char –> C != '
' '\0' '' ...
 
bool isSpaceChar (char C)
 return true if character C is "space" char –> C == ' ' '' ...
 
bool isDigitChar (char C)
 
long giveLineLength (const char *src)
 return length of line == sting compount of "line chars" ...
 
char * strdupl (const char *src)
 standard strdup - Memory for the new string is obtained with malloc(3), and can be freed with free(3). ...
 
char * strdupl (const char *src1, const char *src2)
 
char * strdupl (const char *src1, const char *src2, const char *src3)
 
char * pathstrdupl (const char *src)
 
long AP_find_option (int argc, char *argv[], const char *s)
 

*** *** *** *** ARGUMENTS PROCESSING *** *** *** ***


terminology: tar -cz -f archiv.tgz archiv/ /// fce name | arguments /// fce name | options | parameters /// fce name | opt | opt | opt argum. ...

 
void AP_fprint_arguments (FILE *stream, int argc, char *argv[])
 print arguments to stream ...
 
bool FP_skip_comment (FILE *stream)
 

*** *** *** *** FILE PROCESSING *** *** *** ***


general rules for file processing: ...

 
void FP_skip_line_commented (FILE *stream)
 move file descriptor to the start of the new noncommented line, without checking of EOF ...
 
void FP_skip_line_fast_skip_commented (FILE *stream, int n)
 move file descriptor to the start of the n-th new line, without checking of EOF ...
 
bool FP_skip_line (FILE *stream, int n)
 move file descriptor to the start of the n-th new line //[former read_line] ...
 
bool FP_skip_behind_line_starting_with (FILE *stream, const char *string, bool cs)
 move file descriptor to the start of the new line after the one starting with string ...
 
bool FP_skip_to_line_starting_with (FILE *stream, const char *string, bool cs)
 move file descriptor to the line starting with string, exactly behind the string ...
 
bool FP_skip_to_line_starting_with (FILE *stream, char C)
 replacement of old function "read_contiguous_star" move file descriptor to the line starting with character, directly to this char ...
 
bool FP_scan_array (FILE *stream, int n, int *dest)
 scan/copy array of numbers from src to dest, src pointer is shifted over the field ...
 
bool FP_scan_array (FILE *stream, int n, long *dest)
 
bool FP_scan_array (FILE *stream, int n, double *dest)
 
long FP_number_of_words (FILE *stream)
 count number of words (see isWordChar) in file ...
 
long FP_number_of_lines (FILE *stream, bool rwd)
 count number of lines in file ...
 
bool FP_skip_nonword (FILE *stream)
 

*** *** *** SKIPING *** *** ***


skiping == shift stream pointer at the first char which is not ... ...

 
bool FP_skip_space (FILE *stream)
 ... space ...
 
bool FP_skip_word (FILE *stream)
 ... word ...
 
long FP_scan_line_skip_emptyORcommented (FILE *stream, char *dest)
 

*** *** *** SCANNING *** *** ***


scanning == scan ... ...

 
long FP_scan_line (FILE *stream, char *dest)
 scan/copy line == string without '
' from stream ...
 
long FP_scan_line_alloc (FILE *stream, char *&dest)
 scan/copy line == string without '
' from stream; dest is NULL and allocated here ...
 
int FP_scan_word (FILE *src, char *dest)
 ... word; return value is length of the word ...
 
bool FP_skip_expected_string (FILE *src, const char *expctd, bool cs)
 ... word and compare with expected one ...
 
bool FP_scan_expected_word (FILE *src, const char *expctd, bool cs)
 ... word and compare with expected one ...
 
void FP_scan_expected_word_FL (const char *file, int line, FILE *src, const char *expctd, const char *msg, bool cs)
 ... word and compare with expected one, exit if false ...
 
bool FP_scan_expected_line (FILE *src, const char *expctd, bool cs)
 ... line and compare with expected one ...
 
void FP_scan_expected_line_FL (const char *file, int line, FILE *src, const char *expctd, const char *msg, bool cs)
 ... line and compare with expected one, exit if false ...
 
void errorr_expected (const char *file, int line, const char *msg, const char *expctd, const char *src)
 

*** *** *** *** STRING PROCESSING *** *** *** ***


src pointer is always shifted over the skipped/scanned/printed word/number/array word is string separated by ' ', '', '
' or '\0' ...

 
void errorr_expected (const char *file, int line, const char *msg, int expctd, const char *src)
 
void errorr_expected (const char *file, int line, const char *msg, long expctd, const char *src)
 
bool SP_cutcomment (char *src)
 cut of comment == end of line starting by '#' ...
 
bool SP_unskip_space (const char *&src)
 

*** *** *** SKIPING *** *** ***


(un)skiping == shift src pointer at the end(start) of ... ...

 
bool SP_skip_space (const char *&src)
 ... space == ' ' and '' characters ...
 
bool SP_skip_word (const char *&src, int n)
 ... word and space before ...
 
bool SP_skip_int (const char *&src)
 ... word compound of digits and space before ...
 
void SP_unscan_word (const char *&src, const char *w)
 

*** *** *** SCANNING *** *** ***


unscan word == shift pointer back over word ...

 
bool SP_scan_character (const char *&src, char &dest)
 scanning == scan ... to variable dest and shift src pointer at the end of ... ...
 
long SP_scan_word (const char *&src, char *dest)
 ... word; return value is length of the word ...
 
long SP_scan_line (const char *&src, char *dest)
 ... line; return value is length of the line ...
 
long SP_scan_line_alloc (const char *&src, char *&dest)
 ... line; return value is length of the line; dest is NULL and allocated here ...
 
bool SP_scan_expected_word (const char *&src, const char *expctd, bool cs)
 ... word and compare with expected one ...
 
void SP_scan_expected_word_FL (const char *file, int line, const char *&src, const char *expctd, const char *msg, bool cs)
 ... word and compare with expected one/two/three, exit if false ...
 
void SP_scan_expected_word_FL (const char *file, int line, const char *&src, const char *expctd1, const char *expctd2, const char *msg, bool cs)
 
void SP_scan_expected_word_FL (const char *file, int line, const char *&src, const char *expctd1, const char *expctd2, const char *expctd3, const char *msg, bool cs)
 
bool SP_scan_number (const char *&src, int &dest)
 ... number of type int/long/double ...
 
bool SP_scan_number (const char *&src, long &dest)
 
bool SP_scan_number (const char *&src, double &dest)
 
bool SP_scan_array_L (const char *&src, int L, double *a)
 
bool SP_scan_Dvctr_exit (const char *&src, int n, Dvctr *v)
 
bool SP_print_space (const char *&src, FILE *stream)
 

*** *** *** PRINTING *** *** ***


printing == print ... ...

 
bool SP_print_word (const char *&src, FILE *stream)
 ... word ...
 
long find_double (long n, long *p)
 

*** *** *** *** OBSOLETE FUNCTIONS *** *** *** ***


...
 
void sprint_param (char *s, char *argv[], int n)
 
void read_star_end (FILE *stream, int n)
 
void read_star (FILE *stream)
 
void copy_star_end (FILE *sour, FILE *dest, int n=1)
 read line of file until
, no save, dava bacha na EOF ...
 
void copy_star (FILE *sour, FILE *dest)
 
void copy_line (FILE *sour, FILE *dest, int n)
 
void copy_to_end_line (FILE *sour, FILE *dest)
 
void copy_file (FILE *sour, FILE *dest)
 
int extract_long (const char *s1, const char *s2, long &a)
 
int extract_double (const char *s1, const char *s2, double &a)
 v retezci s1 se najde key retezec s2 a za nim se precte double ...
 
void ad_line (FILE *stream, char *s)
 
template<class ArgType >
bool SP_scan_expected_number (const char *&src, ArgType expctd)
 ... number and compare with expected one ...
 
template<class ArgType >
void SP_scan_expected_number_FL (const char *file, int line, const char *&src, ArgType expctd, const char *msg)
 ... number and compare with expected one, exit if false ...
 
template<class ArgType >
bool SP_scan_array (const char *&src, int n, ArgType *a)
 ... array of numbers ...
 
template<class ArgType >
bool SP_scan_array (const char *&src, long n, ArgType *a)
 
template<class ArgType >
bool SP_scan_array_alloc (const char *&src, long &n, ArgType *&a)
 
template<class ArgType >
bool SP_scan_Xvctr (const char *&src, ArgType *dest)
 bool SP_scan_Dvctr (const char *&src, Dvctr *dest); ...
 
void extract_double_array (const char *s1, const char *s2, long n, double *a)
 
void give_line (FILE *stream, char *&s)
 

Dokumentace výčtových typů

Hodnoty výčtu
DvctrClass 
LvctrClass 
DscalClass 

Definice je uvedena na řádku 269 v souboru arrays.h.

Hodnoty výčtu
ATlong 
ATdouble 

Definice je uvedena na řádku 270 v souboru arrays.h.

enum

Hodnoty výčtu
ETC_VOID 
ETC_B_BLACK 
ETC_D_BLACK 
ETC_B_RED 
ETC_D_RED 
ETC_B_GREEN 
ETC_D_GREEN 
ETC_B_YELLOW 
ETC_D_YELLOW 
ETC_B_BLUE 
ETC_D_BLUE 
ETC_B_VIOLET 
ETC_D_VIOLET 
ETC_B_CYAN 
ETC_D_CYAN 
ETC_B_WHITE 
ETC_D_WHITE 
ETC_DEFAULT 

Definice je uvedena na řádku 89 v souboru obecne.h.

pomoci tohoto enumu se predava nekolik informaci:

  • typ interpolace posunu po prvku
  • prirozene souradnice a cislovani uzlu na jednotkovem prvku
Hodnoty výčtu
MEER_EDI_Void 

empty

MEER_EDI_2d_3n_linear 

2 dimensions; 3 nodes; linear interpolation // l1,l2,l3 (0;1) ...

...

MEER_EDI_2d_4n_bilinear_1 

2 dimensions; 4 nodes; bilinear interpolation // takto to ma nastavene OOFEM pro ctyruhelniky cisla uzlu a jejich souradnice (ksi,eta) // ^ eta // | // (-1, 1) 2—|—1 ( 1, 1) // | | | // | +-----—> ksi // | | // (-1,-1) 3----—4 ( 1,-1) //

MEER_EDI_2d_4n_bilinear_2 

2 dimensions; 4 nodes; bilinear interpolation // takto to ma nastavene brnensky FEM pro prvek MITC4 cisla uzlu a jejich souradnice (ksi,eta) // ^ eta // | // (-1, 1) 4—|—3 ( 1, 1) // | | | // | +-----—> ksi // | | // (-1,-1) 1----—2 ( 1,-1) //

Definice je uvedena na řádku 91 v souboru meer.h.

Typ integrálního meřítka chyby.

Hodnoty výčtu
MEER_EN_Void 

empty enum

MEER_EN_strainDstrain 

energy norm - error^2 = strain_T * D * strain

MEER_EN_strain_stress 

energy norm - error^2 = strain_T * stress

MEER_EN_stressDstress 

energy norm - error^2 = stress_T * D^-1 * stress

MEER_EN_stress_stress 

L2 norm - error^2 = stress_T * stress.

Definice je uvedena na řádku 47 v souboru meer.h.

Hodnoty v integracnich bodech, ktere budou vylepsovany a bude se z nich pocitat chyba.

Hodnoty výčtu
MEER_IPV_Void 
MEER_IPV_strain 
MEER_IPV_stress 

Definice je uvedena na řádku 56 v souboru meer.h.

Strategie vytváření patchí na okraji regionu.

Každý uzel může být P1 - dostatek sampling/integration pointů pro vytvoření patche nebo P2 - nedostatek sampling/integration pointů pro vytvoření patche.

Každý uzel může ležet: PB0 - uvnitř regionu; PB1 - boundary = na okraji regionu; PB2 - boundary = na okraji regionu, v rohu tak, že se dotýká jen jednoho elementu, který je 4uhelník; PB3 - boundary = na okraji regionu, v rohu tak, že se dotýká jen jednoho elementu, který je 3uhelník na tento uzel nejde interpolovat z PB0, musí se najít PB1 a iterpolovat se z něj.

Hodnoty výčtu
MEER_SPRbpt_Void 

empty enum

MEER_SPRbpt_basic 

Patch se dělá v každém P1 bodě a interpoluje se navíc do všech P2 bodů na patchi.

MEER_SPRbpt_nobnd 

a) Patch se dělá v každém P1 bodě který není PB a interpoluje se navíc do všech PB a P2 bodů na patchi.

b) Patch se dělá v každém P1 bodě který je PB1 a spadá pod něj PB3, a interpoluje se navíc do všech PB a P2 bodů na patchi.

Definice je uvedena na řádku 77 v souboru meer.h.

Typ spr patche, závisí na typu/geometrii elementů.

Hodnoty výčtu
MEER_SPRPT_Void 

empty enum

MEER_SPRPT_2d 

Plošné elementy.

Definice je uvedena na řádku 63 v souboru meer.h.

Dokumentace funkcí

void meerspace::ad_line ( FILE *  stream,
char *  s 
)

Definice je uvedena na řádku 728 v souboru retezce.cpp.

template<class ArgType >
void meerspace::add_array ( long &  n1,
ArgType *&  array1,
long  n2,
const ArgType *  array2 
)

Definice je uvedena na řádku 364 v souboru obecne.h.

template<class ArgType >
void meerspace::add_array_unique ( long &  n1,
ArgType *&  array1,
long  n2,
const ArgType *  array2 
)

Definice je uvedena na řádku 380 v souboru obecne.h.

Odkazuje se na is_member_of_array().

template<class ArgType >
void meerspace::allocate ( ArgType *&  p,
long  a 
)


*** *** *** *** ALLOCATE TEMPLATES *** *** *** ***


Definice je uvedena na řádku 183 v souboru obecne.h.

Používá se v allocate().

template<class ArgType >
void meerspace::allocate ( ArgType **&  p,
long  a,
long  b 
)

Definice je uvedena na řádku 184 v souboru obecne.h.

Odkazuje se na allocate().

template<class ArgType >
void meerspace::allocate ( ArgType ***&  p,
long  a,
long  b,
long  c 
)

Definice je uvedena na řádku 185 v souboru obecne.h.

Odkazuje se na allocate().

template<class ArgType >
void meerspace::allocate_another_uno_ptr ( long  n,
ArgType **&  old_field,
long  add = 1 
)

Definice je uvedena na řádku 262 v souboru obecne.h.

Používá se v setadd_another_uno_ptr().

template<class ArgType >
void meerspace::allocate_another_val ( long  n,
ArgType *&  old_field 
)


*** *** *** *** REALLOCATE TEMPLATES *** *** *** ***


Definice je uvedena na řádku 251 v souboru obecne.h.

Odkazuje se na _errorr.

long meerspace::AP_find_option ( int  argc,
char *  argv[],
const char *  s 
)


*** *** *** *** ARGUMENTS PROCESSING *** *** *** ***


terminology: tar -cz -f archiv.tgz archiv/ /// fce name | arguments /// fce name | options | parameters /// fce name | opt | opt | opt argum.

pass through arguments looking for option "s" [former find_param]

| parameters /// argv[0] argv[1] ... ... argv[argc-1] pass through arguments looking for option "s" return position of the option, 0 if not found

Definice je uvedena na řádku 97 v souboru retezce.cpp.

Odkazuje se na _STRCASECMP.

void meerspace::AP_fprint_arguments ( FILE *  stream,
int  argc,
char *  argv[] 
)

print arguments to stream

print arguments to stream [former print_command_line]

Definice je uvedena na řádku 106 v souboru retezce.cpp.

template<class ArgType >
long meerspace::arrays_arenot_identical ( long  n,
ArgType *  a1,
ArgType *  a2 
)

Definice je uvedena na řádku 300 v souboru obecne.h.

Používá se v meerspace::GPA< T >::is_identical_with().

void meerspace::change_console_colour ( FILE *  stream,
ETCLR  clr 
)
inline

Definice je uvedena na řádku 129 v souboru obecne.h.

Odkazuje se na CHANGE_CONSOLE_COLOUR a trmt_clr_int2clr().

void meerspace::copy_file ( FILE *  sour,
FILE *  dest 
)

Definice je uvedena na řádku 702 v souboru retezce.cpp.

void meerspace::copy_line ( FILE *  sour,
FILE *  dest,
int  n 
)

Definice je uvedena na řádku 689 v souboru retezce.cpp.

Používá se v copy_star_end().

void meerspace::copy_star ( FILE *  sour,
FILE *  dest 
)

Definice je uvedena na řádku 683 v souboru retezce.cpp.

Používá se v copy_star_end().

void meerspace::copy_star_end ( FILE *  sour,
FILE *  dest,
int  n 
)

read line of file until
, no save, dava bacha na EOF

Definice je uvedena na řádku 679 v souboru retezce.cpp.

Odkazuje se na copy_line() a copy_star().

void meerspace::copy_to_end_line ( FILE *  sour,
FILE *  dest 
)

Definice je uvedena na řádku 695 v souboru retezce.cpp.

template<class ArgType >
void meerspace::deallocateCheck ( ArgType *  p,
bool  check = true 
)


*** *** *** *** DEALLOCATE TEMPLATES *** *** *** ***


Definice je uvedena na řádku 192 v souboru obecne.h.

Odkazuje se na _warningg.

Používá se v deallocateCheck().

template<class ArgType >
void meerspace::deallocateCheck ( ArgType **  p,
long  a,
bool  check = true 
)

Definice je uvedena na řádku 204 v souboru obecne.h.

Odkazuje se na _warningg a deallocateCheck().

template<class ArgType >
void meerspace::deallocateCheck ( ArgType ***  p,
long  a,
long  b,
bool  check = true 
)

Definice je uvedena na řádku 216 v souboru obecne.h.

Odkazuje se na _warningg a deallocateCheck().

template<class ArgType >
void meerspace::deallocateCheck ( ArgType ***  p,
long  a,
long *  b,
bool  check = true 
)

Definice je uvedena na řádku 226 v souboru obecne.h.

Odkazuje se na _warningg a deallocateCheck().

template<class ArgType >
void meerspace::deallocateCheckUno ( ArgType *  p,
bool  check = true 
)

Definice je uvedena na řádku 197 v souboru obecne.h.

Odkazuje se na _warningg.

Používá se v deallocateCheckUno().

template<class ArgType >
void meerspace::deallocateCheckUno ( ArgType **  p,
long  a,
bool  check = true 
)

Definice je uvedena na řádku 209 v souboru obecne.h.

Odkazuje se na _warningg a deallocateCheckUno().

template<class ArgType >
void meerspace::deallocateCheckUno ( ArgType ***  p,
long  a,
long  b,
bool  check = true 
)

Definice je uvedena na řádku 221 v souboru obecne.h.

Odkazuje se na _warningg a deallocateCheckUno().

int meerspace::decomp_int ( int  answer[],
int  n,
int  l,
int  rad 
)

Definice je uvedena na řádku 384 v souboru mathem.cpp.

long meerspace::decomp_int ( int  answer[],
int  n,
long  l,
long  rad 
)

Definice je uvedena na řádku 389 v souboru mathem.cpp.

long long meerspace::decomp_int ( int  answer[],
int  n,
long long  l,
long long  rad 
)

Definice je uvedena na řádku 394 v souboru mathem.cpp.

long meerspace::div_dd ( double  d1,
double  d2,
const char *  s1,
const char *  s2,
const long  line 
)

Definice je uvedena na řádku 360 v souboru mathem.cpp.

Používá se v div_dd().

long meerspace::div_dd ( long &  answer,
double  d1,
double  d2 
)

Definice je uvedena na řádku 367 v souboru mathem.cpp.

long meerspace::div_dd ( int &  answer,
double  d1,
double  d2 
)

Definice je uvedena na řádku 374 v souboru mathem.cpp.

Odkazuje se na div_dd().

void meerspace::errorr ( const char *  file,
int  line,
const char *  format,
  ... 
)


*** *** *** *** ERROR FCE *** *** *** ***


Definice je uvedena na řádku 10 v souboru obecne.cpp.

Odkazuje se na CHANGE_CONSOLE_COLOUR, MAX_MSG_LENGTH, TC_D_RED a TC_DEFAULT.

Používá se v errorr_expected(), openFileN() a SP_scan_expected_word_FL().

void meerspace::errorr_expected ( const char *  file,
int  line,
const char *  msg,
const char *  expctd,
const char *  src 
)


*** *** *** *** STRING PROCESSING *** *** *** ***


src pointer is always shifted over the skipped/scanned/printed word/number/array word is string separated by ' ', '', '
' or '\0'

Definice je uvedena na řádku 433 v souboru retezce.cpp.

Odkazuje se na errorr().

Používá se v FP_scan_expected_line_FL(), FP_scan_expected_word_FL(), SP_scan_expected_number_FL() a SP_scan_expected_word_FL().

void meerspace::errorr_expected ( const char *  file,
int  line,
const char *  msg,
int  expctd,
const char *  src 
)

Definice je uvedena na řádku 434 v souboru retezce.cpp.

Odkazuje se na errorr().

void meerspace::errorr_expected ( const char *  file,
int  line,
const char *  msg,
long  expctd,
const char *  src 
)

Definice je uvedena na řádku 435 v souboru retezce.cpp.

Odkazuje se na errorr().

int meerspace::extract_double ( const char *  s1,
const char *  s2,
double &  a 
)

v retezci s1 se najde key retezec s2 a za nim se precte double

Definice je uvedena na řádku 718 v souboru retezce.cpp.

void meerspace::extract_double_array ( const char *  s1,
const char *  s2,
long  n,
double *  a 
)
int meerspace::extract_long ( const char *  s1,
const char *  s2,
long &  a 
)

Definice je uvedena na řádku 708 v souboru retezce.cpp.

template<class ArgType >
void meerspace::fill_all_by ( ArgType *  p,
long  a,
ArgType  value 
)


*** *** *** *** FILL TEMPLATES *** *** *** ***


Definice je uvedena na řádku 238 v souboru obecne.h.

Používá se v fill_all_by() a fill_row_by().

template<class ArgType >
void meerspace::fill_all_by ( ArgType **  p,
long  a,
long  b,
ArgType  value 
)

Definice je uvedena na řádku 239 v souboru obecne.h.

Odkazuje se na fill_all_by().

template<class ArgType >
void meerspace::fill_all_by ( ArgType ***  p,
long  a,
long  b,
long  c,
ArgType  value 
)

Definice je uvedena na řádku 240 v souboru obecne.h.

Odkazuje se na fill_all_by().

template<class ArgType >
void meerspace::fill_col_by ( ArgType **  p,
long  n,
long  j,
ArgType  value 
)

Definice je uvedena na řádku 244 v souboru obecne.h.

template<class ArgType >
void meerspace::fill_row_by ( ArgType **  p,
long  i,
long  m,
ArgType  value 
)

Definice je uvedena na řádku 243 v souboru obecne.h.

Odkazuje se na fill_all_by().

long meerspace::find_double ( long  n,
long *  p 
)


*** *** *** *** OBSOLETE FUNCTIONS *** *** *** ***


Definice je uvedena na řádku 649 v souboru retezce.cpp.

long meerspace::FP_number_of_lines ( FILE *  stream,
bool  rwd 
)

count number of lines in file

Definice je uvedena na řádku 240 v souboru retezce.cpp.

long meerspace::FP_number_of_words ( FILE *  stream)

count number of words (see isWordChar) in file

Definice je uvedena na řádku 220 v souboru retezce.cpp.

Odkazuje se na isWordChar().

bool meerspace::FP_scan_array ( FILE *  stream,
int  n,
int *  dest 
)

scan/copy array of numbers from src to dest, src pointer is shifted over the field

Definice je uvedena na řádku 214 v souboru retezce.cpp.

bool meerspace::FP_scan_array ( FILE *  stream,
int  n,
long *  dest 
)

Definice je uvedena na řádku 215 v souboru retezce.cpp.

bool meerspace::FP_scan_array ( FILE *  stream,
int  n,
double *  dest 
)

Definice je uvedena na řádku 216 v souboru retezce.cpp.

bool meerspace::FP_scan_expected_line ( FILE *  src,
const char *  expctd,
bool  cs 
)

... line and compare with expected one

Definice je uvedena na řádku 404 v souboru retezce.cpp.

Odkazuje se na FP_skip_expected_string() a FP_skip_space().

Používá se v FP_scan_expected_line_FL().

void meerspace::FP_scan_expected_line_FL ( const char *  file,
int  line,
FILE *  src,
const char *  expctd,
const char *  msg,
bool  cs 
)

... line and compare with expected one, exit if false

Definice je uvedena na řádku 419 v souboru retezce.cpp.

Odkazuje se na errorr_expected() a FP_scan_expected_line().

bool meerspace::FP_scan_expected_word ( FILE *  src,
const char *  expctd,
bool  cs 
)

... word and compare with expected one

Definice je uvedena na řádku 388 v souboru retezce.cpp.

Odkazuje se na FP_skip_expected_string(), FP_skip_nonword() a FP_skip_word().

Používá se v FP_scan_expected_word_FL().

void meerspace::FP_scan_expected_word_FL ( const char *  file,
int  line,
FILE *  src,
const char *  expctd,
const char *  msg,
bool  cs 
)

... word and compare with expected one, exit if false

Definice je uvedena na řádku 398 v souboru retezce.cpp.

Odkazuje se na errorr_expected() a FP_scan_expected_word().

long meerspace::FP_scan_line ( FILE *  stream,
char *  dest 
)

scan/copy line == string without '
' from stream

Definice je uvedena na řádku 321 v souboru retezce.cpp.

Odkazuje se na isLineChar().

Používá se v FP_scan_line_alloc() a FP_scan_line_skip_emptyORcommented().

long meerspace::FP_scan_line_alloc ( FILE *  stream,
char *&  dest 
)

scan/copy line == string without '
' from stream; dest is NULL and allocated here

Definice je uvedena na řádku 340 v souboru retezce.cpp.

Odkazuje se na _errorr a FP_scan_line().

long meerspace::FP_scan_line_skip_emptyORcommented ( FILE *  stream,
char *  dest 
)


*** *** *** SCANNING *** *** ***


scanning == scan ...

scan/copy line == string without '
' from stream, skip lines commented by '#' at the first position

to variable dest and shift src pointer at the end of ... scan/copy line == string without '
' from stream, skip lines commented by '#' at the first position and empty lines

Definice je uvedena na řádku 309 v souboru retezce.cpp.

Odkazuje se na FP_scan_line(), FP_skip_line() a FP_skip_space().

int meerspace::FP_scan_word ( FILE *  src,
char *  dest 
)

... word; return value is length of the word

Definice je uvedena na řádku 356 v souboru retezce.cpp.

Odkazuje se na FP_skip_nonword() a isWordChar().

bool meerspace::FP_skip_behind_line_starting_with ( FILE *  stream,
const char *  string,
bool  cs 
)

move file descriptor to the start of the new line after the one starting with string

Definice je uvedena na řádku 181 v souboru retezce.cpp.

Odkazuje se na FP_skip_expected_string() a FP_skip_line().

bool meerspace::FP_skip_comment ( FILE *  stream)


*** *** *** *** FILE PROCESSING *** *** *** ***


general rules for file processing:

move file descriptor to the start of the new noncommented word(digit) == skip nonword chars and comment

  • EOF (end of file) is reached - char EOF is pushed back, information about reached EOF is returned move file descriptor to the start of the new noncommented word(digit) == skip nonword chars and comment

Definice je uvedena na řádku 130 v souboru retezce.cpp.

Odkazuje se na FP_skip_line() a isWordChar().

bool meerspace::FP_skip_expected_string ( FILE *  src,
const char *  expctd,
bool  cs 
)

... word and compare with expected one

move file descriptor behind expected string

Definice je uvedena na řádku 376 v souboru retezce.cpp.

Používá se v FP_scan_expected_line(), FP_scan_expected_word(), FP_skip_behind_line_starting_with() a FP_skip_to_line_starting_with().

bool meerspace::FP_skip_line ( FILE *  stream,
int  n 
)

move file descriptor to the start of the n-th new line //[former read_line]

Definice je uvedena na řádku 167 v souboru retezce.cpp.

Používá se v FP_scan_line_skip_emptyORcommented(), FP_skip_behind_line_starting_with(), FP_skip_comment(), FP_skip_line_commented(), FP_skip_to_line_starting_with() a read_star_end().

void meerspace::FP_skip_line_commented ( FILE *  stream)

move file descriptor to the start of the new noncommented line, without checking of EOF

Definice je uvedena na řádku 145 v souboru retezce.cpp.

Odkazuje se na FP_skip_line().

void meerspace::FP_skip_line_fast_skip_commented ( FILE *  stream,
int  n 
)

move file descriptor to the start of the n-th new line, without checking of EOF

Definice je uvedena na řádku 155 v souboru retezce.cpp.

bool meerspace::FP_skip_nonword ( FILE *  stream)


*** *** *** SKIPING *** *** ***


skiping == shift stream pointer at the first char which is not ...

... nonword == ' ', '
', '' and '' characters

... nonword

Definice je uvedena na řádku 264 v souboru retezce.cpp.

Odkazuje se na isWordChar().

Používá se v FP_scan_expected_word() a FP_scan_word().

bool meerspace::FP_skip_space ( FILE *  stream)

... space

... space == ' ' and '' characters

Definice je uvedena na řádku 277 v souboru retezce.cpp.

Odkazuje se na isSpaceChar().

Používá se v FP_scan_expected_line() a FP_scan_line_skip_emptyORcommented().

bool meerspace::FP_skip_to_line_starting_with ( FILE *  stream,
const char *  string,
bool  cs 
)

move file descriptor to the line starting with string, exactly behind the string

Definice je uvedena na řádku 190 v souboru retezce.cpp.

Odkazuje se na FP_skip_expected_string() a FP_skip_line().

bool meerspace::FP_skip_to_line_starting_with ( FILE *  stream,
char  C 
)

replacement of old function "read_contiguous_star" move file descriptor to the line starting with character, directly to this char

move file descriptor to the line starting with character, directly to this char

Definice je uvedena na řádku 200 v souboru retezce.cpp.

bool meerspace::FP_skip_word ( FILE *  stream)

... word

Definice je uvedena na řádku 290 v souboru retezce.cpp.

Odkazuje se na isWordChar().

Používá se v FP_scan_expected_word().

double meerspace::give_copy_r2z ( double  a,
double  zero 
)
double* meerspace::give_copy_r2z ( double *  a,
long  n,
double  zero 
)

Definice je uvedena na řádku 17 v souboru arrays.cpp.

Odkazuje se na give_copy_r2z().

void meerspace::give_line ( FILE *  stream,
char *&  s 
)
long meerspace::giveLineLength ( const char *  src)

return length of line == sting compount of "line chars"

Definice je uvedena na řádku 43 v souboru retezce.cpp.

Odkazuje se na isLineChar().

Používá se v SP_scan_line_alloc().

template<class ArgType >
void meerspace::interchange2 ( ArgType &  a,
ArgType &  b 
)

Definice je uvedena na řádku 400 v souboru obecne.h.

template<class ArgType >
long meerspace::is_member_of_array ( ArgType  val,
long  n,
const ArgType *  array 
)

check out "val" is member of "array"

Definice je uvedena na řádku 311 v souboru obecne.h.

Používá se v add_array_unique(), meerspace::GPA< T >::is_member() a meerspace::Lvctr::is_member().

bool meerspace::isDigitChar ( char  C)

Definice je uvedena na řádku 37 v souboru retezce.cpp.

Používá se v SP_skip_int().

bool meerspace::isLineChar ( char  C)

return true if character C is "normal" char or "space" char –> C != '
' '\0' ''

Definice je uvedena na řádku 26 v souboru retezce.cpp.

Používá se v FP_scan_line(), giveLineLength() a SP_scan_line().

bool meerspace::isNonZero ( double  x,
double  tolerance 
)

Definice je uvedena na řádku 401 v souboru mathem.cpp.

bool meerspace::isSpaceChar ( char  C)

return true if character C is "space" char –> C == ' ' ''

Definice je uvedena na řádku 32 v souboru retezce.cpp.

Používá se v FP_skip_space() a SP_print_space().

bool meerspace::isWordChar ( char  C)


*** *** *** *** GENERAL FUNCTIONS *** *** *** ***


return true if character C is "normal" char –> C != ' ' '' '
' '\0' ''

non-word chars == ' ' '' '
' '\0' '' word chars == !non-word chars

return true if character C is "normal" char –> C != ' ' '' '
' '\0' ''

Definice je uvedena na řádku 20 v souboru retezce.cpp.

Používá se v FP_number_of_words(), FP_scan_word(), FP_skip_comment(), FP_skip_nonword(), FP_skip_word(), SP_print_word(), SP_scan_word() a SP_skip_word().

bool meerspace::isZero ( double  zero,
double  a 
)

Definice je uvedena na řádku 308 v souboru mathem.cpp.

Používá se v meerspace::Elem3D::is_identical_to() a isZero().

bool meerspace::isZero ( double  abszero,
double  relzero,
double  a 
)

Definice je uvedena na řádku 314 v souboru mathem.cpp.

Odkazuje se na isZero().

template<class ArgType >
bool meerspace::members_are_unique ( long  n,
const ArgType *  array 
)

check out all members of array "a" are uniq

Definice je uvedena na řádku 319 v souboru obecne.h.

Používá se v meerspace::GPA< T >::is_unique().

void meerspace::nilling ( double  zero,
double &  a 
)

Definice je uvedena na řádku 297 v souboru mathem.cpp.

double meerspace::nillret ( double  zero,
double  a 
)

Definice je uvedena na řádku 302 v souboru mathem.cpp.

Používá se v solv_1le(), solv_2le(), solv_2nle() a solv_polynom_2().

FILE * meerspace::openFileN ( const char *  File,
int  Line,
const char *  mode,
const char *  key,
const char *  name 
)

Definice je uvedena na řádku 67 v souboru obecne.cpp.

Odkazuje se na errorr().

Používá se v openFilePN(), openFilePNS() a openFilePNSS().

FILE * meerspace::openFilePN ( const char *  File,
int  Line,
const char *  mode,
const char *  key,
const char *  path,
const char *  name 
)

Definice je uvedena na řádku 77 v souboru obecne.cpp.

Odkazuje se na openFileN().

FILE * meerspace::openFilePNS ( const char *  File,
int  Line,
const char *  mode,
const char *  key,
const char *  path,
const char *  name,
const char *  suff 
)

Definice je uvedena na řádku 86 v souboru obecne.cpp.

Odkazuje se na openFileN().

FILE * meerspace::openFilePNSS ( const char *  File,
int  Line,
const char *  mode,
const char *  key,
const char *  path,
const char *  name,
const char *  suff,
const char *  suff2 
)

Definice je uvedena na řádku 95 v souboru obecne.cpp.

Odkazuje se na openFileN().

void meerspace::openFileTest ( const FILE *  stream,
const char *  name 
)


*** *** *** *** FILE FCE *** *** *** ***


Definice je uvedena na řádku 61 v souboru obecne.cpp.

Odkazuje se na _errorr2.

char * meerspace::pathstrdupl ( const char *  src)

Definice je uvedena na řádku 73 v souboru retezce.cpp.

Odkazuje se na DIRSEPARATOR.

void meerspace::pprint_symtensor ( char *  stream,
int  precision,
const long *  a 
)

Definice je uvedena na řádku 199 v souboru arrays.cpp.

Používá se v meerspace::Lvctr::print_symtensor() a meerspace::Dvctr::print_symtensor().

void meerspace::pprint_symtensor ( FILE *  stream,
int  precision,
const long *  a 
)

Definice je uvedena na řádku 211 v souboru arrays.cpp.

void meerspace::pprint_symtensor ( char *  stream,
int  precision,
const double *  a 
)

Definice je uvedena na řádku 570 v souboru arrays.cpp.

void meerspace::pprint_symtensor ( FILE *  stream,
int  precision,
const double *  a 
)

Definice je uvedena na řádku 576 v souboru arrays.cpp.

void meerspace::pprint_symtensor_zeroL ( char *  stream,
int  precision 
)

Definice je uvedena na řádku 205 v souboru arrays.cpp.

Používá se v meerspace::Lvctr::print_symtensor().

void meerspace::pprint_symtensor_zeroL ( FILE *  stream,
int  precision 
)

Definice je uvedena na řádku 217 v souboru arrays.cpp.

void meerspace::pprint_tensor ( FILE *  stream,
int  precision,
const double *  a 
)

Definice je uvedena na řádku 564 v souboru arrays.cpp.

Používá se v meerspace::Dmtrx::print_tensor().

void meerspace::pprint_tensor_zero ( char *  stream,
int  precision 
)

Definice je uvedena na řádku 583 v souboru arrays.cpp.

Používá se v meerspace::Dvctr::print_symtensor() a meerspace::Dmtrx::print_tensor().

void meerspace::pprint_tensor_zero ( FILE *  stream,
int  precision 
)

Definice je uvedena na řádku 589 v souboru arrays.cpp.

void meerspace::read_star ( FILE *  stream)

Definice je uvedena na řádku 672 v souboru retezce.cpp.

Používá se v read_star_end().

void meerspace::read_star_end ( FILE *  stream,
int  n 
)

Definice je uvedena na řádku 668 v souboru retezce.cpp.

Odkazuje se na FP_skip_line() a read_star().

template<class ArgType >
bool meerspace::same_array_elements_asym ( long  nx,
const ArgType *  x,
long  ny,
const ArgType *  y,
bool  same_dim = false 
)

Function finds out whether every element of the array 'x' is in the array 'y'.

nx,ny - dimensions of arrays x, y

Definice je uvedena na řádku 333 v souboru obecne.h.

Používá se v meerspace::GPA< T >::has_same_members_as() a same_array_elements_sym().

template<class ArgType >
bool meerspace::same_array_elements_sym ( long  nx,
const ArgType *  x,
long  ny,
const ArgType *  y,
bool  same_dim = false 
)

Function finds out whether every element of the array 'x' is in the array 'y', and symmetrically every element of the array 'y' is in the array 'x'.

!!! This in not perfect identical, because x(1,2,2) == y(1,1,2) !!! nx,ny - dimensions of arrays x, y

Definice je uvedena na řádku 353 v souboru obecne.h.

Odkazuje se na same_array_elements_asym().

template<class ArgType >
void meerspace::setadd_another_uno_ptr ( long &  n,
ArgType **&  field,
ArgType *  p 
)

Definice je uvedena na řádku 272 v souboru obecne.h.

Odkazuje se na allocate_another_uno_ptr().

template<class ArgType >
void meerspace::shake_down_ptr_array ( long &  n,
ArgType *  array 
)


*** *** *** *** VARIOUS TEMPLATES *** *** *** ***


Definice je uvedena na řádku 283 v souboru obecne.h.

void meerspace::shaker ( long &  n,
long *  a 
)

zlikviduje vicenasobne cifry pro long in <0;..>

Definice je uvedena na řádku 19 v souboru mathem.cpp.

long meerspace::solv_1le ( double  zero,
double  a,
double  b,
double &  x 
)

function solves linear equation: a*x + b = 0 answer: -1 = infinite number of results 0,1 = number of results

Parametry
zero- accuracy of solving
a,b- coeficients of equation
x- result

created 4.4.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 284 v souboru mathem.cpp.

Odkazuje se na nillret().

Používá se v solv_2nle().

long meerspace::solv_2le ( double  zero,
const double *  a,
const double *  b,
const double *  c,
double &  x,
double &  y 
)

function solves system of two linear equations: a[0]*x + b[0]*y + c[0] = 0 a[1]*x + b[1]*y + c[1] = 0 answer: -1 = infinite number of results 0,1 = number of results

Parametry
zero- accuracy of solving
a,b,c- arrays of coeficients of equations, dimension is 2
x,y- results

created 4.4.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 236 v souboru mathem.cpp.

Odkazuje se na nillret().

Používá se v solv_2nle().

long meerspace::solv_2nle ( double  zero,
const double *  a,
const double *  b,
const double *  c,
const double *  d,
double *  x,
double *  y 
)

function solves system of two non-linear equations: a[0]*x*y + b[0]*x + c[0]*y + d[0] = 0 a[1]*x*y + b[1]*x + c[1]*y + d[1] = 0 answer: -1 = infinite number of results 0,1,2 = number of results

Parametry
zero- accuracy of solving
a,b,c,d- arrays of coeficients of equations, dimension is 2
x,y- arrays results, dimension is 2

created 4.4.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

toto je prej chyba, ale nevim proc, ale muzu to prozkoumat casem, zatim vracim -2 a vejs to pak overim, stejne se tahle fce pouziva jen v jedne fci

Definice je uvedena na řádku 169 v souboru mathem.cpp.

Odkazuje se na nillret(), solv_1le(), solv_2le() a solv_polynom_2().

long meerspace::solv_polynom_2 ( double  zero,
double  a,
double  b,
double  c,
double &  r1,
double &  r2 
)

function searchs roots of polynom of 2nd order = quadratic equation a*x^2 + b*x + c = 0 answer: -1 = infinite number of results 0,1,2 = no,one,two results

Parametry
zero- accuracy of solving
a,b,c- coeficients of quadratic equation
r1,r2- roots of quadratic equation

created 11.1.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 331 v souboru mathem.cpp.

Odkazuje se na nillret().

Používá se v solv_2nle().

void meerspace::solve_3 ( const double *  m,
const double *  r,
double *  l 
)

Function solves the system of linear equations.

Parametry
m- matrix of system contained in array
r- right hand side of system
l- left hand side of system - answer

created 28.3.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 103 v souboru mathem.cpp.

void meerspace::solve_3 ( const double **  m,
const double *  r,
double *  l 
)

Function solves the system of linear equations.

Parametry
m- matrix of system
r- right hand side of system
l- left hand side of system - answer

created 28.3.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 134 v souboru mathem.cpp.

void meerspace::sort_2 ( long *  x)

Function sorts first two members of array with ascending order.

Parametry
x- sorted array

created 27.3.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 86 v souboru mathem.cpp.

void meerspace::sort_3 ( long *  x)

Function sorts first three members of array with ascending order.

Parametry
x- sorted array

created 27.3.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 67 v souboru mathem.cpp.

Používá se v sort_4().

void meerspace::sort_4 ( long *  x)

Function sorts first four members of array with ascending order.

Parametry
x- sorted array

created 27.3.2003, Ladislav Svoboda, termi.nosp@m.t@cm.nosp@m.l.fsv.nosp@m..cvu.nosp@m.t.cz

Definice je uvedena na řádku 44 v souboru mathem.cpp.

Odkazuje se na sort_3().

bool meerspace::SP_cutcomment ( char *  src)

cut of comment == end of line starting by '#'

Definice je uvedena na řádku 438 v souboru retezce.cpp.

bool meerspace::SP_print_space ( const char *&  src,
FILE *  stream 
)


*** *** *** PRINTING *** *** ***


printing == print ...

printing == print ... to stream and shift src pointer at the end of ...

to stream and shift src pointer at the end of ... ... space == ' ' and '' characters

... space == ' ' and '' characters

Definice je uvedena na řádku 625 v souboru retezce.cpp.

Odkazuje se na isSpaceChar().

bool meerspace::SP_print_word ( const char *&  src,
FILE *  stream 
)

... word

Definice je uvedena na řádku 635 v souboru retezce.cpp.

Odkazuje se na isWordChar() a SP_skip_space().

template<class ArgType >
bool meerspace::SP_scan_array ( const char *&  src,
int  n,
ArgType *  a 
)

... array of numbers

Definice je uvedena na řádku 233 v souboru retezce.h.

Odkazuje se na SP_scan_number().

Používá se v meerspace::Lvctr::scan(), meerspace::Dvctr::scan(), SP_scan_array_alloc(), SP_scan_array_L(), SP_scan_Dvctr_exit() a SP_scan_Xvctr().

template<class ArgType >
bool meerspace::SP_scan_array ( const char *&  src,
long  n,
ArgType *  a 
)

Definice je uvedena na řádku 234 v souboru retezce.h.

Odkazuje se na SP_scan_number().

template<class ArgType >
bool meerspace::SP_scan_array_alloc ( const char *&  src,
long &  n,
ArgType *&  a 
)

Definice je uvedena na řádku 237 v souboru retezce.h.

Odkazuje se na SP_scan_array() a SP_scan_number().

bool meerspace::SP_scan_array_L ( const char *&  src,
int  L,
double *  a 
)

Definice je uvedena na řádku 601 v souboru retezce.cpp.

Odkazuje se na _warningg2, SP_scan_array() a SP_scan_expected_number().

bool meerspace::SP_scan_character ( const char *&  src,
char &  dest 
)

scanning == scan ... to variable dest and shift src pointer at the end of ...

... one char

Definice je uvedena na řádku 517 v souboru retezce.cpp.

Odkazuje se na SP_skip_space().

bool meerspace::SP_scan_Dvctr_exit ( const char *&  src,
int  n,
Dvctr *  v 
)
template<class ArgType >
bool meerspace::SP_scan_expected_number ( const char *&  src,
ArgType  expctd 
)

... number and compare with expected one

Definice je uvedena na řádku 214 v souboru retezce.h.

Odkazuje se na SP_scan_number().

Používá se v SP_scan_array_L(), SP_scan_Dvctr_exit() a SP_scan_expected_number_FL().

template<class ArgType >
void meerspace::SP_scan_expected_number_FL ( const char *  file,
int  line,
const char *&  src,
ArgType  expctd,
const char *  msg 
)

... number and compare with expected one, exit if false

Definice je uvedena na řádku 224 v souboru retezce.h.

Odkazuje se na errorr_expected() a SP_scan_expected_number().

bool meerspace::SP_scan_expected_word ( const char *&  src,
const char *  expctd,
bool  cs 
)

... word and compare with expected one

Definice je uvedena na řádku 580 v souboru retezce.cpp.

Odkazuje se na SP_skip_space().

Používá se v SP_scan_expected_word_FL().

void meerspace::SP_scan_expected_word_FL ( const char *  file,
int  line,
const char *&  src,
const char *  expctd,
const char *  msg,
bool  cs 
)

... word and compare with expected one/two/three, exit if false

Definice je uvedena na řádku 590 v souboru retezce.cpp.

Odkazuje se na errorr_expected() a SP_scan_expected_word().

void meerspace::SP_scan_expected_word_FL ( const char *  file,
int  line,
const char *&  src,
const char *  expctd1,
const char *  expctd2,
const char *  msg,
bool  cs 
)

Definice je uvedena na řádku 591 v souboru retezce.cpp.

Odkazuje se na errorr() a SP_scan_expected_word().

void meerspace::SP_scan_expected_word_FL ( const char *  file,
int  line,
const char *&  src,
const char *  expctd1,
const char *  expctd2,
const char *  expctd3,
const char *  msg,
bool  cs 
)

Definice je uvedena na řádku 592 v souboru retezce.cpp.

Odkazuje se na errorr() a SP_scan_expected_word().

long meerspace::SP_scan_line ( const char *&  src,
char *  dest 
)

... line; return value is length of the line

Definice je uvedena na řádku 544 v souboru retezce.cpp.

Odkazuje se na CHECK_DEST a isLineChar().

long meerspace::SP_scan_line_alloc ( const char *&  src,
char *&  dest 
)

... line; return value is length of the line; dest is NULL and allocated here

Definice je uvedena na řádku 559 v souboru retezce.cpp.

Odkazuje se na _errorr, giveLineLength() a SP_skip_space().

bool meerspace::SP_scan_number ( const char *&  src,
int &  dest 
)

... number of type int/long/double

Definice je uvedena na řádku 595 v souboru retezce.cpp.

Odkazuje se na SP_skip_int().

Používá se v SP_scan_array(), SP_scan_array_alloc(), SP_scan_expected_number() a SP_scan_Xvctr().

bool meerspace::SP_scan_number ( const char *&  src,
long &  dest 
)

Definice je uvedena na řádku 596 v souboru retezce.cpp.

Odkazuje se na SP_skip_int().

bool meerspace::SP_scan_number ( const char *&  src,
double &  dest 
)

Definice je uvedena na řádku 597 v souboru retezce.cpp.

Odkazuje se na SP_skip_word().

long meerspace::SP_scan_word ( const char *&  src,
char *  dest 
)

... word; return value is length of the word

Definice je uvedena na řádku 528 v souboru retezce.cpp.

Odkazuje se na isWordChar() a SP_skip_space().

template<class ArgType >
bool meerspace::SP_scan_Xvctr ( const char *&  src,
ArgType *  dest 
)

bool SP_scan_Dvctr (const char *&src, Dvctr *dest);

Definice je uvedena na řádku 252 v souboru retezce.h.

Odkazuje se na SP_scan_array() a SP_scan_number().

bool meerspace::SP_skip_int ( const char *&  src)

... word compound of digits and space before

Definice je uvedena na řádku 486 v souboru retezce.cpp.

Odkazuje se na isDigitChar() a SP_skip_space().

Používá se v SP_scan_number().

bool meerspace::SP_skip_space ( const char *&  src)

... space == ' ' and '' characters

skiping == shift src pointer at the end of ...

... space == ' ' and '' characters

Definice je uvedena na řádku 465 v souboru retezce.cpp.

Používá se v SP_print_word(), SP_scan_character(), SP_scan_expected_word(), SP_scan_line_alloc(), SP_scan_word(), SP_skip_int() a SP_skip_word().

bool meerspace::SP_skip_word ( const char *&  src,
int  n 
)

... word and space before

Definice je uvedena na řádku 472 v souboru retezce.cpp.

Odkazuje se na isWordChar() a SP_skip_space().

Používá se v meerspace::Elem3D::scan_xyz() a SP_scan_number().

void meerspace::SP_unscan_word ( const char *&  src,
const char *  w 
)


*** *** *** SCANNING *** *** ***


unscan word == shift pointer back over word

unscan word == shift pointer back over word

Definice je uvedena na řádku 504 v souboru retezce.cpp.

Odkazuje se na _errorr a SP_unskip_space().

bool meerspace::SP_unskip_space ( const char *&  src)


*** *** *** SKIPING *** *** ***


(un)skiping == shift src pointer at the end(start) of ...

... space == ' ' and '' characters

Definice je uvedena na řádku 458 v souboru retezce.cpp.

Používá se v SP_unscan_word().

void meerspace::sprint_param ( char *  s,
char *  argv[],
int  n 
)

Definice je uvedena na řádku 661 v souboru retezce.cpp.

char * meerspace::strdupl ( const char *  src)

standard strdup - Memory for the new string is obtained with malloc(3), and can be freed with free(3).

my strdupl - new delete

Definice je uvedena na řádku 53 v souboru retezce.cpp.

char * meerspace::strdupl ( const char *  src1,
const char *  src2 
)

Definice je uvedena na řádku 60 v souboru retezce.cpp.

char * meerspace::strdupl ( const char *  src1,
const char *  src2,
const char *  src3 
)

Definice je uvedena na řádku 66 v souboru retezce.cpp.

const char* meerspace::trmt_clr_int2clr ( ETCLR  clr)
inline
void meerspace::warningg ( const char *  file,
int  line,
const char *  format,
  ... 
)

Definice je uvedena na řádku 26 v souboru obecne.cpp.

Odkazuje se na CHANGE_CONSOLE_COLOUR, MAX_MSG_LENGTH, TC_D_VIOLET a TC_DEFAULT.