SNAP Library 2.4, Developer Reference
2015-05-11 19:40:56
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 1056 of file dt.h.
References TSIn::Load(), and Val.
|
inlinestatic |
|
inlinestatic |
Definition at line 1122 of file dt.h.
Referenced by GetHexStr(), and TUrl::GetUrlSearchStr().
Definition at line 1124 of file dt.h.
References GetHexStr(), and Val.
|
inlinestatic |
Definition at line 1102 of file dt.h.
Referenced by TVec< TVal, TSizeTy >::GetSubValV().
|
inlinestatic |
Definition at line 1127 of file dt.h.
References GetStr().
Referenced by GetMegaStr().
|
inlinestatic |
Definition at line 1131 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 1088 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 1090 of file dt.h.
Referenced by TTmProfiler::AddTimer(), TChA::CountCh(), TStr::CountCh(), TStr::DelSubStr(), GetMx(), TChA::GetSubStr(), TStr::GetSubStr(), TVec< TVal, TSizeTy >::GetSubValV(), TQQueue< TInt >::GetSubValV(), TSs::GetXLen(), TSnap::PrintInfo(), TChA::SearchCh(), TStr::SearchCh(), TStr::SearchStr(), and TVec< TVal, TSizeTy >::Union().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
Definition at line 1083 of file dt.h.
References TRnd::GetUniDevInt(), and Rnd.
Referenced by TVec< TVal, TSizeTy >::GetPivotValN(), and TVec< TSparseGroup >::GetPivotValNCmp().
|
inline |
|
inline |
Definition at line 1105 of file dt.h.
References Val.
Referenced by TXmlTok::AddArg(), TBlobBs::AssertBlobBsStateStr(), TSnap::CmtyEvolutionJson(), 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(), TMom::GetValVStr(), TVec< TVal, TSizeTy >::GetXOutOfBoundsErrMsg(), TTm::GetYMDDashStr(), TSnap::Intersect(), TSnap::Intersect1(), TSnap::MaxCPGreedyBetter2(), 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 1107 of file dt.h.
References TStr::Fmt().
|
static |
Definition at line 1110 of file dt.h.
References TStr::CStr(), and GetStr().
Referenced by GetStr().
Definition at line 1113 of file dt.h.
References TStr::Fmt().
Definition at line 1118 of file dt.h.
References TStr::Fmt().
Definition at line 1119 of file dt.h.
References TStr::Fmt().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 1057 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 1058 of file dt.h.
References TSOut::Save(), and Val.
Referenced by THashKeyDat< TKey, TDat >::Save(), TGraphKey::Save(), TJsonVal::Save(), TNodeNet< TNodeData >::TNode::Save(), TAGMFit::Save(), TUNGraph::TNode::Save(), TAGMFast::Save(), THitInfo::Save(), TEdgeInfo::Save(), TCoda::Save(), TCascade::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(), and TBigNet< TNodeData, IsDir >::SaveToDisk().
|
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 1046 of file dt.h.
Referenced by TNEANet::AddEdge(), TNEANet::AddNode(), TNEANet::DelEdge(), TNEANet::DelNode(), TNEANet::GetIntAttrDefaultE(), and TNEANet::GetIntAttrDefaultN().
|
static |
Definition at line 1047 of file dt.h.
Referenced by TBigNet< TNodeData, IsDir >::AddSorted(), TSnap::TSnapDetail::CmtyGirvanNewmanStep(), TSnap::FindAugV(), TSnap::GetBfsEffDiam(), TSnap::GetBfsTree(), TStrUtil::GetDomNm2(), TSnap::GetFarnessCentr(), TGraphAnf< PGraph >::GetGraphAnf(), TSnap::GetGroupFarnessCentr(), 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(), TSecTm::SaveTxt(), and TVec< TVal, TSizeTy >::Shuffle().
|
static |
Definition at line 1051 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 1044 of file dt.h.
Referenced by TLocClustStat::BagOfWhiskers(), TCesna::FindComs(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TSnap::GetClustCf(), TLocClustStat::GetCurveStat(), TSnap::GetDegCnt(), GetHexStr(), TBreathFS< PGraph >::GetHops(), TSnap::GetInDegCnt(), GetInRng(), TCoda::GetNumComs(), TSnap::GetOutDegCnt(), 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().