SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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++ (int)
 
TNum operator-- (int)
 
Base & operator() ()
 
int GetMemUsed () const
 

Public Attributes

Base Val
 

Detailed Description

template<class Base>
class TNum< Base >

Definition at line 869 of file dt.h.

Constructor & Destructor Documentation

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

Definition at line 872 of file dt.h.

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

872 : Val(0){}
Base Val
Definition: dt.h:871

Here is the caller graph for this function:

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

Definition at line 873 of file dt.h.

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

Definition at line 875 of file dt.h.

References TSIn::Load().

875 { SIn.Load(Val); }
Base Val
Definition: dt.h:871
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 887 of file dt.h.

References TNum< Base >::TNum().

887 { return sizeof(TNum); }
TNum()
Definition: dt.h:872

Here is the call graph for this function:

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

Definition at line 876 of file dt.h.

References TSIn::Load().

876 { SIn.Load(Val); }
Base Val
Definition: dt.h:871
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 874 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 885 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 881 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 883 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 882 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 884 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 879 of file dt.h.

References TNum< Base >::Val.

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

Definition at line 880 of file dt.h.

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

Definition at line 877 of file dt.h.

References TSOut::Save().

877 { SOut.Save(Val); }
Base Val
Definition: dt.h:871
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: