Skip to content

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(GenericContainer , 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

cpp 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

cpp typedef T shapeworks::GenericContainer< T >::DataType;

Standard class typedefs

typedef Self

cpp typedef GenericContainer shapeworks::GenericContainer< T >::Self;

typedef Superclass

cpp typedef DataObject shapeworks::GenericContainer< T >::Superclass;

typedef Pointer

cpp typedef itk::SmartPointer<Self> shapeworks::GenericContainer< T >::Pointer;

typedef ConstPointer

cpp typedef itk::SmartPointer<const Self> shapeworks::GenericContainer< T >::ConstPointer;

typedef ConstWeakPointer

cpp typedef itk::WeakPointer<const Self> shapeworks::GenericContainer< T >::ConstWeakPointer;

Public Functions Documentation

function itkNewMacro

cpp itkNewMacro( Self )

Method for creation through the object factory.

function itkTypeMacro

cpp itkTypeMacro( GenericContainer , itk::DataObject )

Run-time type information (and related methods).

function operator[]

cpp 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

cpp 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

cpp inline unsigned long int GetSize() const

Number of objects in the container.

Protected Functions Documentation

function GenericContainer

cpp inline GenericContainer()

function PrintSelf

cpp inline void PrintSelf( std::ostream & os, itk::Indent indent ) const

function ~GenericContainer

cpp inline virtual ~GenericContainer()


Updated on 2026-03-31 at 16:02:10 +0000