SNAP Library , Developer Reference  2013-01-07 14:03:36
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.

References Fail.

{Fail;}

Member Function Documentation

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

Definition at line 26 of file ds.h.

References TAPt< TRec >::Addr.

{return Addr==NULL;}
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.

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

Definition at line 24 of file ds.h.

References TAPt< TRec >::Addr.

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

Definition at line 21 of file ds.h.

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

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

Definition at line 20 of file ds.h.

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

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

References TAPt< TRec >::Addr.

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

Definition at line 14 of file ds.h.

References TAPt< TRec >::Addr.

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

Definition at line 15 of file ds.h.

References TAPt< TRec >::Addr.

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

References TAPt< TRec >::Addr.

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

Definition at line 22 of file ds.h.

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

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

Definition at line 12 of file ds.h.

References Fail.

{Fail;}

Member Data Documentation


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