SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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 1405 of file dt.h.

Constructor & Destructor Documentation

TSFlt::TSFlt ( )
inline

Definition at line 1412 of file dt.h.

1412 : Val(0){}
sdouble Val
Definition: dt.h:1407
TSFlt::TSFlt ( const sdouble _Val)
inline

Definition at line 1413 of file dt.h.

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

Definition at line 1417 of file dt.h.

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

Member Function Documentation

int TSFlt::GetMemUsed ( ) const
inline

Definition at line 1434 of file dt.h.

1434 {return sizeof(TSFlt);}
TSFlt()
Definition: dt.h:1412
int TSFlt::GetPrimHashCd ( ) const
inline

Definition at line 1436 of file dt.h.

1436  {
1437  int Expn; return int((frexp(Val, &Expn)-0.5)*double(TInt::Mx));}
sdouble Val
Definition: dt.h:1407
static const int Mx
Definition: dt.h:1049
int TSFlt::GetSecHashCd ( ) const
inline

Definition at line 1438 of file dt.h.

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

Definition at line 2258 of file dt.cpp.

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

Definition at line 1415 of file dt.h.

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

Definition at line 1425 of file dt.h.

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

Definition at line 1427 of file dt.h.

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

Definition at line 1430 of file dt.h.

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

Definition at line 1432 of file dt.h.

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

Definition at line 1428 of file dt.h.

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

Definition at line 1433 of file dt.h.

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

Definition at line 1429 of file dt.h.

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

Definition at line 1431 of file dt.h.

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

Definition at line 1426 of file dt.h.

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

Definition at line 1422 of file dt.h.

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

Definition at line 1423 of file dt.h.

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

Definition at line 1424 of file dt.h.

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

Definition at line 1418 of file dt.h.

1418 {SOut.Save(Val);}
sdouble Val
Definition: dt.h:1407
void Save(const bool &Bool)
Definition: fl.h:173
void TSFlt::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 2263 of file dt.cpp.

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

Member Data Documentation

const sdouble TSFlt::Mn =-FLT_MIN
static

Definition at line 1409 of file dt.h.

const sdouble TSFlt::Mx =+FLT_MAX
static

Definition at line 1410 of file dt.h.

sdouble TSFlt::Val

Definition at line 1407 of file dt.h.


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