SNAP Library, User Reference  2012-10-15 15:06:59
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TSFlt Class Reference

#include <dt.h>

List of all members.

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 1370 of file dt.h.


Constructor & Destructor Documentation

TSFlt::TSFlt ( ) [inline]

Definition at line 1377 of file dt.h.

: Val(0){}
TSFlt::TSFlt ( const sdouble _Val) [inline]

Definition at line 1378 of file dt.h.

: Val(sdouble(_Val)){}
TSFlt::TSFlt ( TSIn SIn) [inline, explicit]

Definition at line 1382 of file dt.h.

{SIn.Load(Val);}

Member Function Documentation

int TSFlt::GetMemUsed ( ) const [inline]

Definition at line 1399 of file dt.h.

{return sizeof(TSFlt);}
int TSFlt::GetPrimHashCd ( ) const [inline]

Definition at line 1401 of file dt.h.

                            {
    int Expn; return int((frexp(Val, &Expn)-0.5)*double(TInt::Mx));}
int TSFlt::GetSecHashCd ( ) const [inline]

Definition at line 1403 of file dt.h.

                           {
    int Expn; frexp(Val, &Expn); return Expn;}
void TSFlt::LoadXml ( const PXmlTok XmlTok,
const TStr Nm 
)

Definition at line 2211 of file dt.cpp.

                                                        {
  XLoadHd(Nm);
  Val=sdouble(TXmlObjSer::GetFltArg(XmlTok, "Val"));
}
TSFlt::operator sdouble ( ) const [inline]

Definition at line 1380 of file dt.h.

{return Val;}
bool TSFlt::operator!= ( const double &  Flt) const [inline]

Definition at line 1390 of file dt.h.

{return Val!=Flt;}
sdouble TSFlt::operator() ( ) const [inline]

Definition at line 1392 of file dt.h.

{return Val;}
TSFlt& TSFlt::operator*= ( const double &  SFlt) [inline]

Definition at line 1395 of file dt.h.

{Val*=sdouble(SFlt); return *this;}
TSFlt TSFlt::operator++ ( int  ) [inline]

Definition at line 1397 of file dt.h.

{Val++; return *this;}
TSFlt& TSFlt::operator+= ( const double &  SFlt) [inline]

Definition at line 1393 of file dt.h.

{Val+=sdouble(SFlt); return *this;}
TSFlt TSFlt::operator-- ( int  ) [inline]

Definition at line 1398 of file dt.h.

{Val--; return *this;}
TSFlt& TSFlt::operator-= ( const double &  SFlt) [inline]

Definition at line 1394 of file dt.h.

{Val-=sdouble(SFlt); return *this;}
TSFlt& TSFlt::operator/= ( const double &  SFlt) [inline]

Definition at line 1396 of file dt.h.

{Val/=sdouble(SFlt); return *this;}
bool TSFlt::operator< ( const TSFlt SFlt) const [inline]

Definition at line 1391 of file dt.h.

{return Val<SFlt.Val;}
TSFlt& TSFlt::operator= ( const TSFlt SFlt) [inline]

Definition at line 1387 of file dt.h.

{Val=SFlt.Val; return *this;}
bool TSFlt::operator== ( const TSFlt SFlt) const [inline]

Definition at line 1388 of file dt.h.

{return Val==SFlt.Val;}
bool TSFlt::operator== ( const double &  Flt) const [inline]

Definition at line 1389 of file dt.h.

{return Val==Flt;}
void TSFlt::Save ( TSOut SOut) const [inline]

Definition at line 1383 of file dt.h.

{SOut.Save(Val);}
void TSFlt::SaveXml ( TSOut SOut,
const TStr Nm 
) const

Definition at line 2216 of file dt.cpp.

                                                     {
  XSaveBETagArg(Nm, "Val", TFlt::GetStr(Val));
}

Member Data Documentation

const sdouble TSFlt::Mn = -FLT_MIN [static]

Definition at line 1374 of file dt.h.

const sdouble TSFlt::Mx = +FLT_MAX [static]

Definition at line 1375 of file dt.h.

Definition at line 1372 of file dt.h.


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