SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
bd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TPt< TRec >
 
class  TOnExeStop
 
struct  TStaticAssert< BoolVal >
 
struct  TStaticAssert< true >
 
struct  TStaticAssertTest< IntVal >
 
class  TEq< T >
 
class  TNEq< T >
 
class  TLss< T >
 
class  TLEq< T >
 
class  TGtr< T >
 
class  TGEq< T >
 
class  TCmp< T >
 
class  TCRef
 
class  TPt< TRec >
 
class  TSStr
 
class  TConv_Pt64Ints32
 
class  TPairHashImpl1
 Computes a hash code from a pair of hash codes. More...
 
class  TPairHashImpl2
 Computes a hash code from a pair of hash codes. More...
 

Macros

#define forever   for(;;)
 
#define TSizeMx   SIZE_MAX
 
#define ClassT(TNm)   class TNm{
 
#define ClassTV(TNm, TNmV)
 
#define ClassTVQ(TNm, TNmV, TNmQ)
 
#define ClassTP(TNm, PNm)
 
#define ClassHdTP(TNm, PNm)
 
#define ClassTPE(TNm, PNm, ENm)
 
#define ClassTPEE(TNm, PNm, ENm1, ENm2)
 
#define ClassTE(TNm, ENm)
 
#define ClassTPV(TNm, PNm, TNmV)
 
#define ClassHdTPV(TNm, PNm, TNmV)
 
#define ClassTPVL(TNm, PNm, TNmV, TNmL, TNmLN)
 
#define UndefDefaultCopyAssign(TNm)
 
#define UndefCopyAssign(TNm)
 
#define UndefCopy(TNm)
 
#define UndefAssign(TNm)
 
#define Fail   ExeStop(NULL, NULL, "Fail", __FILE__, __LINE__)
 
#define FailR(Reason)   ExeStop((Reason), NULL, "Fail", __FILE__, __LINE__)
 
#define FailRA(Reason, ArgStr)   ExeStop((TStr(Reason)+" ("+ArgStr+")").CStr(), NULL, "Fail", __FILE__, __LINE__)
 
#define EFail   TExcept::ThrowFull("", TStr("[")+ TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) + "]")
 
#define EFailR(Reason)   TExcept::ThrowFull(Reason, TStr("[")+TStr(__FILE__)+" line "+TInt::GetStr(__LINE__)+"]")
 
#define Assert(Cond)   ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__))
 
#define AssertR(Cond, Reason)
 
#define IAssert(Cond)   ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__))
 
#define IAssertR(Cond, Reason)   ((Cond) ? static_cast<void>(0) : ExeStop(NULL, TStr(Reason).CStr(), #Cond, __FILE__, __LINE__))
 
#define WAssert(Cond, MsgCStr)   ((Cond) ? static_cast<void>(0) : WarnNotify(MsgCStr))
 
#define SAssert(Cond)   ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, #Cond, __FILE__, __LINE__))
 
#define FAssert(Cond, MsgCStr)   ((Cond) ? static_cast<void>(0) : ExeStop(TStr(MsgCStr).CStr(), NULL, NULL, __FILE__, __LINE__))
 
#define FSAssert(Cond)   ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, NULL, __FILE__, __LINE__))
 
#define EAssert(Cond)   ((Cond) ? static_cast<void>(0) : TExcept::ThrowFull(#Cond, TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) +": "+ TStr(#Cond)))
 
#define EAssertR(Cond, MsgStr)   ((Cond) ? static_cast<void>(0) : TExcept::ThrowFull(MsgStr, TStr(__FILE__)+" line "+TInt::GetStr(__LINE__)+": "+TStr(#Cond)))
 
#define EAssertRA(Cond, MsgStr, ArgStr)   ((Cond) ? static_cast<void>(0) : TExcept::Throw(MsgStr, ArgStr))
 
#define EAssertRAA(Cond, MsgStr, ArgStr1, ArgStr2)   ((Cond) ? static_cast<void>(0) : TExcept::Throw(MsgStr, ArgStr1, ArgStr2))
 
#define ESAssert(Cond)
 
#define CAssert(Cond)   /* typedef TStaticAssertTest<sizeof(TStaticAssert<(Cond)==0?false:true>)> TestStaticAssert; */
 
#define XLoadHd(Nm)
 
#define XLoad(Nm)   Nm.LoadXml(XmlTok->GetTagTok(#Nm), #Nm);
 
#define XSaveHd(Nm)
 
#define XSaveHdArg(Nm, ArgNm, ArgVal)
 
#define XSaveBETag(Nm)
 
#define XSaveBETagArg(Nm, ArgNm, ArgVal)
 
#define XSaveBETagArg4(Nm, ArgNm1, ArgVal1, ArgNm2, ArgVal2, ArgNm3, ArgVal3, ArgNm4, ArgVal4)
 
#define XSave(Nm)   Nm.SaveXml(SOut, #Nm)
 
#define XSaveToFile(Nm, FNm)   {TFOut SOut(FNm); Nm.SaveXml(SOut, #Nm);}
 
#define MIN(a, b)   ((a)<(b)?(a):(b))
 
#define MAX(a, b)   ((a)>(b)?(a):(b))
 

Typedefs

typedef unsigned char uchar
 
typedef unsigned int uint
 
typedef unsigned long ulong
 
typedef unsigned short ushort
 
typedef float sdouble
 
typedef long double ldouble
 
typedef FILE * TFileId
 
typedef char int8
 
typedef short int16
 
typedef int int32
 
typedef long long int64
 
typedef unsigned char uint8
 
typedef unsigned short uint16
 
typedef unsigned int uint32
 
typedef unsigned long long uint64
 
typedef ptrdiff_t ssize_t
 
typedef size_t TSize
 
typedef TPt< TXmlTokPXmlTok
 
typedef TPt< TExceptPExcept
 
typedef TPt< TXmlDocPXmlDoc
 
typedef TPairHashImpl2 TPairHashImpl
 

Enumerations

enum  TLoc { lUndef, lUs, lSi }
 
enum  TLogOp { loUndef, loNot, loAnd, loOr }
 
enum  TRelOp {
  roUndef, roLs, roLEq, roEq,
  roNEq, roGEq, roGt
}
 

Functions

void WrNotify (const char *CaptionCStr, const char *NotifyCStr)
 
void SaveToErrLog (const char *MsgCStr)
 
void InfoNotify (const char *NotifyCStr)
 
void WarnNotify (const char *NotifyCStr)
 
void ErrNotify (const char *NotifyCStr)
 
void StatNotify (const char *NotifyCStr)
 
void ExeStop (const char *MsgStr, const char *ReasonStr, const char *CondStr, const char *FNm, const int &LnN)
 
template<class TRec >
bool IsXLoadFromFileOk (const TStr &FNm, const TStr &Nm, TRec &Rec, TStr &MsgStr)
 
template<class TRec >
void XLoadFromFile (const TStr &FNm, const TStr &Nm, TRec &Rec)
 
template<class TRec >
bool operator!= (const TRec &Rec1, const TRec &Rec2)
 
template<class TRec >
bool operator> (const TRec &Rec1, const TRec &Rec2)
 
template<class TRec >
bool operator<= (const TRec &Rec1, const TRec &Rec2)
 
template<class TRec >
bool operator>= (const TRec &Rec1, const TRec &Rec2)
 
template<class TRec >
bool Cmp (const int &RelOp, const TRec &Rec1, const TRec &Rec2)
 
template<class TRec >
void Swap (TRec &Rec1, TRec &Rec2)
 

Macro Definition Documentation

#define Assert (   Cond)    ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__))

Definition at line 251 of file bd.h.

