casa
$Rev:20696$
|
A drop-in replacement for Block<T*>
.
More...
#include <Block.h>
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 |
A drop-in replacement for Block<T*>
.
Public interface
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.
casa::PtrBlock< T >::PtrBlock | ( | ) | [inline] |
casa::PtrBlock< T >::PtrBlock | ( | size_t | n | ) | [inline, explicit] |
casa::PtrBlock< T >::PtrBlock | ( | size_t | n, |
T | val | ||
) | [inline] |
casa::PtrBlock< T >::PtrBlock | ( | size_t | n, |
T *& | storagePointer, | ||
Bool | takeOverStorage = True |
||
) | [inline] |
casa::PtrBlock< T >::PtrBlock | ( | const PtrBlock< T > & | other | ) | [inline] |
casa::PtrBlock< T >::~PtrBlock | ( | ) | [inline] |
Bool casa::PtrBlock< T >::empty | ( | ) | const [inline] |
size_t casa::PtrBlock< T >::nelements | ( | ) | const [inline] |
Definition at line 385 of file Block.h.
Referenced by casa::HashMap< key, val >::allocBuckets(), casa::CombiParam< AutoDiff< T > >::CombiParam(), casa::CompoundParam< AutoDiff< Double > >::CompoundParam(), casa::GenericL2Fit< DComplex >::getConstraint(), casa::SSMBase::getNrIndices(), casa::GenericL2Fit< DComplex >::NConstraints(), casa::SpectralList::nelements(), casa::TableExprNodeSet::nelements(), casa::CompoundParam< AutoDiff< Double > >::nFunctions(), casa::TiledStMan::nhypercubes(), casa::PlotMSCacheBase::nIter(), casa::LatticeConcat< Float >::nlattices(), and casa::GenericL2Fit< DComplex >::setConstraint().
PtrBlock<T>& casa::PtrBlock< T >::operator= | ( | const PtrBlock< T > & | other | ) | [inline] |
PtrBlock<T>& casa::PtrBlock< T >::operator= | ( | const T & | val | ) | [inline] |
T& casa::PtrBlock< T >::operator[] | ( | size_t | index | ) | [inline] |
const T& casa::PtrBlock< T >::operator[] | ( | size_t | index | ) | const [inline] |
void casa::PtrBlock< T >::remove | ( | size_t | whichOne, |
Bool | forceSmaller | ||
) | [inline] |
void casa::PtrBlock< T >::remove | ( | size_t | whichOne | ) | [inline] |
void casa::PtrBlock< T >::replaceStorage | ( | size_t | n, |
T *& | storagePointer, | ||
Bool | takeOverStorage = True |
||
) | [inline] |
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().
void casa::PtrBlock< T >::resize | ( | size_t | n | ) | [inline] |
void casa::PtrBlock< T >::resize | ( | size_t | n, |
Bool | forceSmaller | ||
) | [inline] |
void casa::PtrBlock< T >::set | ( | const T & | val | ) | [inline] |
size_t casa::PtrBlock< T >::size | ( | ) | const [inline] |
T* casa::PtrBlock< T >::storage | ( | ) | [inline] |
const T* casa::PtrBlock< T >::storage | ( | ) | const [inline] |
Block<void*> casa::PtrBlock< T >::block_p [private] |
Definition at line 389 of file Block.h.
Referenced by casa::PtrBlock< Cube< Float > * >::empty(), casa::PtrBlock< Cube< Float > * >::nelements(), casa::PtrBlock< Cube< Float > * >::operator=(), casa::PtrBlock< Cube< Float > * >::operator[](), casa::PtrBlock< Cube< Float > * >::remove(), casa::PtrBlock< Cube< Float > * >::replaceStorage(), casa::PtrBlock< Cube< Float > * >::resize(), casa::PtrBlock< Cube< Float > * >::set(), casa::PtrBlock< Cube< Float > * >::size(), and casa::PtrBlock< Cube< Float > * >::storage().