Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1PtrBlock.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 21:07:57 2011
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п
casacore: casa::PtrBlock< T > Class Template Reference
Public Member Functions | Private Attributes

casa::PtrBlock< T > Class Template Reference
[Containers_module]

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 casa::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 356 of file Block.h.


Constructor & Destructor Documentation

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

Definition at line 358 of file Block.h.

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

Definition at line 359 of file Block.h.

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

Definition at line 360 of file Block.h.

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

Definition at line 361 of file Block.h.

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

Definition at line 363 of file Block.h.

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

Definition at line 366 of file Block.h.


Member Function Documentation

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

Definition at line 385 of file Block.h.

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

Definition at line 380 of file Block.h.

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

Definition at line 364 of file Block.h.

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

Definition at line 378 of file Block.h.

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

Definition at line 377 of file Block.h.

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

Definition at line 371 of file Block.h.

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

Definition at line 373 of file Block.h.

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

Definition at line 374 of file Block.h.

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

Definition at line 370 of file Block.h.

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

Definition at line 367 of file Block.h.