casa::PtrBlock< T > Class Template Reference
[Containers]

#include <Block.h>

Collaboration diagram for casa::PtrBlock< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class casa::PtrBlock< T >

A drop-in replacement for Block<T*>.

Intended use:

Part of API

Prerequisite

Synopsis

PtrBlock<T*> has exactly the same interface as Block<T*> and should be used in preference to the latter. It's purpose is solely to reduce the number of template instantiations.

To Do

Definition at line 353 of file Block.h.

Public Member Functions

 PtrBlock ()
 PtrBlock (uInt n)
 PtrBlock (uInt n, T val)
 PtrBlock (uInt n, T *&storagePointer, Bool takeOverStorage=True)
 PtrBlock (const PtrBlock< T > &other)
PtrBlock< T > & operator= (const PtrBlock< T > &other)
 ~PtrBlock ()
void resize (uInt n, Bool forceSmaller, Bool copyElements)
void resize (uInt n)
void resize (uInt n, Bool forceSmaller)
void remove (uInt whichOne, Bool forceSmaller)
void remove (uInt whichOne)
void replaceStorage (uInt n, T *&storagePointer, Bool takeOverStorage=True)
T & operator[] (uInt index)
const T & operator[] (uInt index) const
void set (const T &val)
PtrBlock< T > & operator= (const T &val)
T * storage ()
const T * storage () const
uInt nelements () const
uInt size () const

Private Attributes

Block< void * > block_p


Constructor & Destructor Documentation

template<class T>
casa::PtrBlock< T >::PtrBlock (  )  [inline]

Definition at line 355 of file Block.h.

template<class T>
casa::PtrBlock< T >::PtrBlock ( uInt  n  )  [inline, explicit]

Definition at line 356 of file Block.h.

template<class T>
casa::PtrBlock< T >::PtrBlock ( uInt  n,
val 
) [inline]

Definition at line 357 of file Block.h.

template<class T>
casa::PtrBlock< T >::PtrBlock ( uInt  n,
T *&  storagePointer,
Bool  takeOverStorage = True 
) [inline]

Definition at line 358 of file Block.h.

template<class T>
casa::PtrBlock< T >::PtrBlock ( const PtrBlock< T > &  other  )  [inline]

Definition at line 360 of file Block.h.

template<class T>
casa::PtrBlock< T >::~PtrBlock (  )  [inline]

Definition at line 363 of file Block.h.


Member Function Documentation

template<class T>
PtrBlock<T>& casa::PtrBlock< T >::operator= ( const PtrBlock< T > &  other  )  [inline]

Definition at line 361 of file Block.h.

template<class T>
void casa::PtrBlock< T >::resize ( uInt  n,
Bool  forceSmaller,
Bool  copyElements 
) [inline]

Definition at line 364 of file Block.h.

Referenced by casa::TPGuiBinder::locatedata(), and casa::SerialTransport::SerialTransport().

template<class T>
void casa::PtrBlock< T >::resize ( uInt  n  )  [inline]

Definition at line 366 of file Block.h.

template<class T>
void casa::PtrBlock< T >::resize ( uInt  n,
Bool  forceSmaller 
) [inline]

Definition at line 367 of file Block.h.

template<class T>
void casa::PtrBlock< T >::remove ( uInt  whichOne,
Bool  forceSmaller 
) [inline]

Definition at line 368 of file Block.h.

template<class T>
void casa::PtrBlock< T >::remove ( uInt  whichOne  )  [inline]

Definition at line 370 of file Block.h.

template<class T>
void casa::PtrBlock< T >::replaceStorage ( uInt  n,
T *&  storagePointer,
Bool  takeOverStorage = True 
) [inline]

Definition at line 371 of file Block.h.

template<class T>
T& casa::PtrBlock< T >::operator[] ( uInt  index  )  [inline]

Definition at line 374 of file Block.h.

template<class T>
const T& casa::PtrBlock< T >::operator[] ( uInt  index  )  const [inline]

Definition at line 375 of file Block.h.

template<class T>
void casa::PtrBlock< T >::set ( const T &  val  )  [inline]

Definition at line 376 of file Block.h.

Referenced by casa::PtrBlock< casa::Function< T > * >::operator=().

template<class T>
PtrBlock<T>& casa::PtrBlock< T >::operator= ( const T &  val  )  [inline]

Definition at line 377 of file Block.h.

template<class T>
T* casa::PtrBlock< T >::storage (  )  [inline]

Definition at line 378 of file Block.h.

template<class T>
const T* casa::PtrBlock< T >::storage (  )  const [inline]

Definition at line 379 of file Block.h.

template<class T>
uInt casa::PtrBlock< T >::nelements (  )  const [inline]

Definition at line 380 of file Block.h.

Referenced by casa::TPGuiBinder::locatedata().

template<class T>
uInt casa::PtrBlock< T >::size (  )  const [inline]

Definition at line 381 of file Block.h.


Member Data Documentation

template<class T>
Block<void*> casa::PtrBlock< T >::block_p [private]

Definition at line 383 of file Block.h.

Referenced by casa::PtrBlock< casa::Function< T > * >::nelements(), casa::PtrBlock< casa::Function< T > * >::operator=(), casa::PtrBlock< casa::Function< T > * >::operator[](), casa::PtrBlock< casa::Function< T > * >::remove(), casa::PtrBlock< casa::Function< T > * >::replaceStorage(), casa::PtrBlock< casa::Function< T > * >::resize(), casa::PtrBlock< casa::Function< T > * >::set(), casa::PtrBlock< casa::Function< T > * >::size(), and casa::PtrBlock< casa::Function< T > * >::storage().


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 22:32:20 2008 for NRAOCASA by  doxygen 1.5.1