SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 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 1401 of file dt.h.


Constructor & Destructor Documentation

TSFlt::TSFlt ( ) [inline]

Definition at line 1408 of file dt.h.

Referenced by GetMemUsed().

: Val(0){}

Here is the caller graph for this function:

TSFlt::TSFlt ( const sdouble _Val) [inline]

Definition at line 1409 of file dt.h.

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

Definition at line 1413 of file dt.h.

References TSIn::Load(), and Val.

{SIn.Load(Val);}

Here is the call graph for this function:


Member Function Documentation

int TSFlt::GetMemUsed ( ) const [inline]

Definition at line 1430 of file dt.h.

References TSFlt().

{return sizeof(TSFlt);}

Here is the call graph for this function:

int TSFlt::GetPrimHashCd ( ) const [inline]

Definition at line 1432 of file dt.h.

References TInt::Mx, and Val.

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

Definition at line 1434 of file dt.h.

References Val.

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

Definition at line 2258 of file dt.cpp.

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

                                                        {
  XLoadHd(Nm);
  Val=sdouble(TXmlObjSer::GetFltArg(XmlTok, "Val"));
}

Here is the call graph for this function:

TSFlt::operator sdouble ( ) const [inline]

Definition at line 1411 of file dt.h.

References Val.

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

Definition at line 1421 of file dt.h.

References Val.

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

Definition at line 1423 of file dt.h.

References Val.

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

Definition at line 1426 of file dt.h.

References Val.

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

Definition at line 1428 of file dt.h.

References Val.

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

Definition at line 1424 of file dt.h.

References Val.

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

Definition at line 1429 of file dt.h.

References Val.

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

Definition at line 1425 of file dt.h.

References Val.

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

Definition at line 1427 of file dt.h.

References Val.

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

Definition at line 1422 of file dt.h.

References Val.

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

Definition at line 1418 of file dt.h.

References Val.

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

Definition at line 1419 of file dt.h.

References Val.

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

Definition at line 1420 of file dt.h.

References Val.

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

Definition at line 1414 of file dt.h.

References TSOut::Save(), and Val.

{SOut.Save(Val);}

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.

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

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 1405 of file dt.h.

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

Definition at line 1406 of file dt.h.


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