casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::PtrBlock< T > Class Template Reference

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

#include <Block.h>

List of all members.

Public Member Functions

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

Private Attributes

Block< void * > block_p

Detailed Description

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

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

Intended use:

Public interface

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 358 of file Block.h.


Constructor & Destructor Documentation

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

Definition at line 360 of file Block.h.

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

Definition at line 361 of file Block.h.

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

Definition at line 362 of file Block.h.

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

Definition at line 363 of file Block.h.

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

Definition at line 365 of file Block.h.

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

Definition at line 368 of file Block.h.


Member Function Documentation

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

Definition at line 387 of file Block.h.

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

Definition at line 366 of file Block.h.

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

Definition at line 382 of file Block.h.

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

Definition at line 379 of file Block.h.

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

Definition at line 380 of file Block.h.

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

Definition at line 373 of file Block.h.

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

Definition at line 375 of file Block.h.

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

Definition at line 376 of file Block.h.

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

Definition at line 369 of file Block.h.

Referenced by casa::SerialTransport::SerialTransport().

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

Definition at line 371 of file Block.h.

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

Definition at line 372 of file Block.h.

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

Definition at line 381 of file Block.h.

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

Definition at line 386 of file Block.h.

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

Definition at line 383 of file Block.h.

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

Definition at line 384 of file Block.h.


Member Data Documentation

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

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