SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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
TAPt< TRec > Class Template Reference

#include <ds.h>

List of all members.

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.

: Addr(NULL){}
template<class TRec >
TAPt< TRec >::TAPt ( const TAPt< TRec > &  Pt) [inline]

Definition at line 9 of file ds.h.

: Addr(Pt.Addr){}
template<class TRec >
TAPt< TRec >::TAPt ( TRec *  _Addr) [inline]

Definition at line 10 of file ds.h.

: Addr(_Addr){}
template<class TRec >
TAPt< TRec >::TAPt ( TSIn ) [inline]

Definition at line 11 of file ds.h.

{Fail;}

Member Function Documentation

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

Definition at line 26 of file ds.h.

{return Addr==NULL;}
template<class TRec >
bool TAPt< TRec >::operator!= ( const TAPt< TRec > &  Pt) const [inline]

Definition at line 17 of file ds.h.

{return *Addr!=*Pt.Addr;}
template<class TRec >
TRec* TAPt< TRec >::operator() ( ) const [inline]

Definition at line 24 of file ds.h.

{return Addr;}
template<class TRec >
TRec& TAPt< TRec >::operator* ( ) const [inline]

Definition at line 21 of file ds.h.

{Assert(Addr!=NULL); return *Addr;}
template<class TRec >
TRec* TAPt< TRec >::operator-> ( ) const [inline]

Definition at line 20 of file ds.h.

{Assert(Addr!=NULL); return Addr;}
template<class TRec >
bool TAPt< TRec >::operator< ( const TAPt< TRec > &  Pt) const [inline]

Definition at line 18 of file ds.h.

{return *Addr<*Pt.Addr;}
template<class TRec >
TAPt& TAPt< TRec >::operator= ( const TAPt< TRec > &  Pt) [inline]

Definition at line 14 of file ds.h.

{Addr=Pt.Addr; return *this;}
template<class TRec >
TAPt& TAPt< TRec >::operator= ( TRec *  _Addr) [inline]

Definition at line 15 of file ds.h.

{Addr=_Addr; return *this;}
template<class TRec >
bool TAPt< TRec >::operator== ( const TAPt< TRec > &  Pt) const [inline]

Definition at line 16 of file ds.h.

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

Definition at line 22 of file ds.h.

                                          {
    Assert(Addr!=NULL); return Addr[RecN];}
template<class TRec >
void TAPt< TRec >::Save ( TSOut ) const [inline]

Definition at line 12 of file ds.h.

{Fail;}

Member Data Documentation

template<class TRec >
TRec* TAPt< TRec >::Addr [private]

Definition at line 6 of file ds.h.


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