Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1PtrBlock.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 21:07:57 2011 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п |
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.
Definition at line 356 of file Block.h.
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 383 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::TableExprNodeSet::nelements(), casa::SpectralList::nelements(), casa::CompoundParam< AutoDiff< Double > >::nFunctions(), casa::TiledStMan::nhypercubes(), casa::LatticeConcat< T >::nlattices(), and casa::GenericL2Fit< DComplex >::setConstraint().
PtrBlock<T>& casa::PtrBlock< T >::operator= | ( | const T & | val | ) | [inline] |
PtrBlock<T>& casa::PtrBlock< T >::operator= | ( | const PtrBlock< T > & | other | ) | [inline] |
const T& casa::PtrBlock< T >::operator[] | ( | size_t | index | ) | const [inline] |
T& casa::PtrBlock< T >::operator[] | ( | size_t | index | ) | [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 | |||
) | [inline] |
void casa::PtrBlock< T >::resize | ( | size_t | n, | |
Bool | forceSmaller, | |||
Bool | copyElements | |||
) | [inline] |