SNAP Library 2.2, User Reference
2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>
Inherited by TAscFlt.
Public Member Functions | |
TFlt () | |
TFlt (const double &_Val) | |
operator double () const | |
TFlt (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TFlt (TSIn &SIn, const bool &IsTxt) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut, const bool &IsTxt) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TFlt & | operator= (const TFlt &Flt) |
TFlt & | operator= (const double &Flt) |
bool | operator== (const TFlt &Flt) const _CMPWARN |
bool | operator== (const double &Flt) const _CMPWARN |
bool | operator!= (const double &Flt) const _CMPWARN |
double | operator() () const |
TFlt & | operator+= (const double &Flt) |
TFlt & | operator-= (const double &Flt) |
TFlt & | operator*= (const double &Flt) |
TFlt & | operator/= (const double &Flt) |
TFlt | operator++ (int) |
TFlt | operator-- (int) |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
bool | IsNum () const |
bool | IsNan () const |
TStr | GetStr () const |
Static Public Member Functions | |
static double | Abs (const double &Flt) |
static int | Sign (const double &Flt) |
static int | Round (const double &Flt) |
static double | GetRnd () |
static bool | Eq6 (const double &LFlt, const double &RFlt) |
static double | GetMn (const double &Flt1, const double &Flt2) |
static double | GetMn (const double &Flt1, const double &Flt2, const double &Flt3) |
static double | GetMn (const double &Flt1, const double &Flt2, const double &Flt3, const double &Flt4) |
static double | GetMx (const double &Flt1, const double &Flt2) |
static double | GetMx (const double &Flt1, const double &Flt2, const double Flt3) |
static double | GetMx (const double &Flt1, const double &Flt2, const double Flt3, const double &Flt4) |
static double | GetInRng (const double &Val, const double &Mn, const double &Mx) |
static bool | IsNum (const double &Val) |
static bool | IsNan (const double &Val) |
static TStr | GetStr (const double &Val, const int &Width=-1, const int &Prec=-1) |
static TStr | GetStr (const TFlt &Flt, const int &Width=-1, const int &Prec=-1) |
static TStr | GetStr (const double &Val, const char *FmtStr) |
static TStr | GetStr (const double &Val, const TStr &FmtStr) |
static TStr | GetPrcStr (const double &RelVal, const double &FullVal) |
static TStr | GetKiloStr (const double &Val) |
static TStr | GetMegaStr (const double &Val) |
static TStr | GetGigaStr (const double &Val) |
Public Attributes | |
double | Val |
Static Public Attributes | |
static const double | Mn = -DBL_MAX |
static const double | Mx = +DBL_MAX |
static const double | NInf = -DBL_MAX |
static const double | PInf = +DBL_MAX |
static const double | Eps = 1e-16 |
static const double | EpsHalf = 1e-7 |
static TRnd | Rnd |
TFlt::TFlt | ( | ) | [inline] |
TFlt::TFlt | ( | const double & | _Val | ) | [inline] |
TFlt::TFlt | ( | TSIn & | SIn, |
const bool & | IsTxt | ||
) | [inline, explicit] |
static double TFlt::Abs | ( | const double & | Flt | ) | [inline, static] |
static bool TFlt::Eq6 | ( | const double & | LFlt, |
const double & | RFlt | ||
) | [inline, static] |
static TStr TFlt::GetGigaStr | ( | const double & | Val | ) | [inline, static] |
static double TFlt::GetInRng | ( | const double & | Val, |
const double & | Mn, | ||
const double & | Mx | ||
) | [inline, static] |
static TStr TFlt::GetKiloStr | ( | const double & | Val | ) | [inline, static] |
static TStr TFlt::GetMegaStr | ( | const double & | Val | ) | [inline, static] |
int TFlt::GetMemUsed | ( | ) | const [inline] |
static double TFlt::GetMn | ( | const double & | Flt1, |
const double & | Flt2 | ||
) | [inline, static] |
static double TFlt::GetMn | ( | const double & | Flt1, |
const double & | Flt2, | ||
const double & | Flt3 | ||
) | [inline, static] |
static double TFlt::GetMn | ( | const double & | Flt1, |
const double & | Flt2, | ||
const double & | Flt3, | ||
const double & | Flt4 | ||
) | [inline, static] |
static double TFlt::GetMx | ( | const double & | Flt1, |
const double & | Flt2 | ||
) | [inline, static] |
static double TFlt::GetMx | ( | const double & | Flt1, |
const double & | Flt2, | ||
const double | Flt3 | ||
) | [inline, static] |
static double TFlt::GetMx | ( | const double & | Flt1, |
const double & | Flt2, | ||
const double | Flt3, | ||
const double & | Flt4 | ||
) | [inline, static] |
static TStr TFlt::GetPrcStr | ( | const double & | RelVal, |
const double & | FullVal | ||
) | [inline, static] |
int TFlt::GetPrimHashCd | ( | ) | const [inline] |
static double TFlt::GetRnd | ( | ) | [inline, static] |
int TFlt::GetSecHashCd | ( | ) | const [inline] |
TStr TFlt::GetStr | ( | ) | const [inline] |
Definition at line 1365 of file dt.h.
{return TFlt::GetStr(Val);}
TStr TFlt::GetStr | ( | const double & | Val, |
const int & | Width = -1 , |
||
const int & | Prec = -1 |
||
) | [static] |
static TStr TFlt::GetStr | ( | const TFlt & | Flt, |
const int & | Width = -1 , |
||
const int & | Prec = -1 |
||
) | [inline, static] |
TStr TFlt::GetStr | ( | const double & | Val, |
const char * | FmtStr | ||
) | [static] |
static TStr TFlt::GetStr | ( | const double & | Val, |
const TStr & | FmtStr | ||
) | [inline, static] |
static bool TFlt::IsNan | ( | const double & | Val | ) | [inline, static] |
bool TFlt::IsNan | ( | ) | const [inline] |
static bool TFlt::IsNum | ( | const double & | Val | ) | [inline, static] |
bool TFlt::IsNum | ( | ) | const [inline] |
void TFlt::LoadXml | ( | const PXmlTok & | XmlTok, |
const TStr & | Nm | ||
) |
Definition at line 2227 of file dt.cpp.
{ XLoadHd(Nm); Val=TXmlObjSer::GetFltArg(XmlTok, "Val"); }
bool TFlt::operator!= | ( | const double & | Flt | ) | const [inline] |
TFlt& TFlt::operator*= | ( | const double & | Flt | ) | [inline] |
TFlt& TFlt::operator+= | ( | const double & | Flt | ) | [inline] |
TFlt& TFlt::operator-= | ( | const double & | Flt | ) | [inline] |
TFlt& TFlt::operator/= | ( | const double & | Flt | ) | [inline] |
TFlt& TFlt::operator= | ( | const double & | Flt | ) | [inline] |
bool TFlt::operator== | ( | const TFlt & | Flt | ) | const [inline] |
bool TFlt::operator== | ( | const double & | Flt | ) | const [inline] |
static int TFlt::Round | ( | const double & | Flt | ) | [inline, static] |
void TFlt::Save | ( | TSOut & | SOut | ) | const [inline] |
void TFlt::Save | ( | TSOut & | SOut, |
const bool & | IsTxt | ||
) | const [inline] |
void TFlt::SaveXml | ( | TSOut & | SOut, |
const TStr & | Nm | ||
) | const |
Definition at line 2232 of file dt.cpp.
{ XSaveBETagArg(Nm, "Val", TFlt::GetStr(Val)); }
static int TFlt::Sign | ( | const double & | Flt | ) | [inline, static] |
const double TFlt::EpsHalf = 1e-7 [static] |
const double TFlt::NInf = -DBL_MAX [static] |
const double TFlt::PInf = +DBL_MAX [static] |