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
TNum< Base > Class Template Reference

#include <dt.h>

Public Member Functions

 TNum ()
 
 TNum (const Base &_Val)
 
 operator Base () const
 
 TNum (TSIn &SIn)
 
void Load (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
TNumoperator= (const TNum &Other)
 
TNumoperator= (const Base &_Val)
 
TNumoperator++ ()
 
TNumoperator-- ()
 
TNum operator++ (Base)
 
TNum operator-- (Base)
 
Base & operator() ()
 
int GetMemUsed () const
 

Public Attributes

Base Val
 

Detailed Description

template<class Base>
class TNum< Base >

Definition at line 866 of file dt.h.

Constructor & Destructor Documentation

template<class Base >
TNum< Base >::TNum ( )
inline

Definition at line 869 of file dt.h.

Referenced by TNum< Base >::GetMemUsed(), and TNum< int64 >::GetMemUsed().

869 : Val(0){}
Base Val
Definition: dt.h:868

Here is the caller graph for this function:

template<class Base >
TNum< Base >::TNum ( const Base &  _Val)
inline

Definition at line 870 of file dt.h.

870 : Val(_Val){}
Base Val
Definition: dt.h:868
template<class Base >
TNum< Base >::TNum ( TSIn SIn)
inlineexplicit

Definition at line 872 of file dt.h.

References TSIn::Load(), and TNum< Base >::Val.

872 { SIn.Load(Val); }
Base Val
Definition: dt.h:868
void Load(bool &Bool)
Definition: fl.h:84

Here is the call graph for this function:

Member Function Documentation

template<class Base >
int TNum< Base >::GetMemUsed ( ) const
inline

Definition at line 884 of file dt.h.

References TNum< Base >::TNum().

884 { return sizeof(TNum); }
TNum()
Definition: dt.h:869

Here is the call graph for this function:

template<class Base >
void TNum< Base >::Load ( TSIn SIn)
inline

Definition at line 873 of file dt.h.

References TSIn::Load(), and TNum< Base >::Val.

873 { SIn.Load(Val); }
Base Val
Definition: dt.h:868
void Load(bool &Bool)
Definition: fl.h:84

Here is the call graph for this function:

template<class Base >
TNum< Base >::operator Base ( ) const
inline

Definition at line 871 of file dt.h.

References TNum< Base >::Val.

871 { return Val; }
Base Val
Definition: dt.h:868
template<class Base >
Base& TNum< Base >::operator() ( )
inline

Definition at line 882 of file dt.h.

References TNum< Base >::Val.

882 { return Val; }
Base Val
Definition: dt.h:868
template<class Base >
TNum& TNum< Base >::operator++ ( )
inline

Definition at line 878 of file dt.h.

References TNum< Base >::Val.

878 { ++Val; return *this; } // prefix
Base Val
Definition: dt.h:868
template<class Base >
TNum TNum< Base >::operator++ ( Base  )
inline

Definition at line 880 of file dt.h.

References TNum< Base >::Val.

880 { TNum oldVal = Val; Val++; return oldVal; } // postfix
Base Val
Definition: dt.h:868
Definition: dt.h:866
template<class Base >
TNum& TNum< Base >::operator-- ( )
inline

Definition at line 879 of file dt.h.

References TNum< Base >::Val.

879 { --Val; return *this; } // prefix
Base Val
Definition: dt.h:868
template<class Base >
TNum TNum< Base >::operator-- ( Base  )
inline

Definition at line 881 of file dt.h.

References TNum< Base >::Val.

881 { TNum oldVal = Val; Val--; return oldVal; } // postfix
Base Val
Definition: dt.h:868
Definition: dt.h:866
template<class Base >
TNum& TNum< Base >::operator= ( const TNum< Base > &  Other)
inline

Definition at line 876 of file dt.h.

References TNum< Base >::Val.

876 { Val = Other.Val; return *this; }
Base Val
Definition: dt.h:868
template<class Base >
TNum& TNum< Base >::operator= ( const Base &  _Val)
inline

Definition at line 877 of file dt.h.

References TNum< Base >::Val.

877 { Val = _Val; return *this; }
Base Val
Definition: dt.h:868
template<class Base >
void TNum< Base >::Save ( TSOut SOut) const
inline

Definition at line 874 of file dt.h.

References TSOut::Save(), and TNum< Base >::Val.

874 { SOut.Save(Val); }
Base Val
Definition: dt.h:868
void Save(const bool &Bool)
Definition: fl.h:173

Here is the call graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: