SNAP Library 2.3, Developer Reference
2014-06-16 11:58:46
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>
Public Member Functions | |
TInt () | |
TInt (const int &_Val) | |
operator int () const | |
TInt (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 |
TInt & | operator= (const TInt &Int) |
TInt & | operator= (const int &Int) |
bool | operator== (const TInt &Int) const |
bool | operator== (const int &Int) const |
bool | operator!= (const int &Int) const |
bool | operator< (const TInt &Int) const |
bool | operator< (const int &Int) const |
int | operator() () const |
TInt & | operator+= (const int &Int) |
TInt & | operator-= (const int &Int) |
TInt | operator++ (int) |
TInt | operator-- (int) |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
TStr | GetStr () const |
Static Public Member Functions | |
static int | Abs (const int &Int) |
static int | Sign (const int &Int) |
static void | Swap (int &Int1, int &Int2) |
static int | GetRnd (const int &Range=0) |
static bool | IsOdd (const int &Int) |
static bool | IsEven (const int &Int) |
static int | GetMn (const int &Int1, const int &Int2) |
static int | GetMx (const int &Int1, const int &Int2) |
static int | GetMn (const int &Int1, const int &Int2, const int &Int3) |
static int | GetMn (const int &Int1, const int &Int2, const int &Int3, const int &Int4) |
static int | GetMx (const int &Int1, const int &Int2, const int &Int3) |
static int | GetMx (const int &Int1, const int &Int2, const int &Int3, const int &Int4) |
static int | GetInRng (const int &Val, const int &Mn, const int &Mx) |
static TStr | GetStr (const int &Val) |
static TStr | GetStr (const TInt &Int) |
static TStr | GetStr (const int &Val, const char *FmtStr) |
static TStr | GetStr (const int &Val, const TStr &FmtStr) |
static TStr | GetStr (const uint &Val) |
static TStr | GetStr (const int64 &Val) |
static TStr | GetStr (const uint64 &Val) |
static TStr | GetHexStr (const int &Val) |
static TStr | GetHexStr (const TInt &Int) |
static TStr | GetKiloStr (const int &Val) |
static TStr | GetMegaStr (const int &Val) |
static char * | SaveFrugalInt (char *pDest, int i) |
static char * | LoadFrugalInt (char *pSrc, int &i) |
static void | TestFrugalInt () |
static void | SaveFrugalIntV (TSOut &SOut, const TVec< TInt, int > &IntV) |
static void | LoadFrugalIntV (TSIn &SIn, TVec< TInt, int > &IntV, bool ClrP=true) |
Public Attributes | |
int | Val |
Static Public Attributes | |
static const int | Mn =INT_MIN |
static const int | Mx =INT_MAX |
static const int | Kilo =1024 |
static const int | Mega =1024*1024 |
static const int | Giga =1024*1024*1024 |
static TRnd | Rnd |
|
inline |
|
inline |
|
inlineexplicit |
Definition at line 1055 of file dt.h.
References TSIn::Load(), and Val.
|
inlinestatic |
|
inlinestatic |
Definition at line 1121 of file dt.h.
Referenced by GetHexStr(), and TUrl::GetUrlSearchStr().
Definition at line 1123 of file dt.h.
References GetHexStr(), and Val.
|
inlinestatic |
Definition at line 1101 of file dt.h.
Referenced by TVec< TVal, TSizeTy >::GetSubValV(), and TGLib_OLD::TVec< TVal >::GetSubValV().
|
inlinestatic |
Definition at line 1126 of file dt.h.
References GetStr().
Referenced by GetMegaStr().
|
inlinestatic |
Definition at line 1130 of file dt.h.
References GetKiloStr(), and GetStr().
Referenced by TBigNet< TNodeData, IsDir >::InvertFromSources(), TBigNet< TNodeData, IsDir >::IsOk(), TLocClustStat::ParamStr(), TKroneckerLL::SampleGradient(), and TKroneckerLL::TestSamplePerm().
|
inline |
|
inlinestatic |
Definition at line 1087 of file dt.h.
Referenced by TVVec< TVal >::CopyFrom(), TStr::DelSubStr(), GetMn(), TMOut::GetSIn(), TChA::GetSubStr(), TStr::GetSubStr(), TQQueue< TInt >::GetSubValV(), TSparseSVD::Lanczos(), TSnap::PrintInfo(), TBigStrPool::Resize(), and TStrPool::Resize().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 1089 of file dt.h.
Referenced by TTmProfiler::AddTimer(), TChA::CountCh(), TStr::CountCh(), TStr::DelSubStr(), GetMx(), TChA::GetSubStr(), TStr::GetSubStr(), TVec< TVal, TSizeTy >::GetSubValV(), TGLib_OLD::TVec< TVal >::GetSubValV(), TQQueue< TInt >::GetSubValV(), TSs::GetXLen(), TSnap::PrintInfo(), TChA::SearchCh(), TStr::SearchCh(), TStr::SearchStr(), TVec< TVal, TSizeTy >::Union(), and TGLib_OLD::TVec< TVal >::Union().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
Definition at line 1082 of file dt.h.
References TRnd::GetUniDevInt(), and Rnd.
Referenced by TVec< TVal, TSizeTy >::GetPivotValN(), TGLib_OLD::TVec< TVal >::GetPivotValN(), TVec< TSparseGroup >::GetPivotValNCmp(), and TGLib_OLD::TVec< ::TSize >::GetPivotValNCmp().
|
inline |
|
inline |
Definition at line 1104 of file dt.h.
References Val.
Referenced by TXmlTok::AddArg(), TBlobBs::AssertBlobBsStateStr(), TUniCodec::DecodeUtf16FromBytes(), TUniCodec::DecodeUtf16FromWords(), TUniCodec::DecodeUtf8(), TUniCodec::EncodeUtf8(), TXmlLx::EThrow(), TBlobPt::GetAddrStr(), TSecTm::GetDtTmSortFNmStr(), TSecTm::GetDtTmSortStr(), TXmlLx::GetFPosStr(), TILx::GetFPosStr(), TTmInfo::GetHmFromMins(), TTm::GetHMSTColonDotStr(), TTm::GetIdStr(), TEnv::GetIfArgPrefixInt(), TEnv::GetIfArgPrefixIntV(), GetKiloStr(), GetMegaStr(), TMom::GetNmVStr(), TStr::GetNrNumFExt(), TStr::GetNumFNm(), THttp::GetReasonPhrase(), TGnuPlot::GetSeriesPlotStr(), TBlobPt::GetStr(), TSecTm::GetStr(), THttpRq::GetStr(), TMom::GetStr(), TTm::GetStr(), GetStr(), TPpVal::GetValStr(), TMom::GetValVStr(), TVec< TVal, TSizeTy >::GetXOutOfBoundsErrMsg(), TGLib_OLD::TVec< TVal >::GetXOutOfBoundsErrMsg(), TTm::GetYMDDashStr(), TVecPool< TVal, TSizeTy >::operator=(), TSOut::PutInt(), TOLx::PutInt(), TVec< TVal, TSizeTy >::Resize(), TVecPool< TVal, TSizeTy >::Resize(), SaveFrugalInt(), THist::SaveStat(), THtmlDoc::SaveTxt(), TRnd::SaveXml(), TMem::SaveXml(), TChA::SaveXml(), TVec< TVal, TSizeTy >::SaveXml(), TCh::SaveXml(), TUCh::SaveXml(), SaveXml(), TUInt::SaveXml(), THttpResp::THttpResp(), THttpRq::THttpRq(), and TVecPool< TVal, TSizeTy >::TVecPool().
|
inlinestatic |
Definition at line 1106 of file dt.h.
References TStr::Fmt().
|
static |
Definition at line 1109 of file dt.h.
References TStr::CStr(), and GetStr().
Referenced by GetStr().
Definition at line 1112 of file dt.h.
References TStr::Fmt().
Definition at line 1117 of file dt.h.
References TStr::Fmt().
Definition at line 1118 of file dt.h.
References TStr::Fmt().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 1056 of file dt.h.
References TSIn::Load(), and Val.
Referenced by TAGMFit::Load(), TAGMFast::Load(), TCoda::Load(), TCesna::Load(), TSparseTable< TKey, GroupSize >::Load(), TSparseHash< TKey, TDat, GroupSize >::Load(), TStrHash< TDat, TStringPool, THashFunc >::Load(), TSparseSet< TKey, GroupSize >::Load(), TVVec< TFlt >::Load(), and TKeyDatFl< TKey, TDat, THashFunc >::TKeyDatFl().
|
static |
Definition at line 1975 of file dt.cpp.
Referenced by LoadFrugalIntV().
Definition at line 2043 of file dt.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TSIn::GetBf(), TSIn::GetCh(), IAssert, and LoadFrugalInt().
Definition at line 1923 of file dt.cpp.
References TXmlObjSer::GetIntArg(), Val, and XLoadHd.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1057 of file dt.h.
References TSOut::Save(), and Val.
Referenced by TFHash< TKey, TFDat, TVDat >::AddDat(), TFHash< TKey, TFDat, TVDat >::AddKey(), TFHashKey< TKey, TFDat, TVDat >::OnDelFromCache(), THashKeyDat< TKey, TDat >::Save(), TGraphKey::Save(), TJsonVal::Save(), TNodeNet< TNodeData >::TNode::Save(), TAGMFit::Save(), TPpVal::Save(), TUNGraph::TNode::Save(), TAGMFast::Save(), THitInfo::Save(), TEdgeInfo::Save(), TCoda::Save(), TCascade::Save(), TPp::Save(), TNodeInfo::Save(), THash< TPair, THash >::Save(), TNodeNet< TSecTm >::Save(), TUNGraph::Save(), TSnapQueue< int >::Save(), TGStatVec::Save(), TLocClustStat::Save(), TTm::Save(), TCesna::Save(), TNGraph::TNode::Save(), TSparseTable< TKey, GroupSize >::Save(), TNGraph::Save(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save(), TSparseHash< TKey, TDat, GroupSize >::Save(), TNEGraph::TNode::Save(), TNodeEDatNet< TStr, TFltFltH >::Save(), TNEGraph::TEdge::Save(), TNEGraph::Save(), TStrHash< TDat, TStringPool, THashFunc >::Save(), TSparseSet< TKey, GroupSize >::Save(), TBPGraph::TNode::Save(), TBPGraph::Save(), THashSetKey< TKey >::Save(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Save(), THashSet< TInt >::Save(), TNodeEdgeNet< TSecTm, TSecTm >::Save(), TNEANet::Save(), TVVec< TFlt >::Save(), TVVVec< TVal >::Save(), TQQueue< TInt >::Save(), TBigNet< TNodeData, IsDir >::SaveToDisk(), and TFHash< TKey, TFDat, TVDat >::TFHash().
|
static |
Definition at line 1954 of file dt.cpp.
References GetStr(), and IAssertR.
Referenced by SaveFrugalIntV().
Definition at line 2018 of file dt.cpp.
References TVec< TVal, TSizeTy >::Len(), TSOut::PutBf(), SaveFrugalInt(), and Val.
Definition at line 1928 of file dt.cpp.
References GetStr(), Val, and XSaveBETagArg.
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Definition at line 1045 of file dt.h.
Referenced by TNEANet::AddEdge(), TNEANet::AddNode(), TNEANet::DelEdge(), TNEANet::DelNode(), TExpVal::GetFltValAsInt(), TNEANet::GetIntAttrDefaultE(), and TNEANet::GetIntAttrDefaultN().
|
static |
Definition at line 1046 of file dt.h.
Referenced by TBigNet< TNodeData, IsDir >::AddSorted(), TSnap::TSnapDetail::CmtyGirvanNewmanStep(), TSnap::FindAugV(), TSnap::GetBfsEffDiam(), TSnap::GetBfsTree(), TStrUtil::GetDomNm2(), TSnap::GetFarnessCentr(), TExpVal::GetFltValAsInt(), TGraphAnf< PGraph >::GetGraphAnf(), TGraphAnf< PGraph >::GetNodeAnf(), TSnap::GetNodeEcc(), TSnap::GetNodesAtHops(), TStrUtil::GetNormalizedUrl(), TVec< TVal, TSizeTy >::GetPivotValN(), TVec< TSparseGroup >::GetPivotValNCmp(), TFlt::GetPrimHashCd(), TSFlt::GetPrimHashCd(), TSnap::GetShortPath(), TSnap::GetSubTreeSz(), TGraphAnf< PGraph >::InitAnfBits(), TBigNet< TNodeData, IsDir >::InvertFromSources(), TSnap::PlotShortPathDistr(), TVec< TVal, TSizeTy >::Resize(), TGLib_OLD::TVec< TVal >::Resize(), TSecTm::SaveTxt(), and TVec< TVal, TSizeTy >::Shuffle().
|
static |
Definition at line 1050 of file dt.h.
Referenced by TNIBs::BSG(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TSnap::GenDegSeq(), TSnap::GenPrefAttach(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TTimeNENet::GetGnmRndNet(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TTimeNENet::GetPrefAttach(), GetRnd(), TSnap::TSnapDetail::GetRndEdgeNonAdjNode(), TSnap::GetRndESubGraph(), TCnCom::GetRndNId(), TBreathFS< PGraph >::GetRndPath(), TSnap::GetRndSubGraph(), main(), TTimeNet::PlotEffDiam(), TLocClust::PlotNCP(), TSnap::PlotShortPathDistr(), TTimeNENet::SetRndEdgeTimes(), TNIBs::SG(), and TGnuPlot::Test().
int TInt::Val |
Definition at line 1043 of file dt.h.
Referenced by TLocClustStat::BagOfWhiskers(), TCesna::FindComs(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TSnap::GetClustCf(), TLocClustStat::GetCurveStat(), GetHexStr(), TBreathFS< PGraph >::GetHops(), GetInRng(), TCoda::GetNumComs(), GetPrimHashCd(), GetSecHashCd(), GetStr(), Load(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), LoadXml(), operator int(), operator!=(), operator()(), operator++(), operator+=(), operator--(), operator-=(), operator<(), operator=(), operator==(), Save(), TNetInfBs::SaveEdgeInfo(), SaveFrugalIntV(), SaveXml(), TLocClustStat::TCutInfo::TCutInfo(), TInt(), and TBPGraph::TNode::TNode().