SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
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 1151 of file dt.h.
References TSIn::Load().
|
inlinestatic |
|
inlinestatic |
Definition at line 1217 of file dt.h.
Referenced by GetHexStr(), and TUrl::GetUrlSearchStr().
Definition at line 1219 of file dt.h.
References GetHexStr(), and Val.
|
inlinestatic |
Definition at line 1197 of file dt.h.
Referenced by TVec< TVal, TSizeTy >::GetSubValV().
|
inlinestatic |
Definition at line 1222 of file dt.h.
References GetStr().
Referenced by GetMegaStr().
|
inlinestatic |
Definition at line 1226 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 |
Definition at line 1169 of file dt.h.
References TInt().
Referenced by TCrossNet::TCrossEdge::GetMemUsed().
|
inlinestatic |
Definition at line 1183 of file dt.h.
Referenced by 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 1185 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 |
Definition at line 1171 of file dt.h.
References Val.
Referenced by TNEANetMP::AddEdgeUnchecked(), TNGraphMP::AddNodeWithEdges(), TNEANetMP::AddNodeWithEdges(), and TSnap::ToGraphMP3().
|
inlinestatic |
Definition at line 1178 of file dt.h.
References TRnd::GetUniDevInt().
Referenced by TTable::GetPivot(), TTable::GetPivotKeyVal(), TVec< TVal, TSizeTy >::GetPivotValN(), and TVec< TSparseGroup >::GetPivotValNCmp().
|
inline |
|
inline |
Definition at line 1200 of file dt.h.
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(), TTable::RenumberColName(), 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(), TTable::SelfSimJoinPerGroup(), THttpResp::THttpResp(), THttpRq::THttpRq(), and TVecPool< TVal, TSizeTy >::TVecPool().
|
inlinestatic |
Definition at line 1202 of file dt.h.
References TStr::Fmt().
|
static |
Definition at line 1205 of file dt.h.
References TStr::CStr(), and GetStr().
Referenced by GetStr().
Definition at line 1208 of file dt.h.
References TStr::Fmt().
Definition at line 1213 of file dt.h.
References TStr::Fmt().
Definition at line 1214 of file dt.h.
References TStr::Fmt().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 1152 of file dt.h.
References TSIn::Load().
Referenced by TAGMFit::Load(), TAGMFast::Load(), TCoda::Load(), THashMP< TInt, TEdge >::Load(), TCesna::Load(), TSparseTable< TKey, GroupSize >::Load(), TSparseHash< TKey, TDat, GroupSize >::Load(), TSparseSet< TKey, GroupSize >::Load(), TStrHash< TInt, TBigStrPool >::Load(), TStrHash< TInt, TBigStrPool >::LoadShM(), 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 1153 of file dt.h.
References TSOut::Save().
Referenced by THashKeyDat< TKey, TDat >::Save(), TGraphKey::Save(), THashMPKeyDat< TKey, TDat >::Save(), TJsonVal::Save(), TAGMFit::Save(), TNodeNet< TNodeData >::TNode::Save(), TNGraphMP::TNode::Save(), TNEANetMP::TNode::Save(), TUNGraph::TNode::Save(), TAGMFast::Save(), TNEANetMP::TEdge::Save(), TModeNet::Save(), THitInfo::Save(), TEdgeInfo::Save(), TCoda::Save(), TCascade::Save(), TNodeInfo::Save(), THashMP< TInt, TEdge >::Save(), TBigNet< TNodeData, IsDir >::Save(), TNGraphMP::Save(), TCrossNet::TCrossEdge::Save(), TNodeNet< TSecTm >::Save(), TUNGraph::Save(), TGStatVec::Save(), TSnapQueue< int >::Save(), THash< TPair, THash >::Save(), TLocClustStat::Save(), TTm::Save(), TCesna::Save(), TNEANetMP::Save(), TSparseTable< TKey, GroupSize >::Save(), TCrossNet::Save(), TNGraph::TNode::Save(), TNGraph::Save(), TSparseHash< TKey, TDat, GroupSize >::Save(), TNodeEDatNet< TNodeData, TEdgeData >::TNode::Save(), TMMNet::Save(), TNodeEDatNet< TStr, TFltFltH >::Save(), TNEGraph::TNode::Save(), TNEGraph::TEdge::Save(), TSparseSet< TKey, GroupSize >::Save(), TNEGraph::Save(), TStrHash< TInt, TBigStrPool >::Save(), TBPGraph::TNode::Save(), TTable::Save(), THashSetKey< TKey >::Save(), TBPGraph::Save(), THashSet< TInt >::Save(), TNodeEdgeNet< TNodeData, TEdgeData >::TNode::Save(), TNodeEdgeNet< TNodeData, TEdgeData >::TEdge::Save(), TNodeEdgeNet< TSecTm, TSecTm >::Save(), TNEANet::TNode::Save(), TNEANet::TEdge::Save(), TNEANet::Save(), TQQueue< TInt >::Save(), TUndirNet::TNode::Save(), TUndirNet::Save(), TDirNet::TNode::Save(), TDirNet::Save(), TNEANet::Save_V1(), TUndirNet::Save_V1(), TDirNet::Save_V1(), TNEANet::Save_V2(), 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 1141 of file dt.h.
Referenced by TNEANet::AddAttributes(), TCrossNet::AddEdge(), TNEANetMP::AddEdge(), TNEANet::AddEdge(), TNEANetMP::AddIntAttrDatE(), TNEANetMP::AddIntAttrDatN(), TNEANetMP::AddNode(), TCrossNet::DelEdge(), TNEANet::DelEdge(), TNEANet::DelNode(), TTable::FillBucketsByWindow(), TNEANetMP::GetIntAttrDefaultE(), TCrossNet::GetIntAttrDefaultE(), TNEANet::GetIntAttrDefaultE(), TNEANetMP::GetIntAttrDefaultN(), TNEANet::GetIntAttrDefaultN(), TTable::ToGraphPerGroup(), and TTable::ToGraphPerGroupIterator().
|
static |
Definition at line 1142 of file dt.h.
Referenced by TBigNet< TNodeData, IsDir >::AddSorted(), TSnap::TSnapDetail::CmtyGirvanNewmanStep(), TTable::FillBucketsByWindow(), TSnap::FindAugV(), TSnap::findMinimum(), TSnap::GetBfsEffDiam(), TSnap::GetBfsTree(), TStrUtil::GetDomNm2(), TSnap::GetFarnessCentr(), TSnap::GetFarnessCentrMP(), 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(), TVec< TVal, TSizeTy >::Shuffle(), TTable::ToGraphPerGroup(), and TTable::ToGraphPerGroupIterator().
|
static |
Definition at line 1146 of file dt.h.
Referenced by TNIBs::BSG(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TSnap::GetBetweennessCentr(), TSnap::GetBfsEffDiam(), TTimeNENet::GetGnmRndNet(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TTimeNENet::GetPrefAttach(), TSnap::TSnapDetail::GetRndEdgeNonAdjNode(), TSnap::GetRndESubGraph(), TCnCom::GetRndNId(), TBreathFS< PGraph >::GetRndPath(), TSnap::GetRndSubGraph(), TSnap::GetWeightedBetweennessCentr(), main(), TTimeNet::PlotEffDiam(), TLocClust::PlotNCP(), TSnap::PlotShortPathDistr(), TTimeNENet::SetRndEdgeTimes(), TNIBs::SG(), and TGnuPlot::Test().
int TInt::Val |
Definition at line 1139 of file dt.h.
Referenced by TBigNet< TNodeData, IsDir >::AddNode(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TLocClustStat::BagOfWhiskers(), TSnap::CascFind(), TSnap::CascFindMP(), TSnap::CascGraphSource(), TSnap::CascGraphTime(), TTable::ChangeContext(), TCesna::FindComs(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TNetInfBs::GenCascade(), TNIBs::GenCascade(), TLocClustStat::GetBoltzmanCurveStat(), TSnap::GetClustCf(), TLocClustStat::GetCurveStat(), GetHexStr(), TBreathFS< PGraph >::GetHops(), GetInRng(), TCoda::GetNumComs(), GetPrimHashCd(), GetStr(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), LoadXml(), operator int(), operator()(), operator<(), operator=(), operator==(), TTable::PrintSize(), TNetInfBs::SaveEdgeInfo(), SaveFrugalIntV(), SaveXml(), TLocClustStat::TCutInfo::TCutInfo(), TBPGraph::TNode::TNode(), and TSnap::ToNetworkMP2().