casacore
|
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.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 843 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::empty().
|
inline |
Definition at line 841 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::nelements().
|
inline |
Definition at line 822 of file Block.h.
References casacore::PtrBlock< T >::block_p.
|
inline |
Definition at line 838 of file Block.h.
References casacore::PtrBlock< T >::set().
|
inline |
Definition at line 835 of file Block.h.
References casacore::PtrBlock< T >::block_p.
|
inline |
Definition at line 836 of file Block.h.
References casacore::PtrBlock< T >::block_p.
|
inline |
Definition at line 831 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::remove().
|
inline |
Definition at line 829 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::remove().
|
inline |
Definition at line 832 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::replaceStorage().
|
inline |
Definition at line 827 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::resize().
|
inline |
Definition at line 828 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::resize().
|
inline |
Definition at line 825 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::resize().
|
inline |
Definition at line 837 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::set().
Referenced by casacore::PtrBlock< T >::operator=().
|
inline |
Definition at line 842 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::size().
|
inline |
Definition at line 839 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::storage().
|
inline |
Definition at line 840 of file Block.h.
References casacore::PtrBlock< T >::block_p, and casacore::Block< T >::storage().
|
private |
Definition at line 845 of file Block.h.
Referenced by casacore::PtrBlock< T >::empty(), casacore::PtrBlock< T >::nelements(), casacore::PtrBlock< T >::operator=(), casacore::PtrBlock< T >::operator[](), casacore::PtrBlock< T >::remove(), casacore::PtrBlock< T >::replaceStorage(), casacore::PtrBlock< T >::resize(), casacore::PtrBlock< T >::set(), casacore::PtrBlock< T >::size(), and casacore::PtrBlock< T >::storage().