SNAP Library , User Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>
Public Member Functions | |
TBool () | |
TBool (const bool &_Val) | |
operator bool () const | |
TBool (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TBool & | operator= (const TBool &Bool) |
bool | operator== (const TBool &Bool) const |
bool | operator< (const TBool &Bool) const |
bool | operator() () const |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
Static Public Member Functions | |
static bool | GetRnd () |
static TStr | GetStr (const bool &Val) |
static TStr | GetStr (const TBool &Bool) |
static TStr | GetYNStr (const bool &Val) |
static TStr | GetYesNoStr (const bool &Val) |
static TStr | Get01Str (const bool &Val) |
static bool | IsValStr (const TStr &Str) |
static bool | GetValFromStr (const TStr &Str) |
static bool | GetValFromStr (const TStr &Str, const bool &DfVal) |
Public Attributes | |
bool | Val |
Static Public Attributes | |
static const bool | Mn = 0 |
static const bool | Mx = 1 |
static const int | Vals = TBool::Mx-TBool::Mn+1 |
static TRnd | Rnd |
static const TStr | FalseStr = "F" |
static const TStr | TrueStr = "T" |
static const TStr | NStr = "N" |
static const TStr | YStr = "Y" |
static const TStr | NoStr = "No" |
static const TStr | YesStr = "Yes" |
TBool::TBool | ( | ) | [inline] |
TBool::TBool | ( | const bool & | _Val | ) | [inline] |
static TStr TBool::Get01Str | ( | const bool & | Val | ) | [inline, static] |
int TBool::GetMemUsed | ( | ) | const [inline] |
int TBool::GetPrimHashCd | ( | ) | const [inline] |
static bool TBool::GetRnd | ( | ) | [inline, static] |
Definition at line 908 of file dt.h.
{return Rnd.GetUniDevInt(2)==1;}
int TBool::GetSecHashCd | ( | ) | const [inline] |
static TStr TBool::GetStr | ( | const bool & | Val | ) | [inline, static] |
static TStr TBool::GetStr | ( | const TBool & | Bool | ) | [inline, static] |
bool TBool::GetValFromStr | ( | const TStr & | Str | ) | [static] |
bool TBool::GetValFromStr | ( | const TStr & | Str, |
const bool & | DfVal | ||
) | [static] |
static TStr TBool::GetYesNoStr | ( | const bool & | Val | ) | [inline, static] |
static TStr TBool::GetYNStr | ( | const bool & | Val | ) | [inline, static] |
bool TBool::IsValStr | ( | const TStr & | Str | ) | [static] |
void TBool::LoadXml | ( | const PXmlTok & | XmlTok, |
const TStr & | Nm | ||
) |
Definition at line 1802 of file dt.cpp.
{ XLoadHd(Nm); Val=TXmlObjSer::GetBoolArg(XmlTok, "Val"); }
bool TBool::operator< | ( | const TBool & | Bool | ) | const [inline] |
bool TBool::operator== | ( | const TBool & | Bool | ) | const [inline] |
void TBool::Save | ( | TSOut & | SOut | ) | const [inline] |
void TBool::SaveXml | ( | TSOut & | SOut, |
const TStr & | Nm | ||
) | const |
Definition at line 1807 of file dt.cpp.
{ XSaveBETagArg(Nm, "Val", TBool::GetStr(Val)); }
const TStr TBool::FalseStr = "F" [static] |
const TStr TBool::NoStr = "No" [static] |
const TStr TBool::NStr = "N" [static] |
TRnd TBool::Rnd [static] |
const TStr TBool::TrueStr = "T" [static] |
bool TBool::Val |
const int TBool::Vals = TBool::Mx-TBool::Mn+1 [static] |
const TStr TBool::YesStr = "Yes" [static] |
const TStr TBool::YStr = "Y" [static] |