ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkValarrayImageContainer.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef TElement | Element |
typedef TElementIdentifier | ElementIdentifier |
typedef SmartPointer< Self > | Pointer |
typedef ValarrayImageContainer | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
void | Fill (const TElement &value) |
virtual const char * | GetNameOfClass () const |
void | Initialize (void) |
TElement & | operator[] (const ElementIdentifier id) |
const TElement & | operator[] (const ElementIdentifier id) const |
void | Reserve (ElementIdentifier num) |
unsigned long | Size (void) const |
void | Squeeze (void) |
TElement * | GetBufferPointer () |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual unsigned long | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
Protected Member Functions | |
ValarrayImageContainer () | |
ValarrayImageContainer (unsigned long n) | |
ValarrayImageContainer (unsigned long n, const Element &x) | |
ValarrayImageContainer (const Self &r) | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Types | |
typedef std::valarray< Element > | ValarrayType |
Additional Inherited Members | |
Private Attributes inherited from std::valarray< T > | |
T | elements |
Defines a front-end to the std\::<valarray> container that conforms to the ImageContainerInterface.
This is a full-fleged Object, so there is modification time, debug, and reference count information.
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 51 of file itkValarrayImageContainer.h.
typedef SmartPointer< const Self > itk::ValarrayImageContainer< TElementIdentifier, TElement >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 60 of file itkValarrayImageContainer.h.
typedef TElement itk::ValarrayImageContainer< TElementIdentifier, TElement >::Element |
Definition at line 64 of file itkValarrayImageContainer.h.
typedef TElementIdentifier itk::ValarrayImageContainer< TElementIdentifier, TElement >::ElementIdentifier |
Save the template parameters.
Definition at line 63 of file itkValarrayImageContainer.h.
typedef SmartPointer< Self > itk::ValarrayImageContainer< TElementIdentifier, TElement >::Pointer |
Reimplemented from itk::Object.
Definition at line 59 of file itkValarrayImageContainer.h.
typedef ValarrayImageContainer itk::ValarrayImageContainer< TElementIdentifier, TElement >::Self |
Standard class typedefs.
Reimplemented from itk::Object.
Definition at line 57 of file itkValarrayImageContainer.h.
typedef Object itk::ValarrayImageContainer< TElementIdentifier, TElement >::Superclass |
Reimplemented from itk::Object.
Definition at line 58 of file itkValarrayImageContainer.h.
|
private |
Quick access to the STL valarray type that was inherited.
Definition at line 68 of file itkValarrayImageContainer.h.
|
inlineprotected |
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 75 of file itkValarrayImageContainer.h.
|
inlineprotected |
Definition at line 77 of file itkValarrayImageContainer.h.
|
inlineprotected |
Definition at line 79 of file itkValarrayImageContainer.h.
|
inlineprotected |
Definition at line 81 of file itkValarrayImageContainer.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
inline |
Tell the container to release any of its allocated memory.
Definition at line 136 of file itkValarrayImageContainer.h.
References itk::Object::operator=().
|
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.
References NULL, itk::ValarrayImageContainer< TElementIdentifier, TElement >::operator[](), and itk::ValarrayImageContainer< TElementIdentifier, TElement >::Size().
Referenced by itk::ValarrayImageContainer< TElementIdentifier, TElement >::PrintSelf().
|
virtual |
Standard part of every itk Object.
Reimplemented from itk::Object.
|
inline |
Tell the container to release any of its allocated memory.
Definition at line 132 of file itkValarrayImageContainer.h.
|
static |
Method for creation through the object factory.
Reimplemented from itk::Object.
|
inline |
Index operator. This version can be an lvalue.
Definition at line 92 of file itkValarrayImageContainer.h.
Referenced by itk::ValarrayImageContainer< TElementIdentifier, TElement >::GetBufferPointer(), and itk::ValarrayImageContainer< TElementIdentifier, TElement >::operator[]().
|
inline |
Index operator. This version can only be an rvalue
Definition at line 96 of file itkValarrayImageContainer.h.
References itk::ValarrayImageContainer< TElementIdentifier, TElement >::operator[]().
|
inlinevirtual |
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 143 of file itkValarrayImageContainer.h.
References itk::ValarrayImageContainer< TElementIdentifier, TElement >::GetBufferPointer(), and itk::ValarrayImageContainer< TElementIdentifier, TElement >::Size().
|
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 122 of file itkValarrayImageContainer.h.
|
inline |
Get the number of elements currently stored in the container.
Definition at line 115 of file itkValarrayImageContainer.h.
Referenced by itk::ValarrayImageContainer< TElementIdentifier, TElement >::GetBufferPointer(), and itk::ValarrayImageContainer< TElementIdentifier, TElement >::PrintSelf().
|
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 128 of file itkValarrayImageContainer.h.