SNAP Library 2.0, Developer Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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

Defines

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

Typedefs

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)

Define 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.


Enumeration Type Documentation

Enumerator:
ntInfo 
ntWarn 
ntErr 
ntStat 

Definition at line 28 of file ut.h.


Function Documentation

void ErrNotify ( const TStr MsgStr) [inline]

Definition at line 25 of file ut.h.

References TStr::CStr(), and ErrNotify().

{ErrNotify(MsgStr.CStr());}

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(), TGLib_OLD::TVec< TVal >::GetXOutOfBoundsErrMsg(), TVec< TVal, TSizeTy >::Resize(), and TGLib_OLD::TVec< TVal >::Resize().

                               {
  TStr TypeNm=TStr(typeid(Var).name());
  return TTypeNm<Type>::GetNrTypeNm(TypeNm);
}

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(), and InfoNotify().

{InfoNotify(MsgStr.CStr());}

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(), and StatNotify().

{StatNotify(MsgStr.CStr());}

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(), and WarnNotify().

{WarnNotify(MsgStr.CStr());}

Here is the call graph for this function: