Definition at line 9 of file exp.h.
Definition at line 106 of file exp.cpp.
References TVec< TVal, TSizeTy >::Add(), TLst< TVal >::AddBack(), TLst< TVal >::First(), Flt, TVec< TVal, TSizeTy >::Gen(), TLstNd< TVal >::GetVal(), TVec< TVal, TSizeTy >::Len(), New(), TLstNd< TVal >::Next(), Str, ValL, ValType, and ValV.
109 CloneExpVal->
Flt=ExpVal->
Flt;
110 CloneExpVal->
Str=ExpVal->
Str;
112 for (
int VecValN=0; VecValN<ExpVal->
ValV.
Len(); VecValN++){
116 while (ExpValLN!=NULL){
118 ExpValLN=ExpValLN->
Next();
TSizeTy Len() const
Returns the number of elements in the vector.
static PExpVal New(const TExpValType &ValType=evtUndef)
PLstNd AddBack(const TVal &Val)
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
static PExpVal MkClone(const PExpVal &ExpVal)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
bool TExpVal::operator< |
( |
const TExpVal & |
ExpVal | ) |
const |
Definition at line 31 of file exp.cpp.
References evtFlt, evtLst, evtStr, evtUndef, evtVec, Fail, TLst< TVal >::First(), Flt, TLstNd< TVal >::GetVal(), TVec< TVal, TSizeTy >::Len(), TLst< TVal >::Len(), TLstNd< TVal >::Next(), Str, ValL, ValType, and ValV.
41 if (*
ValV[VecValN]<*ExpVal.
ValV[VecValN]){
return true;}
42 else if (*
ValV[VecValN]==*ExpVal.
ValV[VecValN]){VecValN++;}
50 while ((ValLN!=NULL)&&(ExpValLN!=NULL)){
54 ValLN=ValLN->
Next(); ExpValLN=ExpValLN->
Next();}
58 default:
Fail;
return false;
TSizeTy Len() const
Returns the number of elements in the vector.
bool TExpVal::operator== |
( |
const TExpVal & |
ExpVal | ) |
const |
Definition at line 6 of file exp.cpp.
References evtFlt, evtLst, evtStr, evtUndef, evtVec, Fail, TLst< TVal >::First(), Flt, TLstNd< TVal >::GetVal(), TVec< TVal, TSizeTy >::Len(), TLst< TVal >::Len(), TLstNd< TVal >::Next(), Str, ValL, ValType, and ValV.
14 for (
int VecValN=0; VecValN<ExpVal.
ValV.
Len(); VecValN++){
15 if (*
ValV[VecValN]!=*ExpVal.
ValV[VecValN]){
return false;}}
22 if (*ValLN->
GetVal()!=*ExpValLN->
GetVal()){
return false;}
24 ExpValLN=ExpValLN->
Next();
27 default:
Fail;
return false;
TSizeTy Len() const
Returns the number of elements in the vector.
void TExpVal::SaveTxt |
( |
TOLx & |
Lx | ) |
const |
Definition at line 71 of file exp.cpp.
References evtFlt, evtLst, evtStr, evtUndef, evtVec, Fail, TLst< TVal >::First(), Flt, TLstNd< TVal >::GetVal(), TVec< TVal, TSizeTy >::Len(), TLst< TVal >::Len(), TLstNd< TVal >::Next(), TOLx::PutFlt(), TOLx::PutIdStr(), TOLx::PutQStr(), TOLx::PutSym(), SaveTxt(), Str, syLBrace, syLBracket, syRBrace, syRBracket, ValL, ValType, and ValV.
Referenced by GetStr(), SaveTxt(), and TExp::SaveTxt().
79 for (
int ValN=0; ValN<
ValV.
Len(); ValN++){
80 ValV[ValN]->SaveTxt(Lx);}
86 for (
int ValN=0; ValN<
ValL.
Len(); ValN++){
void SaveTxt(TOLx &Lx) const
TSizeTy Len() const
Returns the number of elements in the vector.
void PutSym(const TLxSym &Sym)
void PutQStr(const TStr &Str)
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)