Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ValarrayImageContainer< TElementIdentifier, TElement > Class Template Reference
[Image Representation ObjectsData Representation Objects]

#include <itkValarrayImageContainer.h>

Inheritance diagram for itk::ValarrayImageContainer:

Inheritance graph
[legend]
Collaboration diagram for itk::ValarrayImageContainer< TElementIdentifier, TElement >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ValarrayImageContainer Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TElementIdentifier ElementIdentifier
typedef TElement Element

Public Methods

virtual const char * GetClassName () const
TElement & operator[] (const ElementIdentifier id)
const TElement & operator[] (const ElementIdentifier id) const
TElement * GetBufferPointer ()
unsigned long Size (void) const
void Reserve (ElementIdentifier num)
void Squeeze (void)
void Initialize (void)
virtual void PrintSelf (std::ostream &os, Indent indent) const

Static Public Methods

Pointer New ()

Protected Methods

 ValarrayImageContainer ()
 ValarrayImageContainer (unsigned long n)
 ValarrayImageContainer (unsigned long n, const Element &x)
 ValarrayImageContainer (const Self &r)

Detailed Description

template<typename TElementIdentifier, typename TElement>
class itk::ValarrayImageContainer< TElementIdentifier, TElement >

Defines a front-end to the STL "valarray" container that conforms to the ImageContainerInterface. This is a full-fleged Object, so there is modification time, debug, and reference count information.

Template parameters for ValarrayImageContainer:

TElementIdentifier = An INTEGRAL type for use in indexing the valarray. It must have a < operator defined for ordering.

TElement = The element type stored in the container.

Definition at line 50 of file itkValarrayImageContainer.h.


Member Typedef Documentation

template<typename TElementIdentifier, typename TElement>
typedef SmartPointer<const Self> itk::ValarrayImageContainer< TElementIdentifier, TElement >::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 59 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef TElement itk::ValarrayImageContainer< TElementIdentifier, TElement >::Element
 

Definition at line 63 of file itkValarrayImageContainer.h.

Referenced by itk::ValarrayImageContainer< TElementIdentifier, TElement >::ValarrayImageContainer().

template<typename TElementIdentifier, typename TElement>
typedef TElementIdentifier itk::ValarrayImageContainer< TElementIdentifier, TElement >::ElementIdentifier
 

Save the template parameters.

Definition at line 62 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef SmartPointer<Self> itk::ValarrayImageContainer< TElementIdentifier, TElement >::Pointer
 

Reimplemented from itk::Object.

Definition at line 58 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef ValarrayImageContainer itk::ValarrayImageContainer< TElementIdentifier, TElement >::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 56 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef Object itk::ValarrayImageContainer< TElementIdentifier, TElement >::Superclass
 

Reimplemented from itk::Object.

Definition at line 57 of file itkValarrayImageContainer.h.


Constructor & Destructor Documentation

template<typename TElementIdentifier, typename TElement>
itk::ValarrayImageContainer< TElementIdentifier, TElement >::ValarrayImageContainer   [inline, protected]
 

Provide pass-through constructors corresponding to all the STL valarray constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.

Definition at line 74 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
itk::ValarrayImageContainer< TElementIdentifier, TElement >::ValarrayImageContainer unsigned long    n [inline, protected]
 

Provide pass-through constructors corresponding to all the STL valarray constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.

Definition at line 76 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
itk::ValarrayImageContainer< TElementIdentifier, TElement >::ValarrayImageContainer unsigned long    n,
const Element   x
[inline, protected]
 

Provide pass-through constructors corresponding to all the STL valarray constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.

Definition at line 78 of file itkValarrayImageContainer.h.

References itk::ValarrayImageContainer< TElementIdentifier, TElement >::Element.

template<typename TElementIdentifier, typename TElement>
itk::ValarrayImageContainer< TElementIdentifier, TElement >::ValarrayImageContainer const Self   r [inline, protected]
 

Provide pass-through constructors corresponding to all the STL valarray constructors. These are for internal use only since this is also an Object which must be constructed through the "New()" routine.

Definition at line 80 of file itkValarrayImageContainer.h.


Member Function Documentation

template<typename TElementIdentifier, typename TElement>
TElement* itk::ValarrayImageContainer< TElementIdentifier, TElement >::GetBufferPointer   [inline]
 

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

Definition at line 101 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
virtual const char* itk::ValarrayImageContainer< TElementIdentifier, TElement >::GetClassName   const [virtual]
 

Standard part of every itk Object.

Reimplemented from itk::Object.

template<typename TElementIdentifier, typename TElement>
void itk::ValarrayImageContainer< TElementIdentifier, TElement >::Initialize void    [inline]
 

Tell the container to release any of its allocated memory.

Definition at line 122 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
Pointer itk::ValarrayImageContainer< TElementIdentifier, TElement >::New   [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<typename TElementIdentifier, typename TElement>
const TElement& itk::ValarrayImageContainer< TElementIdentifier, TElement >::operator[] const ElementIdentifier    id const [inline]
 

Index operator. This version can only be an rvalue

Definition at line 96 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
TElement& itk::ValarrayImageContainer< TElementIdentifier, TElement >::operator[] const ElementIdentifier    id [inline]
 

Index operator. This version can be an lvalue.

Definition at line 92 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
virtual void itk::ValarrayImageContainer< TElementIdentifier, TElement >::PrintSelf std::ostream &    os,
Indent    indent
const [inline, virtual]
 

PrintSelf routine. Normally this is a protected internal method. It is made public here so that Image can call this method. Users should not call this method but should call Print() instead.

Reimplemented from itk::Object.

Definition at line 129 of file itkValarrayImageContainer.h.

References itk::ValarrayImageContainer< TElementIdentifier, TElement >::Size().

template<typename TElementIdentifier, typename TElement>
void itk::ValarrayImageContainer< TElementIdentifier, TElement >::Reserve ElementIdentifier    num [inline]
 

Tell the container to allocate enough memory to allow at least as many elements as the size given to be stored. This is NOT guaranteed to actually allocate any memory, but is useful if the implementation of the container allocates contiguous storage.

Definition at line 112 of file itkValarrayImageContainer.h.

template<typename TElementIdentifier, typename TElement>
unsigned long itk::ValarrayImageContainer< TElementIdentifier, TElement >::Size void    const [inline]
 

Get the number of elements currently stored in the container.

Definition at line 105 of file itkValarrayImageContainer.h.

Referenced by itk::ValarrayImageContainer< TElementIdentifier, TElement >::PrintSelf().

template<typename TElementIdentifier, typename TElement>
void itk::ValarrayImageContainer< TElementIdentifier, TElement >::Squeeze void    [inline]
 

Tell the container to try to minimize its memory usage for storage of the current number of elements. This is NOT guaranteed to decrease memory usage.

Definition at line 118 of file itkValarrayImageContainer.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:43:30 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000