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
TAPt< TRec > Class Template Reference

#include <ds.h>

Public Member Functions

 TAPt ()
 
 TAPt (const TAPt &Pt)
 
 TAPt (TRec *_Addr)
 
 TAPt (TSIn &)
 
void Save (TSOut &) const
 
TAPtoperator= (const TAPt &Pt)
 
TAPtoperator= (TRec *_Addr)
 
bool operator== (const TAPt &Pt) const
 
bool operator!= (const TAPt &Pt) const
 
bool operator< (const TAPt &Pt) const
 
TRec * operator-> () const
 
TRec & operator* () const
 
TRec & operator[] (const int &RecN) const
 
TRec * operator() () const
 
bool Empty () const
 

Private Attributes

TRec * Addr
 

Detailed Description

template<class TRec>
class TAPt< TRec >

Definition at line 4 of file ds.h.

Constructor & Destructor Documentation

template<class TRec >
TAPt< TRec >::TAPt ( )
inline

Definition at line 8 of file ds.h.

8 : Addr(NULL){}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TAPt< TRec >::TAPt ( const TAPt< TRec > &  Pt)
inline

Definition at line 9 of file ds.h.

9 : Addr(Pt.Addr){}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TAPt< TRec >::TAPt ( TRec *  _Addr)
inline

Definition at line 10 of file ds.h.

10 : Addr(_Addr){}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TAPt< TRec >::TAPt ( TSIn )
inline

Definition at line 11 of file ds.h.

References Fail.

11 {Fail;}
#define Fail
Definition: bd.h:238

Member Function Documentation

template<class TRec >
bool TAPt< TRec >::Empty ( ) const
inline

Definition at line 26 of file ds.h.

26 {return Addr==NULL;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
bool TAPt< TRec >::operator!= ( const TAPt< TRec > &  Pt) const
inline

Definition at line 17 of file ds.h.

References TAPt< TRec >::Addr.

17 {return *Addr!=*Pt.Addr;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TRec* TAPt< TRec >::operator() ( ) const
inline

Definition at line 24 of file ds.h.

References TAPt< TRec >::Addr.

24 {return Addr;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TRec& TAPt< TRec >::operator* ( ) const
inline

Definition at line 21 of file ds.h.

References TAPt< TRec >::Addr, and Assert.

21 {Assert(Addr!=NULL); return *Addr;}
#define Assert(Cond)
Definition: bd.h:251
TRec * Addr
Definition: ds.h:6
template<class TRec >
TRec* TAPt< TRec >::operator-> ( ) const
inline

Definition at line 20 of file ds.h.

References TAPt< TRec >::Addr, and Assert.

20 {Assert(Addr!=NULL); return Addr;}
#define Assert(Cond)
Definition: bd.h:251
TRec * Addr
Definition: ds.h:6
template<class TRec >
bool TAPt< TRec >::operator< ( const TAPt< TRec > &  Pt) const
inline

Definition at line 18 of file ds.h.

References TAPt< TRec >::Addr.

18 {return *Addr<*Pt.Addr;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TAPt& TAPt< TRec >::operator= ( const TAPt< TRec > &  Pt)
inline

Definition at line 14 of file ds.h.

References TAPt< TRec >::Addr.

14 {Addr=Pt.Addr; return *this;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TAPt& TAPt< TRec >::operator= ( TRec *  _Addr)
inline

Definition at line 15 of file ds.h.

15 {Addr=_Addr; return *this;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
bool TAPt< TRec >::operator== ( const TAPt< TRec > &  Pt) const
inline

Definition at line 16 of file ds.h.

References TAPt< TRec >::Addr.

16 {return *Addr==*Pt.Addr;}
TRec * Addr
Definition: ds.h:6
template<class TRec >
TRec& TAPt< TRec >::operator[] ( const int &  RecN) const
inline

Definition at line 22 of file ds.h.

References Assert.

22  {
23  Assert(Addr!=NULL); return Addr[RecN];}
#define Assert(Cond)
Definition: bd.h:251
TRec * Addr
Definition: ds.h:6
template<class TRec >
void TAPt< TRec >::Save ( TSOut ) const
inline

Definition at line 12 of file ds.h.

References Fail.

12 {Fail;}
#define Fail
Definition: bd.h:238

Member Data Documentation


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