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

872 : Val(0){}
Base Val
Definition: dt.h:871
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.

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

Member Function Documentation

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

Definition at line 887 of file dt.h.

887 { return sizeof(TNum); }
TNum()
Definition: dt.h:872
template<class Base >
void TNum< Base >::Load ( TSIn SIn)
inline

Definition at line 876 of file dt.h.

876 { SIn.Load(Val); }
Base Val
Definition: dt.h:871
void Load(bool &Bool)
Definition: fl.h:84
template<class Base >
TNum< Base >::operator Base ( ) const
inline

Definition at line 874 of file dt.h.

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.

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.

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.

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.

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.

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.

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.

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

Member Data Documentation

template<class Base >
Base TNum< Base >::Val

Definition at line 871 of file dt.h.


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