SNAP Library 4.1, Developer Reference  2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TSFlt Class Reference

#include <dt.h>

Public Member Functions

 TSFlt ()
 
 TSFlt (const sdouble &_Val)
 
 operator sdouble () const
 
 TSFlt (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm)
 
void SaveXml (TSOut &SOut, const TStr &Nm) const
 
TSFltoperator= (const TSFlt &SFlt)
 
bool operator== (const TSFlt &SFlt) const _CMPWARN
 
bool operator== (const double &Flt) const _CMPWARN
 
bool operator!= (const double &Flt) const _CMPWARN
 
bool operator< (const TSFlt &SFlt) const
 
sdouble operator() () const
 
TSFltoperator+= (const double &SFlt)
 
TSFltoperator-= (const double &SFlt)
 
TSFltoperator*= (const double &SFlt)
 
TSFltoperator/= (const double &SFlt)
 
TSFlt operator++ (int)
 
TSFlt operator-- (int)
 
int GetMemUsed () const
 
int GetPrimHashCd () const
 
int GetSecHashCd () const
 

Public Attributes

sdouble Val
 

Static Public Attributes

static const sdouble Mn =-FLT_MIN
 
static const sdouble Mx =+FLT_MAX
 

Detailed Description

Definition at line 1495 of file dt.h.

Constructor & Destructor Documentation

TSFlt::TSFlt ( )
inline

Definition at line 1502 of file dt.h.

Referenced by GetMemUsed().

1502 : Val(0){}
sdouble Val
Definition: dt.h:1497

Here is the caller graph for this function:

TSFlt::TSFlt ( const sdouble _Val)
inline

Definition at line 1503 of file dt.h.

1503 : Val(sdouble(_Val)){}
sdouble Val
Definition: dt.h:1497
float sdouble
Definition: bd.h:15
TSFlt::TSFlt ( TSIn SIn)
inlineexplicit

Definition at line 1507 of file dt.h.

References TSIn::Load(), and Val.

1507 {SIn.Load(Val);}
sdouble Val
Definition: dt.h:1497
void Load(bool &Bool)
Definition: fl.h:84

Here is the call graph for this function:

Member Function Documentation

int TSFlt::GetMemUsed ( ) const
inline

Definition at line 1524 of file dt.h.

References TSFlt().

1524 {return sizeof(TSFlt);}
TSFlt()
Definition: dt.h:1502

Here is the call graph for this function:

int TSFlt::GetPrimHashCd ( ) const
inline

Definition at line 1526 of file dt.h.

References TInt::Mx, and Val.

1526  {
1527  int Expn; return int((frexp(Val, &Expn)-0.5)*double(TInt::Mx));}
sdouble Val
Definition: dt.h:1497
static const int Mx
Definition: dt.h:1139
int TSFlt::GetSecHashCd ( ) const
inline

Definition at line 1528 of file dt.h.

References Val.

1528  {
1529  int Expn; frexp(Val, &Expn); return Expn;}
sdouble Val
Definition: dt.h:1497
void TSFlt::LoadXml ( const PXmlTok XmlTok,
const TStr Nm 
)

Definition at line 2258 of file dt.cpp.

References TXmlObjSer::GetFltArg(), Val, and XLoadHd.

2258  {
2259  XLoadHd(Nm);
2260  Val=sdouble(TXmlObjSer::GetFltArg(XmlTok, "Val"));
2261 }
#define XLoadHd(Nm)
Definition: bd.h:312
sdouble Val
Definition: dt.h:1497
static double GetFltArg(const PXmlTok &XmlTok, const TStr &Nm)
Definition: xml.cpp:104
float sdouble
Definition: bd.h:15

Here is the call graph for this function:

TSFlt::operator sdouble ( ) const
inline

Definition at line 1505 of file dt.h.

References Val.

1505 {return Val;}
sdouble Val
Definition: dt.h:1497
bool TSFlt::operator!= ( const double &  Flt) const
inline

Definition at line 1515 of file dt.h.

References Val.

1515 {return Val!=Flt;}
sdouble Val
Definition: dt.h:1497
sdouble TSFlt::operator() ( ) const
inline

Definition at line 1517 of file dt.h.

References Val.

1517 {return Val;}
sdouble Val
Definition: dt.h:1497
TSFlt& TSFlt::operator*= ( const double &  SFlt)
inline

Definition at line 1520 of file dt.h.

References Val.

1520 {Val*=sdouble(SFlt); return *this;}
sdouble Val
Definition: dt.h:1497
float sdouble
Definition: bd.h:15
TSFlt TSFlt::operator++ ( int  )
inline

Definition at line 1522 of file dt.h.

References Val.

1522 {Val++; return *this;}
sdouble Val
Definition: dt.h:1497
TSFlt& TSFlt::operator+= ( const double &  SFlt)
inline

Definition at line 1518 of file dt.h.

References Val.

1518 {Val+=sdouble(SFlt); return *this;}
sdouble Val
Definition: dt.h:1497
float sdouble
Definition: bd.h:15
TSFlt TSFlt::operator-- ( int  )
inline

Definition at line 1523 of file dt.h.

References Val.

1523 {Val--; return *this;}
sdouble Val
Definition: dt.h:1497
TSFlt& TSFlt::operator-= ( const double &  SFlt)
inline

Definition at line 1519 of file dt.h.

References Val.

1519 {Val-=sdouble(SFlt); return *this;}
sdouble Val
Definition: dt.h:1497
float sdouble
Definition: bd.h:15
TSFlt& TSFlt::operator/= ( const double &  SFlt)
inline

Definition at line 1521 of file dt.h.

References Val.

1521 {Val/=sdouble(SFlt); return *this;}
sdouble Val
Definition: dt.h:1497
float sdouble
Definition: bd.h:15
bool TSFlt::operator< ( const TSFlt SFlt) const
inline

Definition at line 1516 of file dt.h.

References Val.

1516 {return Val<SFlt.Val;}
sdouble Val
Definition: dt.h:1497
TSFlt& TSFlt::operator= ( const TSFlt SFlt)
inline

Definition at line 1512 of file dt.h.

References Val.

1512 {Val=SFlt.Val; return *this;}
sdouble Val
Definition: dt.h:1497
bool TSFlt::operator== ( const TSFlt SFlt) const
inline

Definition at line 1513 of file dt.h.

References Val.

1513 {return Val==SFlt.Val;}
sdouble Val
Definition: dt.h:1497
bool TSFlt::operator== ( const double &  Flt) const
inline

Definition at line 1514 of file dt.h.

References Val.

1514 {return Val==Flt;}
sdouble Val
Definition: dt.h:1497
void TSFlt::Save ( TSOut SOut) const
inline

Definition at line 1508 of file dt.h.

References TSOut::Save(), and Val.

1508 {SOut.Save(Val);}
sdouble Val
Definition: dt.h:1497
void Save(const bool &Bool)
Definition: fl.h:173

Here is the call graph for this function:

void TSFlt::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 2263 of file dt.cpp.

References TFlt::GetStr(), Val, and XSaveBETagArg.

2263  {
2264  XSaveBETagArg(Nm, "Val", TFlt::GetStr(Val));
2265 }
#define XSaveBETagArg(Nm, ArgNm, ArgVal)
Definition: bd.h:327
sdouble Val
Definition: dt.h:1497
TStr GetStr() const
Definition: dt.h:1459

Here is the call graph for this function:

Member Data Documentation

const sdouble TSFlt::Mn =-FLT_MIN
static

Definition at line 1499 of file dt.h.

const sdouble TSFlt::Mx =+FLT_MAX
static

Definition at line 1500 of file dt.h.


The documentation for this class was generated from the following files: