casacore::PtrBlock< T > Class Template Reference

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

#include <Block.h>

List of all members.

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

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

Definition at line 863 of file Block.h.

template<class T>
casacore::PtrBlock< T >::PtrBlock ( size_t  n  )  [inline, explicit]

Definition at line 864 of file Block.h.

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

Definition at line 865 of file Block.h.

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

Definition at line 866 of file Block.h.

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

Definition at line 868 of file Block.h.

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

Definition at line 871 of file Block.h.


Member Function Documentation

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

Definition at line 890 of file Block.h.

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

Definition at line 885 of file Block.h.

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

Definition at line 869 of file Block.h.

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

Definition at line 883 of file Block.h.

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

Definition at line 882 of file Block.h.

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

Definition at line 878 of file Block.h.

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

Definition at line 876 of file Block.h.

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.

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

Definition at line 875 of file Block.h.

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

Definition at line 874 of file Block.h.

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

Definition at line 872 of file Block.h.

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

Definition at line 884 of file Block.h.

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

Definition at line 889 of file Block.h.

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

Definition at line 887 of file Block.h.

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

Definition at line 886 of file Block.h.


Member Data Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1