OTB
9.0.0
Orfeo Toolbox
|
#include <otbObjectList.h>
Classes | |
class | ConstIterator |
class | Iterator |
class | ReverseConstIterator |
class | ReverseIterator |
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef InternalContainerType::size_type | InternalContainerSizeType |
typedef std::vector< ObjectPointerType > | InternalContainerType |
typedef itk::SmartPointer< ObjectType > | ObjectPointerType |
typedef TObject | ObjectType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ObjectList | Self |
typedef itk::DataObject | Superclass |
Public Member Functions | |
InternalContainerSizeType | Capacity (void) const |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
void | Reserve (InternalContainerSizeType size) |
void | Resize (InternalContainerSizeType size) |
InternalContainerSizeType | Size (void) const override |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
ObjectList () | |
~ObjectList () override | |
Protected Member Functions inherited from otb::DataObjectListInterface | |
DataObjectListInterface ()=default | |
virtual | ~DataObjectListInterface ()=default |
Private Member Functions | |
ObjectList (const Self &)=delete | |
void | operator= (const Self &)=delete |
Private Attributes | |
InternalContainerType | m_InternalContainer |
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
ObjectList stores SmartPointer to ObjectType in a std::vector data structure. It provides the same methods and iterators interfaces.
Definition at line 40 of file otbObjectList.h.
typedef itk::SmartPointer<const Self> otb::ObjectList< TObject >::ConstPointer |
Definition at line 47 of file otbObjectList.h.
typedef InternalContainerType::size_type otb::ObjectList< TObject >::InternalContainerSizeType |
Definition at line 59 of file otbObjectList.h.
typedef std::vector<ObjectPointerType> otb::ObjectList< TObject >::InternalContainerType |
Definition at line 58 of file otbObjectList.h.
typedef itk::SmartPointer<ObjectType> otb::ObjectList< TObject >::ObjectPointerType |
Definition at line 57 of file otbObjectList.h.
typedef TObject otb::ObjectList< TObject >::ObjectType |
Template parameter typedefs
Definition at line 53 of file otbObjectList.h.
typedef itk::SmartPointer<Self> otb::ObjectList< TObject >::Pointer |
Definition at line 46 of file otbObjectList.h.
typedef ObjectList otb::ObjectList< TObject >::Self |
Standard typedefs
Definition at line 44 of file otbObjectList.h.
typedef itk::DataObject otb::ObjectList< TObject >::Superclass |
Definition at line 45 of file otbObjectList.h.
|
protected |
Constructor
Definition at line 33 of file otbObjectList.hxx.
|
inlineoverrideprotected |
Destructor
Definition at line 668 of file otbObjectList.h.
|
privatedelete |
ObjectList< TObject >::ObjectPointerType otb::ObjectList< TObject >::Back | ( | void | ) |
Return the last element of the list.
Definition at line 177 of file otbObjectList.hxx.
ObjectList< TObject >::Iterator otb::ObjectList< TObject >::Begin | ( | void | ) |
Get an Iterator that points to the beginning of the container.
Definition at line 237 of file otbObjectList.hxx.
Referenced by otb::ImageFittingPolygonListFilter< TPath, TImage >::GenerateData().
ObjectList< TObject >::ConstIterator otb::ObjectList< TObject >::Begin | ( | void | ) | const |
Get a ConstIterator that points to the beginning of the container.
Definition at line 248 of file otbObjectList.hxx.
ObjectList< TObject >::InternalContainerSizeType otb::ObjectList< TObject >::Capacity | ( | void | ) | const |
Get the capacity of the vector.
Definition at line 52 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::Clear | ( | void | ) |
Clear the object list.
Definition at line 201 of file otbObjectList.hxx.
Referenced by otb::RegionImageToRectangularPathListFilter< TInputImage, TOutputPath >::GenerateData(), and otb::PersistentHistogramVectorImageFilter< TInputImage >::Reset().
virtual::itk::LightObject::Pointer otb::ObjectList< TObject >::CreateAnother | ( | void | ) | const |
ObjectList< TObject >::Iterator otb::ObjectList< TObject >::End | ( | void | ) |
Get an Iterator that points past-the-end of the container.
Definition at line 281 of file otbObjectList.hxx.
Referenced by otb::ImageFittingPolygonListFilter< TPath, TImage >::GenerateData().
ObjectList< TObject >::ConstIterator otb::ObjectList< TObject >::End | ( | void | ) | const |
Get a ConstIterator that points past-the-end of the container.
Definition at line 292 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::Erase | ( | Iterator | begin, |
Iterator | end | ||
) |
Erase elements from begin to last.
begin | Iterator pointing on first object to erase. |
end | Iterator pointing past the last object to erase. |
Definition at line 326 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::Erase | ( | Iterator | loc | ) |
Erase loc element.
loc | Iterator pointing on object to erase. |
Definition at line 337 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::Erase | ( | unsigned int | index | ) |
Erase the nth element of the list.
index | The index of the element to erase. |
Erase the nth element in the list.
index | The index of the element to erase. |
Definition at line 187 of file otbObjectList.hxx.
ObjectList< TObject >::ObjectPointerType otb::ObjectList< TObject >::Front | ( | void | ) |
Return the first element of the list.
Definition at line 168 of file otbObjectList.hxx.
|
virtual |
Type macro
|
overridevirtual |
Get the nth element of the list as a DataObject *.
index | The index of the object to get. |
Implements otb::DataObjectListInterface.
Definition at line 156 of file otbObjectList.hxx.
ObjectList< TObject >::ObjectPointerType otb::ObjectList< TObject >::GetNthElement | ( | unsigned int | index | ) | const |
Get the nth element of the list.
index | The index of the object to get. |
Definition at line 144 of file otbObjectList.hxx.
Referenced by otb::Wrapper::TrainImagesBase::ComputePolygonStatistics(), otb::Wrapper::TrainImagesBase::SelectAndExtractTrainSamples(), otb::Wrapper::TrainImagesBase::SelectAndExtractValidationSamples(), otb::Wrapper::TrainImagesBase::SplitTrainingToValidationSamples(), otb::PersistentHistogramVectorImageFilter< TInputImage >::Synthetize(), and otb::Wrapper::TrainImagesBase::TrainModel().
ObjectList< TObject >::Iterator otb::ObjectList< TObject >::Insert | ( | Iterator | position, |
ObjectPointerType | element | ||
) |
Insert an element at a given position
position | A random access iterator |
Insert an element
Definition at line 212 of file otbObjectList.hxx.
ObjectList< TObject >::ReverseIterator otb::ObjectList< TObject >::Insert | ( | ReverseIterator | position, |
ObjectPointerType | element | ||
) |
Insert an element at a given position
position | A reverse iterator |
Insert an element
Definition at line 224 of file otbObjectList.hxx.
|
static |
Creation through object factory macro
|
privatedelete |
void otb::ObjectList< TObject >::PopBack | ( | void | ) |
Delete the last element to the list.
Definition at line 93 of file otbObjectList.hxx.
|
overrideprotected |
PrintSelf method
Definition at line 346 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::PushBack | ( | ObjectType * | element | ) |
Append an element to the list.
element | Pointer to the element to append. |
Definition at line 82 of file otbObjectList.hxx.
Referenced by otb::ImageFittingPolygonListFilter< TPath, TImage >::GenerateData(), otb::RegionImageToRectangularPathListFilter< TInputImage, TOutputPath >::GenerateData(), and otb::PersistentHistogramVectorImageFilter< TInputImage >::Reset().
void otb::ObjectList< TObject >::Reserve | ( | InternalContainerSizeType | size | ) |
Set the minimum capacity of the vector.
size | Size of the vector to reserve. |
Definition at line 42 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::Resize | ( | InternalContainerSizeType | size | ) |
Resize the maximal list capacity.
size | The new maximal size of the list. |
Definition at line 72 of file otbObjectList.hxx.
ObjectList< TObject >::ReverseIterator otb::ObjectList< TObject >::ReverseBegin | ( | void | ) |
Get a ReverseIterator that points to the reverse beginning of the container.
Definition at line 259 of file otbObjectList.hxx.
ObjectList< TObject >::ReverseConstIterator otb::ObjectList< TObject >::ReverseBegin | ( | void | ) | const |
Get a ReverseConstIterator that points to the reverse beginning of the container.
Definition at line 270 of file otbObjectList.hxx.
ObjectList< TObject >::ReverseIterator otb::ObjectList< TObject >::ReverseEnd | ( | void | ) |
Get a ReverseIterator that points to the reverse past-the-end of the container.
Definition at line 303 of file otbObjectList.hxx.
ObjectList< TObject >::ReverseConstIterator otb::ObjectList< TObject >::ReverseEnd | ( | void | ) | const |
Get a ReverseConstIterator that points to the reverse past-the-end of the container.
Definition at line 314 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::SetNthElement | ( | unsigned int | index, |
const ObjectType * | element | ||
) |
Set the nth element of the list.
index | The index where to put the element. |
element | Pointer to the element to set. |
Definition at line 126 of file otbObjectList.hxx.
void otb::ObjectList< TObject >::SetNthElement | ( | unsigned int | index, |
ObjectPointerType | element | ||
) |
Set the nth element of the list.
index | The index where to put the element. |
element | Pointer to the element to set. |
Definition at line 109 of file otbObjectList.hxx.
|
overridevirtual |
Get the number of elements in the vector.
Implements otb::DataObjectListInterface.
Definition at line 62 of file otbObjectList.hxx.
Referenced by otb::Wrapper::TrainImagesBase::ComputePolygonStatistics(), otb::Wrapper::TrainImagesBase::SelectAndExtractTrainSamples(), otb::Wrapper::TrainImagesBase::SelectAndExtractValidationSamples(), and otb::Wrapper::TrainImagesBase::SplitTrainingToValidationSamples().
|
friend |
Definition at line 145 of file otbObjectList.h.
|
friend |
Definition at line 143 of file otbObjectList.h.
|
friend |
Definition at line 147 of file otbObjectList.h.
|
friend |
Definition at line 146 of file otbObjectList.h.
|
private |
The internal std::vector object container
Definition at line 679 of file otbObjectList.h.