SNAP Library 6.0, User Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
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< TXmlTok > | PXmlTok |
typedef TPt< TExcept > | PExcept |
typedef TPt< TXmlDoc > | PXmlDoc |
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) |
#define Assert | ( | Cond | ) | ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__)) |
#define AssertR | ( | Cond, | |
Reason | |||
) |
#define CAssert | ( | Cond | ) | /* typedef TStaticAssertTest<sizeof(TStaticAssert<(Cond)==0?false:true>)> TestStaticAssert; */ |
#define ClassHdTP | ( | TNm, | |
PNm | |||
) |
#define ClassHdTPV | ( | TNm, | |
PNm, | |||
TNmV | |||
) |
#define ClassTE | ( | TNm, | |
ENm | |||
) |
#define ClassTP | ( | TNm, | |
PNm | |||
) |
#define ClassTPE | ( | TNm, | |
PNm, | |||
ENm | |||
) |
#define ClassTPEE | ( | TNm, | |
PNm, | |||
ENm1, | |||
ENm2 | |||
) |
#define ClassTPV | ( | TNm, | |
PNm, | |||
TNmV | |||
) |
#define ClassTPVL | ( | TNm, | |
PNm, | |||
TNmV, | |||
TNmL, | |||
TNmLN | |||
) |
#define ClassTV | ( | TNm, | |
TNmV | |||
) |
#define ClassTVQ | ( | TNm, | |
TNmV, | |||
TNmQ | |||
) |
#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 EFail TExcept::ThrowFull("", TStr("[")+ TStr(__FILE__) + " line " + TInt::GetStr(__LINE__) + "]") |
#define EFailR | ( | Reason | ) | TExcept::ThrowFull(Reason, TStr("[")+TStr(__FILE__)+" line "+TInt::GetStr(__LINE__)+"]") |
#define ESAssert | ( | Cond | ) |
#define FailR | ( | Reason | ) | ExeStop((Reason), NULL, "Fail", __FILE__, __LINE__) |
#define FSAssert | ( | Cond | ) | ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, NULL, __FILE__, __LINE__)) |
#define IAssert | ( | Cond | ) | ((Cond) ? static_cast<void>(0) : ExeStop(NULL, NULL, #Cond, __FILE__, __LINE__)) |
#define SAssert | ( | Cond | ) | ((Cond) ? static_cast<void>(0) : ExeStop(TSysStr::GetLastMsgCStr(), NULL, #Cond, __FILE__, __LINE__)) |
#define UndefAssign | ( | TNm | ) |
#define UndefCopyAssign | ( | TNm | ) |
#define UndefDefaultCopyAssign | ( | TNm | ) |
#define WAssert | ( | Cond, | |
MsgCStr | |||
) | ((Cond) ? static_cast<void>(0) : WarnNotify(MsgCStr)) |
#define XLoadHd | ( | Nm | ) |
#define XSaveBETag | ( | Nm | ) |
#define XSaveBETagArg | ( | Nm, | |
ArgNm, | |||
ArgVal | |||
) |
#define XSaveBETagArg4 | ( | Nm, | |
ArgNm1, | |||
ArgVal1, | |||
ArgNm2, | |||
ArgVal2, | |||
ArgNm3, | |||
ArgVal3, | |||
ArgNm4, | |||
ArgVal4 | |||
) |
#define XSaveHd | ( | Nm | ) |
#define XSaveHdArg | ( | Nm, | |
ArgNm, | |||
ArgVal | |||
) |
#define XSaveToFile | ( | Nm, | |
FNm | |||
) | {TFOut SOut(FNm); Nm.SaveXml(SOut, #Nm);} |
typedef TPairHashImpl2 TPairHashImpl |
enum TLoc |
enum TLogOp |
enum TRelOp |
bool Cmp | ( | const int & | RelOp, |
const TRec & | Rec1, | ||
const TRec & | Rec2 | ||
) |
|
inline |
void ExeStop | ( | const char * | MsgStr, |
const char * | ReasonStr, | ||
const char * | CondStr, | ||
const char * | FNm, | ||
const int & | LnN | ||
) |
|
inline |
bool IsXLoadFromFileOk | ( | const TStr & | FNm, |
const TStr & | Nm, | ||
TRec & | Rec, | ||
TStr & | MsgStr | ||
) |
bool operator!= | ( | const TRec & | Rec1, |
const TRec & | Rec2 | ||
) |
bool operator<= | ( | const TRec & | Rec1, |
const TRec & | Rec2 | ||
) |
bool operator> | ( | const TRec & | Rec1, |
const TRec & | Rec2 | ||
) |
bool operator>= | ( | const TRec & | Rec1, |
const TRec & | Rec2 | ||
) |
|
inline |
void Swap | ( | TRec & | Rec1, |
TRec & | Rec2 | ||
) |
|
inline |
void WrNotify | ( | const char * | CaptionCStr, |
const char * | NotifyCStr | ||
) |
Definition at line 63 of file xmlser.h.