|
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
|
#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] |
Definition at line 897 of file dt.h.
Referenced by GetMemUsed().
: Val(false){}

| TBool::TBool | ( | const bool & | _Val | ) | [inline] |
| TBool::TBool | ( | TSIn & | SIn | ) | [inline, explicit] |
| 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 916 of file dt.h.
References TRnd::GetUniDevInt(), and Rnd.
{return Rnd.GetUniDevInt(2)==1;}

| int TBool::GetSecHashCd | ( | ) | const [inline] |
| static TStr TBool::GetStr | ( | const bool & | Val | ) | [inline, static] |
Definition at line 918 of file dt.h.
References FalseStr, and TrueStr.
Referenced by TXmlTok::AddArg(), TEnv::GetIfArgPrefixBool(), GetStr(), TSOut::PutBool(), TOLx::PutBool(), TPt< TRec >::SaveXml(), and SaveXml().

| static TStr TBool::GetStr | ( | const TBool & | Bool | ) | [inline, static] |
| bool TBool::GetValFromStr | ( | const TStr & | Str | ) | [static] |
Definition at line 1850 of file dt.cpp.
References TrueStr, YesStr, and YStr.
Referenced by TEnv::GetIfArgPrefixBool(), and TILx::GetSym().

| 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] |
Definition at line 1842 of file dt.cpp.
References FalseStr, TStr::GetUc(), NoStr, NStr, TrueStr, YesStr, and YStr.
Referenced by TILx::GetSym(), and GetValFromStr().
{
TStr UcStr=Str.GetUc();
return
(UcStr==FalseStr)||(UcStr==TrueStr)||
(UcStr==YStr)||(UcStr==NStr)||
(UcStr==YesStr)||(UcStr==NoStr);
}


| void TBool::Load | ( | TSIn & | SIn | ) | [inline] |
Definition at line 901 of file dt.h.
References TSIn::Load(), and Val.
Referenced by TAGMFast::Load(), TCoda::Load(), and TStrHash< TDat, TStringPool, THashFunc >::Load().


| void TBool::LoadXml | ( | const PXmlTok & | XmlTok, |
| const TStr & | Nm | ||
| ) |
Definition at line 1833 of file dt.cpp.
References TXmlObjSer::GetBoolArg(), Val, and XLoadHd.
{
XLoadHd(Nm);
Val=TXmlObjSer::GetBoolArg(XmlTok, "Val");
}

| TBool::operator bool | ( | ) | const [inline] |
| bool TBool::operator() | ( | ) | const [inline] |
| bool TBool::operator< | ( | const TBool & | Bool | ) | const [inline] |
| bool TBool::operator== | ( | const TBool & | Bool | ) | const [inline] |
| void TBool::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 902 of file dt.h.
References TSOut::Save(), and Val.
Referenced by TJsonVal::Save(), TPpVal::Save(), TAGMFast::Save(), TCoda::Save(), TBigNet< TNodeData, IsDir >::Save(), THash< TIntPr, TEdgeInfo >::Save(), TPt< TRec >::Save(), TStrHash< TDat, TStringPool, THashFunc >::Save(), and THashSet< TInt >::Save().


| void TBool::SaveXml | ( | TSOut & | SOut, |
| const TStr & | Nm | ||
| ) | const |
Definition at line 1838 of file dt.cpp.
References GetStr(), Val, and XSaveBETagArg.
{
XSaveBETagArg(Nm, "Val", TBool::GetStr(Val));
}

const TStr TBool::FalseStr = "F" [static] |
Definition at line 890 of file dt.h.
Referenced by GetStr(), and IsValStr().
const TStr TBool::NoStr = "No" [static] |
Definition at line 894 of file dt.h.
Referenced by GetYesNoStr(), and IsValStr().
const TStr TBool::NStr = "N" [static] |
Definition at line 892 of file dt.h.
Referenced by GetYNStr(), and IsValStr().
TRnd TBool::Rnd [static] |
const TStr TBool::TrueStr = "T" [static] |
Definition at line 891 of file dt.h.
Referenced by TXmlTok::GetBoolArgVal(), GetStr(), GetValFromStr(), and IsValStr().
| bool TBool::Val |
Definition at line 883 of file dt.h.
Referenced by GetPrimHashCd(), GetSecHashCd(), GetStr(), Load(), LoadXml(), operator bool(), operator()(), operator<(), operator=(), operator==(), Save(), SaveXml(), and TBool().
const int TBool::Vals = TBool::Mx-TBool::Mn+1 [static] |
const TStr TBool::YesStr = "Yes" [static] |
Definition at line 895 of file dt.h.
Referenced by GetValFromStr(), GetYesNoStr(), and IsValStr().
const TStr TBool::YStr = "Y" [static] |
Definition at line 893 of file dt.h.
Referenced by GetValFromStr(), GetYNStr(), and IsValStr().