ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkRingBuffer.h>
Templated ring buffer for holding anything.
This ring buffer can hold any type of itk class that supports smart pointers. A HEAD pointer is maintained and the buffer pointers can be accessed in order using either positive or negative offsets. The HEAD pointer can also be moved forward or backward in the ring.
Definition at line 39 of file itkRingBuffer.h.
typedef SmartPointer< const Self > itk::RingBuffer< TElement >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 50 of file itkRingBuffer.h.
typedef ElementType::Pointer itk::RingBuffer< TElement >::ElementPointer |
Definition at line 54 of file itkRingBuffer.h.
typedef TElement itk::RingBuffer< TElement >::ElementType |
Contained type
Definition at line 53 of file itkRingBuffer.h.
typedef ::itk::OffsetValueType itk::RingBuffer< TElement >::OffsetValueType |
Definition at line 57 of file itkRingBuffer.h.
typedef SmartPointer< Self > itk::RingBuffer< TElement >::Pointer |
Reimplemented from itk::Object.
Definition at line 49 of file itkRingBuffer.h.
typedef RingBuffer itk::RingBuffer< TElement >::Self |
-TYPEDEFS--------------------------------------------------------------- Standard class typedefs
Reimplemented from itk::Object.
Definition at line 47 of file itkRingBuffer.h.
typedef ::itk::SizeValueType itk::RingBuffer< TElement >::SizeValueType |
Definition at line 56 of file itkRingBuffer.h.
typedef Object itk::RingBuffer< TElement >::Superclass |
Reimplemented from itk::Object.
Definition at line 48 of file itkRingBuffer.h.
itk::RingBuffer< TElement >::RingBuffer | ( | ) | [protected] |
-PROTECTED METHODS------------------------------------------------------
virtual itk::RingBuffer< TElement >::~RingBuffer | ( | ) | [protected, virtual] |
-PROTECTED METHODS------------------------------------------------------
itk::RingBuffer< TElement >::RingBuffer | ( | const Self & | ) | [private] |
Vector of pointers to elements
bool itk::RingBuffer< TElement >::BufferIsFull | ( | OffsetValueType | offset | ) |
Report whether or not the indicated buffer is full
virtual::itk::LightObject::Pointer itk::RingBuffer< TElement >::CreateAnother | ( | void | ) | const [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.
ElementType::Pointer itk::RingBuffer< TElement >::GetBufferContents | ( | OffsetValueType | offset | ) |
Access the data from the indicated buffer
SizeValueType itk::RingBuffer< TElement >::GetHeadIndex | ( | ) | [inline] |
Report the current position of Head (mostly used for testing)
Definition at line 85 of file itkRingBuffer.h.
virtual const char* itk::RingBuffer< TElement >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::Object.
SizeValueType itk::RingBuffer< TElement >::GetNumberOfBuffers | ( | ) |
Get the buffer size
OffsetValueType itk::RingBuffer< TElement >::GetOffsetBufferIndex | ( | OffsetValueType | offset | ) | [protected] |
Get the proper buffer index from an offset
void itk::RingBuffer< TElement >::MoveHead | ( | OffsetValueType | offset | ) |
Move the Head pointer along the ring using the given offset
void itk::RingBuffer< TElement >::MoveHeadBackward | ( | ) |
Convenience methods for moving Head +/- 1
void itk::RingBuffer< TElement >::MoveHeadForward | ( | ) |
Convenience methods for moving Head +/- 1
static Pointer itk::RingBuffer< TElement >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::RingBuffer< TElement >::operator= | ( | const Self & | ) | [private] |
Vector of pointers to elements
Reimplemented from itk::Object.
void itk::RingBuffer< TElement >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
-PROTECTED METHODS------------------------------------------------------
Reimplemented from itk::Object.
void itk::RingBuffer< TElement >::SetBufferContents | ( | OffsetValueType | offset, |
ElementPointer | element | ||
) |
Set the buffer contents of a buffer
void itk::RingBuffer< TElement >::SetNumberOfBuffers | ( | SizeValueType | sz | ) |
Set the number of buffers WARNING: If the size is set smaller than the current buffer size, the tail of the buffer will be chopped off
SizeValueType itk::RingBuffer< TElement >::m_HeadIndex [protected] |
-PROTECTED MEMBERS------------------------------------------------------ Pointer to the current active buffer
Definition at line 109 of file itkRingBuffer.h.
std::vector<ElementPointer> itk::RingBuffer< TElement >::m_PointerVector [protected] |
Vector of pointers to elements
Definition at line 112 of file itkRingBuffer.h.