|
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 |
Definition at line 814 of file Block.h.
References block_p.
Referenced by operator=(), operator=(), and PtrBlock().
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 817 of file Block.h.
References block_p, and casacore::True.
|
inline |
Definition at line 819 of file Block.h.
References block_p, and PtrBlock().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 820 of file Block.h.
References block_p, and PtrBlock().
|
inline |
Definition at line 836 of file Block.h.
References PtrBlock(), and set().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 830 of file Block.h.
References block_p, and casacore::True.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 843 of file Block.h.
Referenced by empty(), nelements(), operator=(), operator[](), operator[](), PtrBlock(), PtrBlock(), PtrBlock(), PtrBlock(), PtrBlock(), remove(), remove(), replaceStorage(), resize(), resize(), resize(), set(), size(), storage(), and storage().