Referenced by TMom::Add(), TBigNet< TNodeData, IsDir >::AddEdge(), TTable::AddNJointRowsMP(), TBigStrPool::AddStr(), TStrPool::AddStr(), TLinAlg::AddVec(), TVVec< TFlt >::At(), TVVVec< TVal, TSizeTy >::At(), TTable::BuildGraph(), TNumericalStuff::CholeskyDecomposition(), TBigStrPool::Cmp(), TStrPool::Cmp(), TStrPool64::Cmp(), TUniChDb::Compose(), TSparseHash< TKey, TDat, GroupSize >::CopyFrom(), TSparseSet< TKey, GroupSize >::CopyFrom(), TTable::Defrag(), TChA::Del(), TSparseTable< TVal, GroupSize >::Del(), TVec< TVal, TSizeTy >::Del(), TLst< TVal >::Del(), TLinAlg::DotProduct(), TLinAlg::EuclDist2(), TPredicate::Eval(), TB8Set::Excl(), TB32Set::Excl(), TBSet::Excl(), TTable::FillBucketsByWindow(), TSparseHash< TKey, TDat, GroupSize >::FindPos(), TSparseSet< TKey, GroupSize >::FindPos(), TUniChDb::FindSentenceBoundaries(), TUniChDb::FindWordBoundaries(), TLinAlg::Gemm(), TVVec< TFlt >::Gen(), TVVVec< TVal, TSizeTy >::Gen(), TMemIn::GetBf(), TChAIn::GetBf(), TStrIn::GetBf(), TB8Set::GetBit(), TB32Set::GetBit(), TBSet::GetBit(), TUniChDb::GetCaseConverted(), TILx::GetCh(), TMemIn::GetCh(), TChAIn::GetCh(), TPreproc::GetCh(), TRStr::GetCh(), TStrIn::GetCh(), TBigStrPool::GetCStr(), TStrPool::GetCStr(), TBigStrPool::GetCStrFromOffset(), THashMPKeyDatI< TKey, TDat >::GetDat(), THashKeyDatI< TKey, TDat >::GetDat(), TSparseHash< TKey, TDat, GroupSize >::GetDat(), TMom::GetDecile(), TUnicodeDef::GetDef(), TNodeEDatNet< TNodeData, TEdgeData >::GetEDat(), TKronMtx::GetEdgeProb(), TTable::GetEdgeTablePN(), TTable::GetEmptyRowsStart(), TMom::GetExtent(), THash< TPair, THash >::GetHashKeyDat(), TStrHash< TInt, TBigStrPool >::GetHashKeyDat(), TSparseTable< TKey, GroupSize >::GetI(), TSparseHash< TKey, TDat, GroupSize >::GetI(), TSparseSet< TKey, GroupSize >::GetI(), TB8Set::GetInt(), TB32Set::GetInt(), THashMPKeyDatI< TKey, TDat >::GetKey(), THashKeyDatI< TKey, TDat >::GetKey(), THashSetKeyI< TKey >::GetKey(), TSparseHash< TKey, TDat, GroupSize >::GetKeyDat(), TMom::GetMean(), TMom::GetMedian(), TMom::GetMn(), TMom::GetMode(), TMom::GetMx(), TRStr::GetNullRStr(), TCh::GetNum(), TMom::GetPercentile(), THashMP< TInt, TEdge >::GetPHashKeyDat(), TBigStrPool::GetPrimHashCd(), TStrPool::GetPrimHashCd(), TMom::GetQuart1(), TMom::GetQuart3(), TSparseHash< TKey, TDat, GroupSize >::GetRndKeyId(), TSparseSet< TKey, GroupSize >::GetRndKeyId(), TMom::GetSDev(), TBigStrPool::GetSecHashCd(), TStrPool::GetSecHashCd(), TMom::GetSErr(), THashSet< TInt >::GetSetKey(), TBigStrPool::GetStr(), TStrPool::GetStr(), TBigStrPool::GetStrFromOffset(), TSnap::GetTreeRootNId(), TBSet::GetUInt64(), TTm::GetUniqueCurUniTm(), TLstNd< TKey >::GetVal(), TMom::GetVari(), TVVec< TFlt >::GetXY(), TFSet::In(), TB8Set::In(), TB32Set::In(), TBSet::In(), TFSet::Incl(), TB8Set::Incl(), TB32Set::Incl(), TBSet::Incl(), TTable::InitializeJointTable(), TChA::Ins(), TVec< TVal, TSizeTy >::Ins(), TUniChInfo::IsDcpFlag(), TB8Set::IsPrefix(), TB32Set::IsPrefix(), TUniChInfo::IsSbFlag(), TMom::IsUsable(), TUniChInfo::IsWbFlag(), TChA::LastCh(), TChA::LastLastCh(), TLinAlg::LinComb(), TSnap::LoadCrossNet(), TTable::LoadSSSeq(), TNumericalStuff::LUDecomposition(), TNumericalStuff::LUSolve(), TSparseHash< TKey, TDat, GroupSize >::MoveFrom(), TSparseSet< TKey, GroupSize >::MoveFrom(), TLinAlg::Multiply(), TLinAlg::MultiplyScalar(), TLinAlg::MultiplyT(), TRowIteratorWithRemove::Next(), TLstNd< TKey >::Next(), TLinAlg::NormL1(), TSparseGroup< TVal, GroupSize >::OffsetToPos(), TCallbackNotify::OnNotify(), TNativeCallbackNotify::OnNotify(), TCallbackNotify::OnStatus(), TNativeCallbackNotify::OnStatus(), TBSet::operator&=(), TAPt< TRec >::operator*(), TPt< TFRnd >::operator*(), TAPt< TRec >::operator->(), TPt< TFRnd >::operator->(), TMom::operator=(), TAPt< TRec >::operator[](), TMd5Sig::operator[](), TMem::operator[](), TChA::operator[](), TPt< TFRnd >::operator[](), TQQueue< TInt >::operator[](), TBSet::operator^=(), TBSet::operator|=(), TMemIn::PeekCh(), TChAIn::PeekCh(), TStrIn::PeekCh(), TNGraphMtx::PMultiply(), TUNGraphMtx::PMultiply(), TSparseColMatrix::PMultiply(), TSparseRowMatrix::PMultiply(), TFullColMatrix::PMultiply(), TNGraphMtx::PMultiplyT(), TUNGraphMtx::PMultiplyT(), TSparseColMatrix::PMultiplyT(), TSparseRowMatrix::PMultiplyT(), TFullColMatrix::PMultiplyT(), TSStack< TInt >::Pop(), TLstNd< TKey >::Prev(), TUniChDb::TUcdFileReader::PutBack(), TLst< TVal >::PutBack(), TChA::PutCh(), TRStr::PutCh(), TOLx::PutDosLn(), TOLx::PutFlt(), TLst< TVal >::PutFront(), TOLx::PutIdStr(), TB8Set::PutInt(), TOLx::PutInt(), TB32Set::PutInt(), TOLx::PutLn(), TOLx::PutLnCmt(), TOLx::PutParCmt(), TRnd::PutSeed(), TTable::RemoveRow(), TVec< TFlt, TSizeTy >::Reverse(), TTable::SelectAtomic(), TTable::SelectAtomicConst(), TTable::SelectFirstNRows(), TSparseTable< TVal, GroupSize >::Set(), TUniChInfo::SetDcpFlag(), TUniChInfo::SetSbFlag(), TUniChInfo::SetWbFlag(), TTable::SimJoin(), TLinAlg::SumVec(), TNumericalStuff::SymetricToTridiag(), TLst< TVal >::TLst(), TSnap::ToGraph(), TSnap::ToGraphMP(), TSnap::ToGraphMP3(), TSnap::ToNetwork(), TSnap::ToNetworkMP(), TSnap::ToNetworkMP2(), TSStack< TInt >::Top(), TQQueue< TInt >::Top(), TEncoding_ISO8859_1::ToUnicode(), TEncoding_ISO8859_2::ToUnicode(), TEncoding_ISO8859_3::ToUnicode(), TEncoding_ISO8859_4::ToUnicode(), TEncoding_YuAscii::ToUnicode(), TEncoding_CP437::ToUnicode(), TEncoding_CP852::ToUnicode(), TEncoding_CP1250::ToUnicode(), TQQueue< TInt >::TQQueue(), TLinAlg::Transpose(), TRStr::UnRef(), TCRef::UnRef(), TCRef::~TCRef(), and TRStr::~TRStr().

#define ClassHdTP (   TNm,
  PNm 
)
Value:
class TNm; \
typedef TPt<TNm> PNm;
Definition: bd.h:196

Definition at line 135 of file bd.h.

#define ClassHdTPV (   TNm,
  PNm,
  TNmV 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
typedef TVec<PNm> TNmV;
Definition: bd.h:196
Vector is a sequence TVal objects representing an array that can change in size.
Definition: ds.h:430

Definition at line 172 of file bd.h.

#define ClassT (   TNm)    class TNm{

Definition at line 112 of file bd.h.

