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
ut.h File Reference
#include "bd.h"
Include dependency graph for ut.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TTypeNm< Type >
 
class  TNotify
 
class  TNullNotify
 
class  TCallbackNotify
 
class  TNativeCallbackNotify
 
class  TStdNotify
 
class  TStdErrNotify
 
class  TLogNotify
 
class  TExcept
 

Macros

#define Try   try {
 
#define Catch   } catch (PExcept Except){ErrNotify(Except->GetMsgStr());}
 
#define CatchFull   } catch (PExcept Except){ErrNotify(Except->GetStr());}
 
#define CatchAll   } catch (...){}
 

Typedefs

typedef enum TNotifyType_ TNotifyType
 
typedef TPt< TNotifyPNotify
 
typedef void(__stdcall * TCallbackF )(const TNotifyType &Type, const TStr &MsgStr)
 
typedef void(__stdcall * TNativeCallbackF )(int Type, const char *MsgStr)
 
typedef TPt< TExceptPExcept
 

Enumerations

enum  TNotifyType_ { ntInfo, ntWarn, ntErr, ntStat }
 

Functions

template<class Type >
TStr GetTypeNm (const Type &Var)
 
void InfoNotify (const TStr &MsgStr)
 
void WarnNotify (const TStr &MsgStr)
 
void ErrNotify (const TStr &MsgStr)
 
void StatNotify (const TStr &MsgStr)
 

Macro Definition Documentation

#define Catch   } catch (PExcept Except){ErrNotify(Except->GetMsgStr());}

Definition at line 204 of file ut.h.

#define CatchAll   } catch (...){}

Definition at line 206 of file ut.h.

#define CatchFull   } catch (PExcept Except){ErrNotify(Except->GetStr());}

Definition at line 205 of file ut.h.

#define Try   try {

Definition at line 203 of file ut.h.

Typedef Documentation

typedef TPt< TExcept > PExcept

Definition at line 161 of file ut.h.

typedef TPt< TNotify > PNotify

Definition at line 30 of file ut.h.

typedef void(__stdcall * TCallbackF)(const TNotifyType &Type, const TStr &MsgStr)

Definition at line 80 of file ut.h.

typedef void(__stdcall * TNativeCallbackF)(int Type, const char *MsgStr)

Definition at line 103 of file ut.h.

typedef enum TNotifyType_ TNotifyType

Enumeration Type Documentation

Enumerator
ntInfo 
ntWarn 
ntErr 
ntStat 

Definition at line 28 of file ut.h.

Definition: ut.h:28
Definition: ut.h:28
Definition: ut.h:28
enum TNotifyType_ TNotifyType
Definition: ut.h:28

Function Documentation

void ErrNotify ( const TStr MsgStr)
inline

Definition at line 25 of file ut.h.

References TStr::CStr().

25 {ErrNotify(MsgStr.CStr());}
void ErrNotify(const TStr &MsgStr)
Definition: ut.h:25
char * CStr()
Definition: dt.h:476

Here is the call graph for this function:

template<class Type >
TStr GetTypeNm ( const Type &  Var)

Definition at line 16 of file ut.h.

References TTypeNm< Type >::GetNrTypeNm().

Referenced by TVec< TVal, TSizeTy >::GetXOutOfBoundsErrMsg(), and TVec< TVal, TSizeTy >::Resize().

16  {
17  TStr TypeNm=TStr(typeid(Var).name());
18  return TTypeNm<Type>::GetNrTypeNm(TypeNm);
19 }
Definition: dt.h:412
static TStr GetNrTypeNm(const TStr &TypeNm)
Definition: ut.h:8

Here is the call graph for this function:

Here is the caller graph for this function:

void InfoNotify ( const TStr MsgStr)
inline

Definition at line 23 of file ut.h.

References TStr::CStr().

23 {InfoNotify(MsgStr.CStr());}
void InfoNotify(const TStr &MsgStr)
Definition: ut.h:23
char * CStr()
Definition: dt.h:476

Here is the call graph for this function:

void StatNotify ( const TStr MsgStr)
inline

Definition at line 26 of file ut.h.

References TStr::CStr().

26 {StatNotify(MsgStr.CStr());}
void StatNotify(const TStr &MsgStr)
Definition: ut.h:26
char * CStr()
Definition: dt.h:476

Here is the call graph for this function:

void WarnNotify ( const TStr MsgStr)
inline

Definition at line 24 of file ut.h.

References TStr::CStr().

24 {WarnNotify(MsgStr.CStr());}
void WarnNotify(const TStr &MsgStr)
Definition: ut.h:24
char * CStr()
Definition: dt.h:476

Here is the call graph for this function: