shapeworks::GenericContainer
This class seems to be only a wrapper around std::vector implementing ITK DataObject (for smart pointer?) More...
#include <GenericContainer.h>
Inherits from itk::DataObject
Public Types
Name | |
---|---|
typedef T | DataType |
typedef GenericContainer | Self |
typedef DataObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::WeakPointer< const Self > | ConstWeakPointer |
Public Functions
Name | |
---|---|
itkNewMacro(Self ) | |
itkTypeMacro(ParticleContainer , itk::DataObject ) | |
T & | operator[](size_t k) |
T & | Get(size_t k) |
unsigned long int | GetSize() const |
Protected Functions
Name | |
---|---|
GenericContainer() | |
void | PrintSelf(std::ostream & os, itk::Indent indent) const |
virtual | ~GenericContainer() |
Detailed Description
template <class T >
class shapeworks::GenericContainer;
This class seems to be only a wrapper around std::vector implementing ITK DataObject (for smart pointer?)
One difference being that the set operator will expand the vector if the index is out of bounds.
Public Types Documentation
typedef DataType
typedef T shapeworks::GenericContainer< T >::DataType;
Standard class typedefs
typedef Self
typedef GenericContainer shapeworks::GenericContainer< T >::Self;
typedef Superclass
typedef DataObject shapeworks::GenericContainer< T >::Superclass;
typedef Pointer
typedef itk::SmartPointer<Self> shapeworks::GenericContainer< T >::Pointer;
typedef ConstPointer
typedef itk::SmartPointer<const Self> shapeworks::GenericContainer< T >::ConstPointer;
typedef ConstWeakPointer
typedef itk::WeakPointer<const Self> shapeworks::GenericContainer< T >::ConstWeakPointer;
Public Functions Documentation
function itkNewMacro
itkNewMacro(
Self
)
Method for creation through the object factory.
function itkTypeMacro
itkTypeMacro(
ParticleContainer ,
itk::DataObject
)
Run-time type information (and related methods).
function operator[]
inline T & operator[](
size_t k
)
Returns a reference to the object associated with index k. If the index k does not already exist, this method inserts a new entry for k.
function Get
inline T & Get(
size_t k
)
Convenience method since all usage of this function is via a pointer, leading ugly syntax like ->operator
function GetSize
inline unsigned long int GetSize() const
Number of objects in the container.
Protected Functions Documentation
function GenericContainer
inline GenericContainer()
function PrintSelf
inline void PrintSelf(
std::ostream & os,
itk::Indent indent
) const
function ~GenericContainer
inline virtual ~GenericContainer()
Updated on 2024-03-17 at 12:58:44 -0600