#define ClassTE (   TNm,
  ENm 
)
Value:
class TNm; \
class TNm: public ENm{ \
public: \

Definition at line 157 of file bd.h.

#define ClassTP (   TNm,
  PNm 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
class TNm{ \
private: \
TCRef CRef; \
public: \
friend class TPt<TNm>;
Definition: bd.h:196

Definition at line 126 of file bd.h.

#define ClassTPE (   TNm,
  PNm,
  ENm 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
class TNm: public ENm{ \
private: \
TCRef CRef; \
public: \
friend class TPt<TNm>;
Definition: bd.h:196

Definition at line 139 of file bd.h.

#define ClassTPEE (   TNm,
  PNm,
  ENm1,
  ENm2 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
class TNm: public ENm1, public ENm2{ \
private: \
TCRef CRef; \
public: \
friend class TPt<TNm>;
Definition: bd.h:196

Definition at line 148 of file bd.h.

#define ClassTPV (   TNm,
  PNm,
  TNmV 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
typedef TVec<PNm> TNmV; \
class TNm{ \
private: \
TCRef CRef; \
public: \
friend class TPt<TNm>;
Definition: bd.h:196
Vector is a sequence TVal objects representing an array that can change in size.
Definition: ds.h:430

Definition at line 162 of file bd.h.

#define ClassTPVL (   TNm,
  PNm,
  TNmV,
  TNmL,
  TNmLN 
)
Value:
class TNm; \
typedef TPt<TNm> PNm; \
typedef TVec<PNm> TNmV; \
typedef TLst<PNm> TNmL; \
typedef TLstNd<PNm>* TNmLN; \
class TNm{ \
private: \
TCRef CRef; \
public: \
friend class TPt<TNm>;
Definition: ds.h:2701
Definition: ds.h:2677
Definition: bd.h:196
Vector is a sequence TVal objects representing an array that can change in size.
Definition: ds.h:430

Definition at line 177 of file bd.h.

#define ClassTV (   TNm,
  TNmV 
)
Value:
class TNm; \
typedef TVec<TNm> TNmV; \
class TNm{
Vector is a sequence TVal objects representing an array that can change in size.
Definition: ds.h:430

Definition at line 115 of file bd.h.

#define ClassTVQ (   TNm,
  TNmV,
  TNmQ 
)
Value:
class TNm; \
typedef TVec<TNm> TNmV; \
typedef TQQueue<TNm> TNmQ; \
class TNm{
Definition: ds.h:2609
Vector is a sequence TVal objects representing an array that can change in size.
Definition: ds.h:430

Definition at line 120 of file bd.h.

#define EAssert (   Cond)    ((Cond) ? static_cast<void>(0) : TExcept::ThrowFull(#Cond, TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) +": "+ TStr(#Cond)))
#define EAssertR (   Cond,
  MsgStr 
)    ((Cond) ? static_cast<void>(0) : TExcept::ThrowFull(MsgStr, TStr(__FILE__)+" line "+TInt::GetStr(__LINE__)+": "+TStr(#Cond)))

Definition at line 283 of file bd.h.

Referenced by TVec< TVal, TSizeTy >::AddBackSorted(), TVec< TVal, TSizeTy >::AddMerged(), TVec< TVal, TSizeTy >::AddSorted(), TVec< TVal, TSizeTy >::AddVMerged(), TUStr::AssertUnicodeDefOk(), TXmlObjSer::AssertXmlHd(), TVec< TVal, TSizeTy >::CopyUniqueFrom(), TGnuPlot::CreatePlotFile(), TZipIn::CreateZipProcess(), TZipOut::CreateZipProcess(), TFile::Del(), TVec< TVal, TSizeTy >::Del(), TVec< TVal, TSizeTy >::DelAll(), TVec< TVal, TSizeTy >::DelIfIn(), TZipIn::FillBf(), TFIn::FillBf(), TZipOut::Flush(), TFOut::Flush(), TFRnd::Flush(), TZipOut::FlushBf(), TFOut::FlushBf(), TUrl::GetAbs(), TUrl::GetAbsFromBase(), TMIn::GetBf(), TFRnd::GetBf(), TUrlLx::GetCh(), TMIn::GetCh(), TZipIn::GetCmd(), TZipOut::GetCmd(), TUrlLx::GetDigitCh(), TZipIn::GetFLen(), TFIn::GetFLen(), TFRnd::GetFLen(), TFIn::GetFPos(), TFRnd::GetFPos(), TUrlLx::GetHost(), TUrlLx::GetHSegmentCh(), TBigNet< TNodeData, IsDir >::GetInNIdV(), TSnap::GetMxDegNId(), TSnap::GetMxInDegNId(), TSnap::GetMxOutDegNId(), TFRnd::GetRecN(), TFRnd::GetRecs(), TUrlLx::GetSchemeCh(), TFRnd::GetStr(), TILx::GetSym(), TXmlParser::GetTag(), TXmlParser::GetTagVal(), TSecTm::GetTmSec(), TUInt::GetUIntFromIpStr(), TStrUtil::GetXmlTagNmVal(), TStrUtil::GetXmlTagVal(), TVec< TVal, TSizeTy >::Ins(), TBigNet< TNodeData, IsDir >::IsOk(), TNGraphMP::IsOk(), TNodeNet< TNodeData >::IsOk(), TUNGraph::IsOk(), TNEANetMP::IsOk(), TNGraph::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNEGraph::IsOk(), TBPGraph::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNEANet::IsOk(), TUndirNet::IsOk(), TDirNet::IsOk(), TSIn::Load(), TSIn::LoadCs(), TFRnd::MoveFPos(), TVec< TVal, TSizeTy >::Pack(), TMIn::PeekCh(), TVec< TVal, TSizeTy >::PutAll(), TFRnd::PutBf(), TFRnd::RefreshFPos(), TFile::Rename(), TSOut::Save(), TFIn::SetFPos(), TFRnd::SetFPos(), TVec< TFlt, TSizeTy >::SetVal(), TVec< TFlt, TSizeTy >::Swap(), TFIn::TFIn(), TFOut::TFOut(), TFRnd::TFRnd(), TMIn::TMIn(), TVec< TVal, TSizeTy >::Trunc(), TShMIn::TShMIn(), TZipIn::TZipIn(), TZipOut::TZipOut(), TFIn::~TFIn(), TFOut::~TFOut(), TFRnd::~TFRnd(), TZipIn::~TZipIn(), and TZipOut::~TZipOut().

#define EAssertRA (   Cond,
  MsgStr,
  ArgStr 
)    ((Cond) ? static_cast<void>(0) : TExcept::Throw(MsgStr, ArgStr))

Definition at line 286 of file bd.h.

#define EAssertRAA (   Cond,
  MsgStr,
  ArgStr1,
  ArgStr2 
)    ((Cond) ? static_cast<void>(0) : TExcept::Throw(MsgStr, ArgStr1, ArgStr2))

Definition at line 289 of file bd.h.

#define EFail   TExcept::ThrowFull("", TStr("[")+ TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) + "]")

Definition at line 244 of file bd.h.

#define EFailR (   Reason)    TExcept::ThrowFull(Reason, TStr("[")+TStr(__FILE__)+" line "+TInt::GetStr(__LINE__)+"]")

Definition at line 246 of file bd.h.

Referenced by TFIn::New(), and TZipIn::TZipIn().

#define ESAssert (   Cond)
Value:
((Cond) ? static_cast<void>(0) : TExcept::Throw(TSysStr::GetLastMsgCStr(), \
TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) +": "+ TStr(#Cond)))
TStr GetStr() const
Definition: dt.h:1197
static void Throw(const TStr &MsgStr)
Definition: ut.h:187
Definition: dt.h:412

Definition at line 292 of file bd.h.

#define Fail   ExeStop(NULL, NULL, "Fail", __FILE__, __LINE__)

Definition at line 238 of file bd.h.

Referenced by TGHash< TDat >::AddKey(), TXmlTok::AddTokToChA(), anonymous_namespace{unicode.cpp}::AssertEq(), TSpecFunc::BetaCf(), TSpecFunc::BetaI(), TFInOut::Clr(), Cmp(), TSnap::CmtyEvolutionFileBatch(), TUniCodec::DecodeUtf16FromBytes(), TUniCodec::DecodeUtf16FromWords(), TUniCodec::DecodeUtf8(), TNotify::DfOnNotify(), TUniCodec::EncodeUtf16ToBytes(), TUniCodec::EncodeUtf16ToWords(), TUniCodec::EncodeUtf8(), TGBlobBs::FNextBlobPt(), T8BitCodec< TEncoding_ISO8859_3 >::FromUnicode(), TSpecFunc::GammaPSeries(), TSnap::GenRMat(), TBlobBs::GetBlobBsStateStr(), TXmlObjSer::GetBoolArg(), TMom::GetByNm(), TLxChDef::GetChDef(), TTmInfo::GetDayOfWeekN(), TTmInfo::GetDayOfWeekNm(), TStr::GetDChStr(), TGStat::GetDistrStr(), TSecTm::GetDtTmFromMdyHmsPmStr(), TXmlObjSer::GetFltArg(), TBlobPt::GetFSet(), TRnd::GetGammaDev(), TCh::GetHex(), TCh::GetHexCh(), THtmlTok::GetHTok(), TXmlObjSer::GetInt64Arg(), TXmlObjSer::GetIntArg(), TSecTm::GetInUnits(), THtmlDoc::GetLxSym(), TTmInfo::GetMonthN(), TTmInfo::GetMonthNm(), TXmlLx::GetName(), TGHash< TDat >::GetNodeMap(), TGStat::GetPlotInfo(), TLFlt::GetPrimHashCd(), TXmlLx::GetReference(), TGnuPlot::GetScaleStr(), TLFlt::GetSecHashCd(), TGnuPlot::GetSeriesTyStr(), TXmlLx::GetStalVal(), TFRnd::GetStrFromFAccess(), TILx::GetSym(), TLxSymStr::GetSymStr(), TXmlLx::GetSymStr(), THtmlLx::GetSymStr(), TTmInfo::GetTmUnitSecs(), TTmInfo::GetTmUnitStr(), TXmlTok::GetTok(), THtmlDoc::GetTxtLnDoc(), TNotify::GetTypeStr(), TSnap::TSnapDetail::GVizGetLayoutStr(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TBlobPt::IsFlag(), TGHash< TDat >::IsGetKeyId(), TUrl::Load(), THttpRq::Load(), TBlobBs::Load(), THttpResp::Load(), THtmlTok::Load(), TXmlTok::Load(), THtmlDoc::Load(), THtmlHldV::Load(), TWebPg::Load(), TLAMisc::LoadMatlabTFltVV(), TSs::LoadTxt(), TSs::LoadTxtFldV(), TSparseGroup< TVal, GroupSize >::OffsetToPos(), THash< TPair, THash >::operator<(), TVoid::operator<(), TFunc< TFuncPt >::operator<(), TB1Def::operator=(), TFFileDesc::operator=(), THtmlLxChDef::operator=(), TB2Def::operator=(), TB4Def::operator=(), TXmlChDef::operator=(), THttpRq::operator=(), THttpChDef::operator=(), THtmlLx::operator=(), TXmlLx::operator=(), TILx::operator=(), THttpResp::operator=(), TGBlobBs::operator=(), THttpLx::operator=(), THtmlTok::operator=(), TMBlobBs::operator=(), TXmlTok::operator=(), TOLx::operator=(), THtmlDoc::operator=(), TCorr::operator=(), THtmlHldV::operator=(), TComb::operator=(), TXmlDoc::operator=(), TWebPg::operator=(), TLinReg::operator=(), TRStr::operator=(), TSvd::operator=(), THttpChRet::operator=(), TUniChDb::TUcdFileReader::operator=(), TRnd::operator==(), TILx::PeekVarEnd(), TBlobBs::PutBlobTag(), TBlobPt::PutFlag(), TBlobPt::PutFSet(), TSIn::Reset(), TSecTm::Round(), TAPt< TRec >::Save(), TFFileDesc::Save(), TUrl::Save(), TMd5::Save(), TFFile::Save(), THttpRq::Save(), TBlobBs::Save(), TILxSymSt::Save(), THttpResp::Save(), TSOut::Save(), THtmlTok::Save(), TXmlTok::Save(), THtmlDoc::Save(), TCorr::Save(), THtmlHldV::Save(), TComb::Save(), TXmlDoc::Save(), TWebPg::Save(), TLinReg::Save(), TSvd::Save(), TFunc< TFuncPt >::Save(), THtmlDoc::SaveHtmlToXml(), TILx::SetOpt(), TOLx::SetOpt(), TAPt< TRec >::TAPt(), TBlobBs::TBlobBs(), TComb::TComb(), TCorr::TCorr(), TUniCodec::TestDecodeUtf16(), TUniCodec::TestDecodeUtf8(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TFFile::TFFile(), TFFileDesc::TFFileDesc(), TFInOut::TFInOut(), TFRnd::TFRnd(), TFunc< TFuncPt >::TFunc(), TGBlobBs::TGBlobBs(), THtmlDoc::THtmlDoc(), THtmlHldV::THtmlHldV(), THtmlTok::THtmlTok(), THttpResp::THttpResp(), THttpRq::THttpRq(), TILxSymSt::TILxSymSt(), TLinReg::TLinReg(), TLxChDef::TLxChDef(), TMBlobBs::TMBlobBs(), TMd5::TMd5(), TXmlLx::ToNrSpacing(), TSvd::TSvd(), TUniChDb::TUcdFileReader::TUcdFileReader(), TUrl::TUrl(), TWebPg::TWebPg(), TXmlDoc::TXmlDoc(), and TXmlTok::TXmlTok().

#define FailRA (   Reason,
  ArgStr 
)    ExeStop((TStr(Reason)+" ("+ArgStr+")").CStr(), NULL, "Fail", __FILE__, __LINE__)

Definition at line 241 of file bd.h.

#define FAssert (   Cond,
  MsgCStr 
)    ((Cond) ? static_cast<void>(0) : ExeStop(TStr(MsgCStr).CStr(), NULL, NULL, __FILE__, __LINE__))

Definition at line 274 of file bd.h.

#define FSAssert (   Cond)    ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, NULL, __FILE__, __LINE__))

Definition at line 277 of file bd.h.

#define IAssert (   Cond)    ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__))

Definition at line 262 of file bd.h.

Referenced by THtmlDoc::_IsTagRedir(), TMd5::Add(), TUniTrie< TInt >::Add(), TAGMFit::AddBaseCmty(), TMem::AddBf(), TSecTm::AddDays(), TBigNet< TNodeData, IsDir >::AddEdge(), TGnuPlot::AddErrBar(), TSecTm::AddHours(), TGHash< TDat >::AddKey(), TSecTm::AddMins(), TBigNet< TNodeData, IsDir >::AddNode(), TTree< TVal >::AddNode(), TFfGGen::AddNodes(), TUndirFFire::AddNodes(), TGnuPlot::AddPlot(), TILx::AddRw(), TOLx::AddRw(), TSecTm::AddSecs(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TSecTm::AddWeeks(), TMAGNodeSimple::AttrGen(), TMAGNodeBern::AttrGen(), TMAGNodeBeta::AttrGen(), TGStat::AvgGStat(), TUndirFFire::BurnGeoFire(), TKroneckerLL::CalcChainR2(), TLogRegFit::CalcLogRegGradient(), TLogRegFit::CalcLogRegNewton(), TUniChDb::CanSentenceEndHere(), TStatTest::ChiSquareOne(), TStatTest::ChiSquareTwo(), TNumericalStuff::CholeskySolve(), TAGMUtil::ConnectCmtyVV(), TSnap::ConvertESubGraph(), TMOut::CutBf(), TUniCodec::DecodeUtf16FromBytes(), TUniCodec::DecodeUtf16FromWords(), TMd5::Def(), TMom::Def(), THash< TKey, TDat, THashFunc >::Defrag(), THashSet< TKey, THashFunc >::Defrag(), TMem::Del(), TNEGraph::DelEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge(), TNEANet::DelEdge(), THash< TKey, TDat, THashFunc >::DelKey(), THashSet< TKey, THashFunc >::DelKey(), TUNGraph::DelNode(), TNEGraph::DelNode(), TBPGraph::DelNode(), TNodeEdgeNet< TNodeData, TEdgeData >::DelNode(), TNEANet::DelNode(), TUndirNet::DelNode(), TSnap::TSnapDetail::TDelSelfEdges< PGraph, true >::Do(), TBreathFS< PGraph >::DoBfs(), TBreathFS< PGraph >::DoBfsHybrid(), TGHash< TDat >::DrawGViz(), TCoda::DumpMemberships(), TCesnaUtil::DumpNIDAttrHToMetis(), TUniCodec::EncodeUtf16ToBytes(), TUniCodec::EncodeUtf16ToWords(), TSpecFunc::EntropyFracDim(), TLAMisc::FillIdentity(), TLocClustStat::FindBestCut(), TAGMUtil::FindComsByAGM(), TUniChDb::FindNextSentenceBoundary(), TUniChDb::FindNextWordBoundary(), TKronNoise::FlipEdgeNoise(), TFInOut::Flush(), TStr::FromHex(), TSpecFunc::GammaPSeries(), TSpecFunc::GammaQ(), TSpecFunc::GammaQContFrac(), TVec< TFlt, TSizeTy >::Gen(), TMAGParam< TNodeAttr >::GenAttrMAG(), TNIBs::GenCascade(), TSnap::GenDegSeq(), TFfGGen::GenFFGraphs(), TMAGParam< TNodeAttr >::GenMAG(), TSnap::GenRewire(), TSnap::GenRMat(), TSnap::GenRndDegK(), TSnap::GenRndGnm(), TSnap::GenSmallWorld(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), TKronMtx::GetApxNoEdgeDLL(), TEnv::GetArg(), TEnv::GetArgPostfix(), TMAGAffMtx::GetAvgAbsErr(), TKronMtx::GetAvgAbsErr(), TMAGAffMtx::GetAvgFroErr(), TKronMtx::GetAvgFroErr(), TMAGNodeBeta::GetBeta(), TFInOut::GetBf(), TB1Def::GetBit(), TLocClustStat::GetBoltzmanCurveStat(), TXmlTok::GetBoolArgVal(), TUniChDb::GetCaseConverted(), TMOut::GetCh(), THtmlLxChDef::GetChDef(), THtmlLxChDef::GetChDefRef(), TSnap::GetClustCf(), TSnap::GetCmnNbrs< PUNGraph >(), TAGMFast::GetCmtyVV(), TAGMFit::GetCmtyVV(), TCesna::GetCmtyVV(), TMOut::GetCrLfLn(), TDir::GetCurDir(), TSecTm::GetCurTm(), TLocClustStat::GetCurveStat(), TSecTm::GetDayN(), TSecTm::GetDayOfWeekN(), TTmInfo::GetDayOfWeekNm(), TSecTm::GetDayOfWeekNm(), TSecTm::GetDSecs(), TSecTm::GetDtMdyStr(), TSecTm::GetDtStr(), TSecTm::GetDtTmFromStr(), TSecTm::GetDtYmdStr(), TAGMFit::GetEdgeJointCom(), TNGraphMP::GetEI(), TUNGraph::GetEI(), TNGraph::GetEI(), TUndirNet::GetEI(), TDirNet::GetEI(), TSnap::GetEigenVectorCentr(), TMOut::GetEolnLn(), TSnap::GetESubGraph(), TDir::GetExeDir(), TZipIn::GetFLen(), TSsParserMP::GetFlt(), TSsParser::GetFlt(), TStr::GetFlt(), TLocClustStat::TCutInfo::GetFracDegOut(), THtmlLx::GetFullBTagStr(), TGraphAnf< PGraph >::GetGraphAnf(), TCoda::GetGraphRawNID(), TTimeNENet::GetGraphUpToTm(), TFRnd::GetHd(), TStr::GetHexInt(), TStr::GetHexInt64(), TSecTm::GetHourN(), TILx::GetIdStr(), TInt::GetInRng(), TFlt::GetInRng(), TStr::GetInt64(), TSecTm::GetInUnits(), TJulianDate::GetJulianDateN(), TSnap::GetMaxFlowIntEK(), TSnap::GetMaxFlowIntPR(), TGraphEnumUtils::GetMinAndGraphIds(), TSecTm::GetMinN(), TSecTm::GetMonthN(), TTmInfo::GetMonthNm(), TSecTm::GetMonthNm(), TMAGAffMtx::GetMtx(), TKronMtx::GetMtx(), TBigNet< TNodeData, IsDir >::GetNGraph(), TGraphAnf< PGraph >::GetNodeAnf(), TGHash< TDat >::GetNodeMap(), TStr::GetNrAbsFPath(), GetNthFeature(), TB1Def::GetP2(), TB2Def::GetP2(), TB4Def::GetP2(), TSpecFunc::GetPowerCoef(), TRnd::GetPowerDev(), TTimeNENet::GetPrefAttach(), TILx::GetQStr(), TRnd::GetRayleigh(), TFRnd::GetRec(), TFRnd::GetRecN(), TFRnd::GetRecs(), TSnap::GetRndESubGraph(), THash< TKey, TDat, THashFunc >::GetRndKeyId(), THashSet< TInt >::GetRndKeyId(), TBreathFS< PGraph >::GetRndPath(), TSnap::GetRndSubGraph(), TSecTm::GetSecN(), TMd5::GetSigMem(), TMd5::GetSigStr(), TUniChDb::GetSimpleCaseConverted(), TILx::GetSIn(), TMOut::GetSIn(), TFInOut::GetSize(), TSnap::GetSngVals(), TLogRegFit::GetStepSizeByLineSearch(), TAGMFit::GetStepSizeByLineSearchForLambda(), TCesna::GetStepSizeByLineSearchForWK(), TSecTm::GetStr(), TILx::GetStr(), TILx::GetSym(), TXmlTok::GetTagNm(), TXmlDoc::GetTagValV(), TTm::GetTmFromIdStr(), TSecTm::GetTmMinStr(), TSecTm::GetTmStr(), TXmlDoc::GetTok(), TSnap::GetTreeSig(), TSnap::GetTriads_v0(), TStr::GetUInt(), TSsParser::GetUInt64(), TStr::GetUInt64(), TRnd::GetUniDevInt(), TMom::GetVal(), TGStat::GetValStr(), TStr::GetWcMatch(), TRnd::GetWeibull(), TUStr::GetWordUStrV(), TSecTm::GetYearN(), TSecTm::GetYmdTmStr(), TSecTm::GetYmdTmStr2(), TCoda::GradientForNode(), TAGMFast::GradientForOneVar(), TAGMFast::GradientForRow(), TCesna::GradientForRow(), TLinAlg::GS(), TAGMUtil::GVizComGraph(), TSnap::TSnapDetail::GVizDoLayout(), TAGMFast::HessianForOneVar(), TForestFire::InfectRnd(), TUniChDb::InitAfterLoad(), TGraphAnf< PGraph >::InitAnfBits(), TTmInfo::InitDayOfWeekNmV(), TUniChDb::InitDerivedCoreProperties(), TUniChDb::InitLineBreaks(), TKroneckerLL::InitLL(), TTmInfo::InitMonthNmV(), TUniChDb::InitPropList(), TUniChDb::InitScripts(), TUniChDb::InitSpecialCasing(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TMath::InRange(), TStr::InsStr(), TMath::Inv(), TNumericalStuff::InverseSubstitute(), TNumericalStuff::InverseSymetric(), TNumericalStuff::InverseTriagonal(), TBigNet< TNodeData, IsDir >::InvertFromSources(), TGHash< TDat >::IsGetKeyId(), TMath::IsInRange(), TKroneckerLL::IsObsEdge(), TKroneckerLL::IsObsNode(), TBigNet< TNodeData, IsDir >::IsolateNode(), TGnuPlot::IsSameXCol(), IsSimilarFeature(), TXmlDoc::IsTagTok(), TSimpleGraph::Join(), TStatTest::KsTest(), TSparseSVD::Lanczos(), TSparseSVD::Lanczos2(), TAGMFit::Likelihood(), TAGMFast::LikelihoodForOneVar(), TCesna::LikelihoodHoldOut(), TTimeNet::LoadArxiv(), TTimeNet::LoadBipartite(), TSnap::LoadDyNet(), TSnap::LoadDyNetGraphV(), TAGMUtil::LoadEdgeListStr(), TTimeNENet::LoadEdgeTm(), TInt::LoadFrugalIntV(), TNIBs::LoadInferredNodesTxt(), TNIBs::LoadInferredTxt(), TLAMisc::LoadMatlabTFltVV(), TTimeNet::LoadPatents(), TBigStrPool::LoadPoolShM(), TKronMtx::LoadTxt(), TWChA::LoadTxt(), TUniCaseFolding::LoadTxt(), TUniChDb::LoadTxt(), TUniChDb::LoadTxt_ProcessDecomposition(), TMAGFitBern::MakeCCDF(), TGnuPlot::MakeExpBins(), THash< TKey, TDat, THashFunc >::MarkDelKey(), THashSet< TKey, THashFunc >::MarkDelKey(), TAGMFast::MLEGradAscent(), TCoda::MLEGradAscent(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TFInOut::MovePos(), TAGMFast::NeighborComInit(), TAGMFit::NeighborComInit(), TLinReg::New(), TSvd::New(), TKroneckerLL::NodeDLLDelta(), TKroneckerLL::NodeLLDelta(), TSecTm::operator+=(), TSecTm::operator-=(), TSecTm::operator<(), TBigStrPool::operator=(), TStrPool64::operator=(), TVecPool< TVal, TSizeTy >::operator=(), TGLib_OLD::TVecPool< TVal >::operator=(), TVec< TVal, TSizeTy >::Pack(), TTimeNet::PlotCCfOverTm(), TTimeNet::PlotMedianDegOverTm(), TLocClustStat::PlotPhiDistr(), TLocClustStat::PlotPhiInOut(), TMem::Pop(), TChA::Pop(), TQQueue< TInt >::Pop(), TSnap::TPRManager::PopActive(), THeap< TVal, TCmp >::PopHeap(), TUniChDb::TSubcatHelper::ProcessComment(), TFInOut::PutBf(), TFRnd::PutHd(), TFRnd::PutRec(), TVecPool< TInt >::PutV(), TGLib_OLD::TVecPool< TVal >::PutV(), TEnv::PutVarVal(), TKronNoise::RemoveEdgeNoise(), TKronNoise::RemoveNodeNoise(), TVec< TFlt, TSizeTy >::Reserve(), TMem::Resize(), TChA::Resize(), TVec< TVal, TSizeTy >::Resize(), TMOut::Resize(), TBigStrPool::Resize(), TStrPool64::Resize(), TVecPool< TVal, TSizeTy >::Resize(), TGLib_OLD::TVecPool< TVal >::Resize(), TBigNet< TNodeData, IsDir >::Rewire(), TAGMUtil::RewireCmtyNID(), TSecTm::Round(), TLocClustStat::Run(), TLst< TVal >::Save(), TSecTm::SaveTxt(), TAGMFit::SeekJoin(), TAGMFit::SeekLeave(), TAGMFit::SeekSwitch(), TAGMFit::SelectLambdaSum(), TMAGNodeBeta::SetBeta(), TMAGNodeBeta::SetBetaV(), TUniChDb::TSubcatHelper::SetCat(), TXmlChDef::SetChTy(), THttpChDef::SetChTy(), TCoda::SetCmtyVV(), TAGMFit::SetCmtyVV(), TAGMFast::SetGraph(), TCoda::SetGraph(), TKroneckerLL::SetGraph(), TCesna::SetGraph(), TMAGFitBern::SetGraph(), TMAGNodeBern::SetMu(), TTimeNENet::SetNodeTmToFirstEdgeTm(), TStrHash< TInt, TBigStrPool >::SetPool(), TFInOut::SetPos(), TFRnd::SetRecN(), THtmlLxChDef::SetUcCh(), TCesna::SetWeightAttr(), TSparseSVD::SimpleLanczos(), TNumericalStuff::SolveSymetricSystem(), TBigNet< TNodeData, IsDir >::SortEdgeV(), TMath::Sqrt(), TSecTm::SubDays(), TSecTm::SubHours(), TSecTm::SubMins(), TSecTm::SubSecs(), TSecTm::SubWeeks(), TLocClust::SupportSweep(), TBigNet< TNodeData, IsDir >::TBigNet(), TBigStrPool::TBigStrPool(), TBlobPt::TBlobPt(), TComb::TComb(), TCorr::TCorr(), TD34GraphCounter::TD34GraphCounter(), TUniCaseFolding::Test(), T8BitCodec< TEncoding_ISO8859_3 >::Test(), TUniChDb::TestCaseConversion(), TUniChDb::TSubcatHelper::TestCat(), TUniChDb::TestComposition(), TUniCodec::TestDecodeUtf16(), TUniCodec::TestDecodeUtf8(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TUniChDb::TestWbFindNonIgnored(), TFInOut::TFInOut(), TGnuPlot::TGnuPlot(), TGraphAnf< PGraph >::TGraphAnf(), TKronMtx::TKronMtx(), TMAGAffMtx::TMAGAffMtx(), TMAGNodeBern::TMAGNodeBern(), TMAGNodeBeta::TMAGNodeBeta(), TMAGNodeSimple::TMAGNodeSimple(), TMem::TMem(), TNcpGraphsBase::TNcpGraphsBase(), TLocClustStat::TNodeSweep::TNodeSweep(), TKronMtx::ToOneMinusMtx(), TBreathFS< PGraph >::TopDownStep(), TUniChDb::ToSimpleCaseConverted(), TLAMisc::ToSpVec(), TPreproc::TPreproc(), TSnap::TPRManager::TPRManager(), TMd5::Transform(), TRStr::TRStr(), TVec< TVal, TSizeTy >::Trunc(), TSparseRowMatrix::TSparseRowMatrix(), TStrPool64::TStrPool64(), TVec< TFlt, TSizeTy >::TVec(), TVecPool< TVal, TSizeTy >::TVecPool(), TGLib_OLD::TVecPool< TVal >::TVecPool(), TVVec< TFlt >::TVVec(), TMAGFitBern::UpdateApxPhiMI(), TNIBs::UpdateDiff(), TMAGFitBern::UpdatePhiMI(), TBigStrPool::~TBigStrPool(), and TFInOut::~TFInOut().

#define IAssertR (   Cond,
  Reason 
)    ((Cond) ? static_cast<void>(0) : ExeStop(NULL, TStr(Reason).CStr(), #Cond, __FILE__, __LINE__))

Definition at line 265 of file bd.h.

Referenced by TNGraphMP::AddEdge(), TNodeNet< TNodeData >::AddEdge(), TUNGraph::AddEdge(), TNEANetMP::AddEdge(), TNGraph::AddEdge(), TNodeEDatNet< TNodeData, TEdgeData >::AddEdge(), TNEGraph::AddEdge(), TBPGraph::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNEANet::AddEdge(), TUndirNet::AddEdge(), TDirNet::AddEdge(), TNEANet::AddIntVAttrDatE(), TNEANet::AddIntVAttrDatN(), TBigNet< TNodeData, IsDir >::AddNode(), TNGraphMP::AddNode(), TNodeNet< TNodeData >::AddNode(), TUNGraph::AddNode(), TNEANetMP::AddNode(), TNGraph::AddNode(), TNodeEDatNet< TNodeData, TEdgeData >::AddNode(), TNEGraph::AddNode(), TBPGraph::AddNode(), TNodeEdgeNet< TNodeData, TEdgeData >::AddNode(), TNEANet::AddNode(), TUndirNet::AddNode(), TDirNet::AddNode(), TBigNet< TNodeData, IsDir >::AddSorted(), TBigStrPool::AddStr(), TStrPool::AddStr(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TNEANet::AppendIntVAttrDatE(), TNEANet::AppendIntVAttrDatN(), TVec< TVal, TSizeTy >::Clr(), TMMNet::DelCrossNet(), TNGraphMP::DelEdge(), TNodeNet< TNodeData >::DelEdge(), TUNGraph::DelEdge(), TNGraph::DelEdge(), TNodeEDatNet< TNodeData, TEdgeData >::DelEdge(), TBPGraph::DelEdge(), TUndirNet::DelEdge(), TDirNet::DelEdge(), THashSet< TKey, THashFunc >::DelKey(), TMMNet::DelModeNet(), TBPGraph::DelNode(), TLinAlg::DotProduct(), TSnap::GenDegSeq(), TSnap::GenRndBipart(), TSnap::GenRndGnm(), TSnap::GenSmallWorld(), TBPGraph::GetEI(), TSsParserMP::GetInt(), TSsParser::GetInt(), TStr::GetInt(), TMaxPriorityQueue< TVal >::GetMaxPriority(), TGraphAnf< PGraph >::InitAnfBits(), TSparseSVD::Lanczos(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TMAGNodeSimple::LoadTxt(), TKronMtx::LoadTxt(), TMAGNodeBern::LoadTxt(), TMAGNodeBeta::LoadTxt(), TUniChDb::LoadTxt(), THash< TKey, TDat, THashFunc >::MarkDelKey(), THashSet< TKey, THashFunc >::MarkDelKey(), TVec< TVal, TSizeTy >::Merge(), TKroneckerLL::MetroGibbsSampleNext(), TAGMFast::MLENewton(), TUniChDb::TUcdFileReader::Open(), TGStat::TCmpByVal::operator()(), TStrPool::operator=(), TVec< TVal, TSizeTy >::Pack(), TUniChDb::TUcdFileReader::ParseCodePoint(), TUniChDb::TUcdFileReader::ParseCodePointList(), TLocClustStat::PlotNCPScatter(), TMaxPriorityQueue< TVal >::PopMax(), TAGMFast::Prediction(), TCoda::Prediction(), TCesna::Prediction(), TVec< TVal, TSizeTy >::Resize(), TBigStrPool::Resize(), TStrPool::Resize(), TStrPool64::Resize(), TBigNet< TNodeData, IsDir >::Rewire(), TInt::SaveFrugalInt(), TNodeEDatNet< TNodeData, TEdgeData >::SetEDat(), TNodeEdgeNet< TNodeData, TEdgeData >::SetEDat(), TNodeNet< TNodeData >::SetNDat(), TNodeEDatNet< TNodeData, TEdgeData >::SetNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::SetNDat(), THash< TKey, TDat, THashFunc >::Sort(), TNumericalStuff::SymetricToTridiag(), TBigNet< TNodeData, IsDir >::TBigNet(), TFullColMatrix::TFullColMatrix(), TVec< TVal, TSizeTy >::Trunc(), TStrPool::TStrPool(), TVecPool< TVal, TSizeTy >::TVecPool(), and TStrPool::~TStrPool().

#define SAssert (   Cond)    ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, #Cond, __FILE__, __LINE__))

Definition at line 271 of file bd.h.

#define UndefAssign (   TNm)
Value:
private: \
TNm& operator=(const TNm&)

Definition at line 218 of file bd.h.

#define UndefCopy (   TNm)
Value:
private: \
TNm(const TNm&)

Definition at line 214 of file bd.h.

#define UndefCopyAssign (   TNm)
Value:
private: \
TNm(const TNm&); \
TNm& operator=(const TNm&)

Definition at line 209 of file bd.h.

#define UndefDefaultCopyAssign (   TNm)
Value:
private: \
TNm(){} \
TNm(const TNm&); \
TNm& operator=(const TNm&)

Definition at line 203 of file bd.h.

#define WAssert (   Cond,
  MsgCStr 
)    ((Cond) ? static_cast<void>(0) : WarnNotify(MsgCStr))

Definition at line 268 of file bd.h.

#define XSaveBETag (   Nm)
Value:
TStr _TypeNm=TXmlObjSer::GetTagNm(TStr(typeid(*this).name())); \
TXmlObjSerTagNm XmlObjSerTagNm(SOut, true, Nm, _TypeNm);
static TStr GetTagNm(const TStr &TypeNm)
Definition: xml.cpp:5
Definition: dt.h:412

Definition at line 324 of file bd.h.

Referenced by TStr::SaveXml(), and TVoid::SaveXml().

#define XSaveBETagArg (   Nm,
  ArgNm,
  ArgVal 
)
Value:
TStr _TypeNm=TXmlObjSer::GetTagNm(TStr(typeid(*this).name())); \
TXmlObjSerTagNm XmlObjSerTagNm(SOut, true, Nm, _TypeNm, ArgNm, ArgVal);
static TStr GetTagNm(const TStr &TypeNm)
Definition: xml.cpp:5
Definition: dt.h:412

Definition at line 327 of file bd.h.

Referenced by TRnd::SaveXml(), TPt< TRec >::SaveXml(), TBool::SaveXml(), TCh::SaveXml(), TUCh::SaveXml(), TInt::SaveXml(), TUInt::SaveXml(), TUInt64::SaveXml(), TFlt::SaveXml(), TSFlt::SaveXml(), and TLFlt::SaveXml().

#define XSaveBETagArg4 (   Nm,
  ArgNm1,
  ArgVal1,
  ArgNm2,
  ArgVal2,
  ArgNm3,
  ArgVal3,
  ArgNm4,
  ArgVal4 
)
Value:
TStr _TypeNm=TXmlObjSer::GetTagNm(TStr(typeid(*this).name())); \
TXmlObjSerTagNm XmlObjSerTagNm(SOut, true, Nm, _TypeNm, ArgNm1, ArgVal1, ArgNm2, ArgVal2, ArgNm3, ArgVal3, ArgNm4, ArgVal4);
static TStr GetTagNm(const TStr &TypeNm)
Definition: xml.cpp:5
Definition: dt.h:412

Definition at line 330 of file bd.h.

Referenced by TFltRect::SaveXml().

#define XSaveHd (   Nm)
#define XSaveHdArg (   Nm,
  ArgNm,
  ArgVal 
)
Value:
TStr _TypeNm=TXmlObjSer::GetTagNm(TStr(typeid(*this).name())); \
TXmlObjSerTagNm XmlObjSerTagNm(SOut, false, Nm, _TypeNm, ArgNm, ArgVal);
static TStr GetTagNm(const TStr &TypeNm)
Definition: xml.cpp:5
Definition: dt.h:412

Definition at line 321 of file bd.h.

Referenced by TMem::SaveXml(), TChA::SaveXml(), TPt< TRec >::SaveXml(), and TVec< TVal, TSizeTy >::SaveXml().

#define XSaveToFile (   Nm,
  FNm 
)    {TFOut SOut(FNm); Nm.SaveXml(SOut, #Nm);}

Definition at line 335 of file bd.h.

Typedef Documentation

typedef short int16

Definition at line 20 of file bd.h.

typedef int int32

Definition at line 21 of file bd.h.

typedef long long int64

Definition at line 27 of file bd.h.

typedef char int8

Definition at line 19 of file bd.h.

typedef long double ldouble

Definition at line 16 of file bd.h.

typedef TPt< TExcept > PExcept

Definition at line 198 of file bd.h.

typedef TPt< TXmlDoc > PXmlDoc

Definition at line 199 of file bd.h.

typedef TPt< TXmlTok > PXmlTok

Definition at line 197 of file bd.h.

typedef float sdouble

Definition at line 15 of file bd.h.

typedef ptrdiff_t ssize_t

Definition at line 42 of file bd.h.

typedef FILE* TFileId

Definition at line 17 of file bd.h.

Definition at line 605 of file bd.h.

typedef size_t TSize

Definition at line 58 of file bd.h.

typedef unsigned char uchar

Definition at line 10 of file bd.h.

typedef unsigned int uint

Definition at line 11 of file bd.h.

typedef unsigned short uint16

Definition at line 31 of file bd.h.

typedef unsigned int uint32

Definition at line 32 of file bd.h.

typedef unsigned long long uint64

Definition at line 38 of file bd.h.

typedef unsigned char uint8

Definition at line 30 of file bd.h.

typedef unsigned long ulong

Definition at line 12 of file bd.h.

typedef unsigned short ushort

Definition at line 13 of file bd.h.

Enumeration Type Documentation

enum TLoc
Enumerator
lUndef 
lUs 
lSi 

Definition at line 63 of file bd.h.

63 {lUndef, lUs, lSi} TLoc;
Definition: bd.h:63
TLoc
Definition: bd.h:63
Definition: bd.h:63
Definition: bd.h:63
enum TLogOp
Enumerator
loUndef 
loNot 
loAnd 
loOr 

Definition at line 340 of file bd.h.

Definition: bd.h:340
Definition: bd.h:340
Definition: bd.h:340
TLogOp
Definition: bd.h:340
Definition: bd.h:340
enum TRelOp
Enumerator
roUndef 
roLs 
roLEq 
roEq 
roNEq 
roGEq 
roGt 

Definition at line 341 of file bd.h.

Definition: bd.h:341
TRelOp
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341

Function Documentation

template<class TRec >
bool Cmp ( const int &  RelOp,
const TRec &  Rec1,
const TRec &  Rec2 
)

Definition at line 426 of file bd.h.

References Fail, roEq, roGEq, roGt, roLEq, roLs, and roNEq.

Referenced by THeap< TVal, TCmp >::AdjustHeap(), TVec< TFlt, TSizeTy >::BSortCmp(), TRowIterator::CompareAtomicConst(), TRowIteratorWithRemove::CompareAtomicConst(), TVec< TFlt, TSizeTy >::GetPivotValNCmp(), TVec< TFlt, TSizeTy >::ISortCmp(), TVec< TFlt, TSizeTy >::IsSortedCmp(), TVec< TFlt, TSizeTy >::PartitionCmp(), THeap< TVal, TCmp >::PushHeap(), and TTable::SelectAtomic().

426  {
427  switch (RelOp){
428  case roLs: return Rec1<Rec2;
429  case roLEq: return Rec1<=Rec2;
430  case roEq: return Rec1==Rec2;
431  case roNEq: return Rec1!=Rec2;
432  case roGEq: return Rec1>=Rec2;
433  case roGt: return Rec1>Rec2;
434  default: Fail; return false;
435  }
436 }
Definition: bd.h:341
#define Fail
Definition: bd.h:238
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341
Definition: bd.h:341

Here is the caller graph for this function:

void ErrNotify ( const char *  NotifyCStr)
inline

Definition at line 74 of file bd.h.

References WrNotify().

Referenced by TNotify::DfOnNotify(), ExeStop(), TNGraphMP::IsOk(), TNodeNet< TNodeData >::IsOk(), TUNGraph::IsOk(), TNEANetMP::IsOk(), TNGraph::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNEGraph::IsOk(), TBPGraph::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNEANet::IsOk(), TUndirNet::IsOk(), and TDirNet::IsOk().

74  {
75  WrNotify("Error", NotifyCStr);}
void WrNotify(const char *CaptionCStr, const char *NotifyCStr)
Definition: bd.cpp:41

Here is the call graph for this function:

Here is the caller graph for this function:

void ExeStop ( const char *  MsgStr,
const char *  ReasonStr,
const char *  CondStr,
const char *  FNm,
const int &  LnN 
)

Definition at line 88 of file bd.cpp.

References ErrNotify(), TOnExeStop::GetOnExeStopF(), TOnExeStop::IsOnExeStopF(), SaveToErrLog(), and TExcept::Throw().

90  {
91  char ReasonMsgCStr[1000];
92 
93 #if SW_TRACE
94  PrintBacktrace();
95  Crash();
96 #endif
97 
98  // construct reason message
99  if (ReasonCStr==NULL){ReasonMsgCStr[0]=0;}
100  else {sprintf(ReasonMsgCStr, " [Reason:'%s']", ReasonCStr);}
101  // construct full message
102  char FullMsgCStr[1000];
103  if (MsgCStr==NULL){
104  if (CondCStr==NULL){
105  sprintf(FullMsgCStr, "Execution stopped%s!", ReasonMsgCStr);
106  } else {
107  sprintf(FullMsgCStr, "Execution stopped: %s%s, file %s, line %d",
108  CondCStr, ReasonMsgCStr, FNm, LnN);
109  }
110  } else {
111  if (CondCStr==NULL){
112  sprintf(FullMsgCStr, "%s\nExecution stopped!", MsgCStr);
113  } else {
114  sprintf(FullMsgCStr, "Message: %s%s\nExecution stopped: %s, file %s, line %d",
115  MsgCStr, ReasonMsgCStr, CondCStr, FNm, LnN);
116  }
117  }
118  // report full message to log file
119  SaveToErrLog(FullMsgCStr);
120 
121 #if defined(SW_NOABORT)
122  TExcept::Throw(FullMsgCStr);
123 #endif
124 
125  // report to screen & stop execution
126  bool Continue=false;
127  // call handler
129  Continue=!((*TOnExeStop::GetOnExeStopF())(FullMsgCStr));}
130  if (!Continue){
131  ErrNotify(FullMsgCStr);
132 #ifdef GLib_WIN32
133  abort();
134  //ExitProcess(1);
135 #else
136  exit(1);
137 #endif
138  }
139 }
void ErrNotify(const char *NotifyCStr)
Definition: bd.h:74
static void Throw(const TStr &MsgStr)
Definition: ut.h:187
void SaveToErrLog(const char *MsgCStr)
Definition: bd.cpp:49
static bool IsOnExeStopF()
Definition: bd.h:229
static TOnExeStopF GetOnExeStopF()
Definition: bd.h:231

Here is the call graph for this function:

void InfoNotify ( const char *  NotifyCStr)
inline

Definition at line 70 of file bd.h.

References WrNotify().

Referenced by TNotify::DfOnNotify().

70  {
71  WrNotify("Information", NotifyCStr);}
void WrNotify(const char *CaptionCStr, const char *NotifyCStr)
Definition: bd.cpp:41

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TRec >
bool IsXLoadFromFileOk ( const TStr FNm,
const TStr Nm,
TRec &  Rec,
TStr MsgStr 
)

Definition at line 45 of file xmlser.h.

References TXmlDoc::LoadTxt(), and TPt< TRec >::LoadXml().

Referenced by XLoadFromFile().

45  {
46  bool Ok=true;
47  try {
48  PXmlDoc XmlDoc=TXmlDoc::LoadTxt(FNm);
49  if (XmlDoc->IsOk()){
50  PXmlTok XmlTok=XmlDoc->GetTok();
51  Rec.LoadXml(XmlTok, Nm);
52  } else {
53  Ok=false; MsgStr=XmlDoc->GetMsgStr();
54  }
55  }
56  catch (PExcept Except){
57  Ok=false; MsgStr=Except->GetMsgStr();
58  }
59  return Ok;
60 }
static PXmlDoc LoadTxt(TXmlLx &Lx)
Definition: xml.cpp:1401
Definition: bd.h:196
void LoadXml(const TPt< TXmlTok > &XmlTok, const TStr &Nm)
Definition: xmlser.h:21

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TRec >
bool operator!= ( const TRec &  Rec1,
const TRec &  Rec2 
)

Definition at line 414 of file bd.h.

414 {return !(Rec1==Rec2);}
template<class TRec >
bool operator<= ( const TRec &  Rec1,
const TRec &  Rec2 
)

Definition at line 420 of file bd.h.

420 {return !(Rec2<Rec1);}
template<class TRec >
bool operator> ( const TRec &  Rec1,
const TRec &  Rec2 
)

Definition at line 417 of file bd.h.

417 {return Rec2<Rec1;}
template<class TRec >
bool operator>= ( const TRec &  Rec1,
const TRec &  Rec2 
)

Definition at line 423 of file bd.h.

423 {return !(Rec1<Rec2);}
void SaveToErrLog ( const char *  MsgCStr)

Definition at line 49 of file bd.cpp.

Referenced by ExeStop(), and TZipIn::GetFLen().

49  {
50  int MxFNmLen=1000;
51  char* FNm=new char[MxFNmLen]; if (FNm==NULL){return;}
52  int FNmLen=GetModuleFileName(NULL, FNm, MxFNmLen); if (FNmLen==0){return;}
53  FNm[FNmLen++]='.'; FNm[FNmLen++]='E'; FNm[FNmLen++]='r'; FNm[FNmLen++]='r';
54  FNm[FNmLen++]=char(0);
55  time_t Time=time(NULL);
56  FILE* fOut=fopen(FNm, "a+b"); if (fOut==NULL){return;}
57  fprintf(fOut, "--------\r\n%s\r\n%s%s\r\n--------\r\n",
58  FNm, ctime(&Time), MsgCStr);
59  fclose(fOut);
60  delete[] FNm;
61 }

Here is the caller graph for this function:

void StatNotify ( const char *  NotifyCStr)
inline

Definition at line 76 of file bd.h.

References WrNotify().

Referenced by TNotify::DfOnNotify().

76  {
77  WrNotify("Status", NotifyCStr);}
void WrNotify(const char *CaptionCStr, const char *NotifyCStr)
Definition: bd.cpp:41

Here is the call graph for this function:

Here is the caller graph for this function:

void WarnNotify ( const char *  NotifyCStr)
inline

Definition at line 72 of file bd.h.

References WrNotify().

Referenced by TNotify::DfOnNotify().

72  {
73  WrNotify("Warning", NotifyCStr);}
void WrNotify(const char *CaptionCStr, const char *NotifyCStr)
Definition: bd.cpp:41

Here is the call graph for this function:

Here is the caller graph for this function:

void WrNotify ( const char *  CaptionCStr,
const char *  NotifyCStr 
)

Definition at line 41 of file bd.cpp.

Referenced by ErrNotify(), TZipIn::GetFLen(), InfoNotify(), StatNotify(), and WarnNotify().

41  {
42 #if defined(__CONSOLE__) || defined(_CONSOLE)
43  printf("*** %s: %s\n", CaptionCStr, NotifyCStr);
44 #else
45  MessageBox(NULL, NotifyCStr, CaptionCStr, MB_OK);
46 #endif
47 }

Here is the caller graph for this function:

template<class TRec >
void XLoadFromFile ( const TStr FNm,
const TStr Nm,
TRec &  Rec 
)

Definition at line 63 of file xmlser.h.

References IsXLoadFromFileOk(), and TExcept::Throw().

63  {
64  TStr MsgStr;
65  if (!IsXLoadFromFileOk(FNm, Nm, Rec, MsgStr)){
66  TExcept::Throw(MsgStr);
67  }
68 }
static void Throw(const TStr &MsgStr)
Definition: ut.h:187
Definition: dt.h:412
bool IsXLoadFromFileOk(const TStr &FNm, const TStr &Nm, TRec &Rec, TStr &MsgStr)
Definition: xmlser.h:45

Here is the call graph for this function: