casacore
Public Member Functions | Private Attributes | List of all members
casacore::PtrBlock< T > Class Template Reference

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
 

Detailed Description

template<class T>
class casacore::PtrBlock< T >

A drop-in replacement for Block<T*>.

Intended use:

Public interface

Prerequisite

Synopsis

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.

To Do

Definition at line 861 of file Block.h.

Constructor & Destructor Documentation

§ PtrBlock() [1/5]

template<class T>
casacore::PtrBlock< T >::PtrBlock ( )
inline

Definition at line 863 of file Block.h.

§ PtrBlock() [2/5]

template<class T>
casacore::PtrBlock< T >::PtrBlock ( size_t  n)
inlineexplicit

Definition at line 864 of file Block.h.

§ PtrBlock() [3/5]

template<class T>
casacore::PtrBlock< T >::PtrBlock ( size_t  n,
val 
)
inline

Definition at line 865 of file Block.h.

§ PtrBlock() [4/5]

template<class T>
casacore::PtrBlock< T >::PtrBlock ( size_t  n,
T *&  storagePointer,
Bool  takeOverStorage = True 
)
inline

Definition at line 866 of file Block.h.

§ PtrBlock() [5/5]

template<class T>
casacore::PtrBlock< T >::PtrBlock ( const PtrBlock< T > &  other)
inline

Definition at line 868 of file Block.h.

§ ~PtrBlock()

template<class T>
casacore::PtrBlock< T >::~PtrBlock ( )
inline

Definition at line 871 of file Block.h.

Member Function Documentation

§ empty()

template<class T>
Bool casacore::PtrBlock< T >::empty ( ) const
inline

Definition at line 890 of file Block.h.

§ nelements()

template<class T>
size_t casacore::PtrBlock< T >::nelements ( ) const
inline

Definition at line 888 of file Block.h.

§ operator=() [1/2]

template<class T>
PtrBlock<T>& casacore::PtrBlock< T >::operator= ( const PtrBlock< T > &  other)
inline

Definition at line 869 of file Block.h.

§ operator=() [2/2]

template<class T>
PtrBlock<T>& casacore::PtrBlock< T >::operator= ( const T &  val)
inline

Definition at line 885 of file Block.h.

§ operator[]() [1/2]

template<class T>
T& casacore::PtrBlock< T >::operator[] ( size_t  index)
inline

Definition at line 882 of file Block.h.

§ operator[]() [2/2]

template<class T>
const T& casacore::PtrBlock< T >::operator[] ( size_t  index) const
inline

Definition at line 883 of file Block.h.

§ remove() [1/2]

template<class T>
void casacore::PtrBlock< T >::remove ( size_t  whichOne,
Bool  forceSmaller 
)
inline

Definition at line 876 of file Block.h.

§ remove() [2/2]

template<class T>
void casacore::PtrBlock< T >::remove ( size_t  whichOne)
inline

Definition at line 878 of file Block.h.

§ replaceStorage()

template<class T>
void casacore::PtrBlock< T >::replaceStorage ( size_t  n,
T *&  storagePointer,
Bool  takeOverStorage = True 
)
inline

Definition at line 879 of file Block.h.

§ resize() [1/3]

template<class T>
void casacore::PtrBlock< T >::resize ( size_t  n,
Bool  forceSmaller,
Bool  copyElements 
)
inline

Definition at line 872 of file Block.h.

§ resize() [2/3]

template<class T>
void casacore::PtrBlock< T >::resize ( size_t  n)
inline

Definition at line 874 of file Block.h.

§ resize() [3/3]

template<class T>
void casacore::PtrBlock< T >::resize ( size_t  n,
Bool  forceSmaller 
)
inline

Definition at line 875 of file Block.h.

§ set()

template<class T>
void casacore::PtrBlock< T >::set ( const T &  val)
inline

Definition at line 884 of file Block.h.

§ size()

template<class T>
size_t casacore::PtrBlock< T >::size ( ) const
inline

Definition at line 889 of file Block.h.

§ storage() [1/2]

template<class T>
T* casacore::PtrBlock< T >::storage ( )
inline

Definition at line 886 of file Block.h.

§ storage() [2/2]

template<class T>
const T* casacore::PtrBlock< T >::storage ( ) const
inline

Definition at line 887 of file Block.h.

Member Data Documentation

§ block_p

template<class T>
Block<void*> casacore::PtrBlock< T >::block_p
private

Definition at line 892 of file Block.h.

Referenced by casacore::PtrBlock< casacore::BaseColumn *>::operator=().


The documentation for this class was generated from the following file: