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 861 of file Block.h.
| casacore::PtrBlock< T >::PtrBlock | ( | ) | [inline] |
| casacore::PtrBlock< T >::PtrBlock | ( | size_t | n | ) | [inline, explicit] |
| casacore::PtrBlock< T >::PtrBlock | ( | size_t | n, | |
| T | val | |||
| ) | [inline] |
| casacore::PtrBlock< T >::PtrBlock | ( | size_t | n, | |
| T *& | storagePointer, | |||
| Bool | takeOverStorage = True | |||
| ) | [inline] |
| casacore::PtrBlock< T >::PtrBlock | ( | const PtrBlock< T > & | other | ) | [inline] |
| casacore::PtrBlock< T >::~PtrBlock | ( | ) | [inline] |
| Bool casacore::PtrBlock< T >::empty | ( | ) | const [inline] |
| size_t casacore::PtrBlock< T >::nelements | ( | ) | const [inline] |
Definition at line 888 of file Block.h.
Referenced by casacore::HashMap< key, val >::allocBuckets(), casacore::CombiParam< AutoDiff< T > >::CombiParam(), casacore::CompoundParam< AutoDiff< Double > >::CompoundParam(), casacore::GenericL2Fit< DComplex >::getConstraint(), casacore::SSMBase::getNrIndices(), casacore::GenericL2Fit< DComplex >::NConstraints(), casacore::TableExprNodeSet::nelements(), casacore::CompoundParam< AutoDiff< Double > >::nFunctions(), casacore::TiledStMan::nhypercubes(), casacore::LatticeConcat< T >::nlattices(), and casacore::GenericL2Fit< DComplex >::setConstraint().
| PtrBlock<T>& casacore::PtrBlock< T >::operator= | ( | const T & | val | ) | [inline] |
| PtrBlock<T>& casacore::PtrBlock< T >::operator= | ( | const PtrBlock< T > & | other | ) | [inline] |
| const T& casacore::PtrBlock< T >::operator[] | ( | size_t | index | ) | const [inline] |
| T& casacore::PtrBlock< T >::operator[] | ( | size_t | index | ) | [inline] |
| void casacore::PtrBlock< T >::remove | ( | size_t | whichOne | ) | [inline] |
| void casacore::PtrBlock< T >::remove | ( | size_t | whichOne, | |
| Bool | forceSmaller | |||
| ) | [inline] |
| void casacore::PtrBlock< T >::replaceStorage | ( | size_t | n, | |
| T *& | storagePointer, | |||
| Bool | takeOverStorage = True | |||
| ) | [inline] |
| void casacore::PtrBlock< T >::resize | ( | size_t | n, | |
| Bool | forceSmaller | |||
| ) | [inline] |
| void casacore::PtrBlock< T >::resize | ( | size_t | n | ) | [inline] |
| void casacore::PtrBlock< T >::resize | ( | size_t | n, | |
| Bool | forceSmaller, | |||
| Bool | copyElements | |||
| ) | [inline] |
| void casacore::PtrBlock< T >::set | ( | const T & | val | ) | [inline] |
| size_t casacore::PtrBlock< T >::size | ( | ) | const [inline] |
| const T* casacore::PtrBlock< T >::storage | ( | ) | const [inline] |
| T* casacore::PtrBlock< T >::storage | ( | ) | [inline] |
Block<void*> casacore::PtrBlock< T >::block_p [private] |
Definition at line 892 of file Block.h.
Referenced by casacore::PtrBlock< SSMIndex * >::empty(), casacore::PtrBlock< SSMIndex * >::nelements(), casacore::PtrBlock< SSMIndex * >::operator=(), casacore::PtrBlock< SSMIndex * >::operator[](), casacore::PtrBlock< SSMIndex * >::remove(), casacore::PtrBlock< SSMIndex * >::replaceStorage(), casacore::PtrBlock< SSMIndex * >::resize(), casacore::PtrBlock< SSMIndex * >::set(), casacore::PtrBlock< SSMIndex * >::size(), and casacore::PtrBlock< SSMIndex * >::storage().
1.6.1