![]() |
OTB
6.5.0
Orfeo Toolbox
|
#include <otbObjectList.h>
Classes | |
class | ConstIterator |
class | Iterator |
class | ReverseConstIterator |
class | ReverseIterator |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static void | SetGlobalReleaseDataFlag (bool val) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
ObjectList () | |
~ObjectList () ITK_OVERRIDE | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const ITK_OVERRIDE |
![]() | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
![]() | |
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 Member Functions | |
ObjectList (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
InternalContainerType | m_InternalContainer |
Friends | |
class | ConstIterator |
class | Iterator |
class | ReverseConstIterator |
class | ReverseIterator |
Additional Inherited Members | |
![]() | |
AtomicInt< int > | m_ReferenceCount |
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 39 of file otbObjectList.h.
typedef itk::SmartPointer<const Self> otb::ObjectList< TObject >::ConstPointer |
Definition at line 46 of file otbObjectList.h.
typedef InternalContainerType::size_type otb::ObjectList< TObject >::InternalContainerSizeType |
Definition at line 58 of file otbObjectList.h.
typedef std::vector<ObjectPointerType> otb::ObjectList< TObject >::InternalContainerType |
Definition at line 57 of file otbObjectList.h.
typedef itk::SmartPointer<ObjectType> otb::ObjectList< TObject >::ObjectPointerType |
Definition at line 56 of file otbObjectList.h.
typedef TObject otb::ObjectList< TObject >::ObjectType |
Template parameter typedefs
Definition at line 52 of file otbObjectList.h.
typedef itk::SmartPointer<Self> otb::ObjectList< TObject >::Pointer |
Definition at line 45 of file otbObjectList.h.
typedef ObjectList otb::ObjectList< TObject >::Self |
Standard typedefs
Definition at line 43 of file otbObjectList.h.
typedef itk::DataObject otb::ObjectList< TObject >::Superclass |
Definition at line 44 of file otbObjectList.h.
|
protected |
Constructor
Definition at line 34 of file otbObjectList.txx.
|
inlineprotected |
Destructor
Definition at line 683 of file otbObjectList.h.
|
private |
ObjectList< TObject >::ObjectPointerType otb::ObjectList< TObject >::Back | ( | void | ) |
Return the last element of the list.
Definition at line 194 of file otbObjectList.txx.
ObjectList< TObject >::Iterator otb::ObjectList< TObject >::Begin | ( | void | ) |
Get an Iterator that points to the beginning of the container.
Definition at line 266 of file otbObjectList.txx.
Referenced by otb::MorphologicalPyramidSynthesisFilter< TInputImage, TOutputImage >::GenerateData().
ObjectList< TObject >::ConstIterator otb::ObjectList< TObject >::Begin | ( | void | ) | const |
Get a ConstIterator that points to the beginning of the container.
Definition at line 279 of file otbObjectList.txx.
ObjectList< TObject >::InternalContainerSizeType otb::ObjectList< TObject >::Capacity | ( | void | ) | const |
Get the capacity of the vector.
Definition at line 56 of file otbObjectList.txx.
void otb::ObjectList< TObject >::Clear | ( | void | ) |
Clear the object list.
Definition at line 224 of file otbObjectList.txx.
Referenced by otb::PersistentHistogramVectorImageFilter< TInputImage >::Reset().
|
virtual |
Reimplemented from itk::Object.
ObjectList< TObject >::Iterator otb::ObjectList< TObject >::End | ( | void | ) |
Get an Iterator that points past-the-end of the container.
Definition at line 318 of file otbObjectList.txx.
Referenced by otb::MorphologicalPyramidSynthesisFilter< TInputImage, TOutputImage >::GenerateData().
ObjectList< TObject >::ConstIterator otb::ObjectList< TObject >::End | ( | void | ) | const |
Get a ConstIterator that points past-the-end of the container.
Definition at line 331 of file otbObjectList.txx.
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 206 of file otbObjectList.txx.
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 371 of file otbObjectList.txx.
References otb::ObjectList< TObject >::Iterator::GetIter().
void otb::ObjectList< TObject >::Erase | ( | Iterator | loc | ) |
Erase loc element.
loc | Iterator pointing on object to erase. |
Definition at line 384 of file otbObjectList.txx.
References otb::ObjectList< TObject >::Iterator::GetIter().
ObjectList< TObject >::ObjectPointerType otb::ObjectList< TObject >::Front | ( | void | ) |
Return the first element of the list.
Definition at line 183 of file otbObjectList.txx.
|
virtual |
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 164 of file otbObjectList.txx.
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 237 of file otbObjectList.txx.
References otb::ObjectList< TObject >::Iterator::GetIter().
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 251 of file otbObjectList.txx.
References otb::ObjectList< TObject >::ReverseIterator::GetIter().
|
static |
Creation through object factory macro
|
private |
void otb::ObjectList< TObject >::PopBack | ( | void | ) |
Delete the last element to the list.
Definition at line 105 of file otbObjectList.txx.
|
protectedvirtual |
PrintSelf method
Reimplemented from itk::DataObject.
Definition at line 395 of file otbObjectList.txx.
References otb::ObjectList< TObject >::ConstIterator::Get(), itk::Indent::GetNextIndent(), and itk::SmartPointer< TObjectType >::GetPointer().
void otb::ObjectList< TObject >::PushBack | ( | ObjectType * | element | ) |
Append an element to the list.
element | Pointer to the element to append. |
Definition at line 92 of file otbObjectList.txx.
Referenced by otb::MorphologicalPyramidSynthesisFilter< TInputImage, TOutputImage >::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 44 of file otbObjectList.txx.
void otb::ObjectList< TObject >::Resize | ( | InternalContainerSizeType | size | ) |
Resize the maximal list capacity.
size | The new maximal size of the list. |
Definition at line 80 of file otbObjectList.txx.
ObjectList< TObject >::ReverseIterator otb::ObjectList< TObject >::ReverseBegin | ( | void | ) |
Get a ReverseIterator that points to the reverse beginning of the container.
Definition at line 292 of file otbObjectList.txx.
Referenced by otb::MorphologicalPyramidSynthesisFilter< TInputImage, TOutputImage >::GenerateData().
ObjectList< TObject >::ReverseConstIterator otb::ObjectList< TObject >::ReverseBegin | ( | void | ) | const |
Get a ReverseConstIterator that points to the reverse beginning of the container.
Definition at line 305 of file otbObjectList.txx.
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 344 of file otbObjectList.txx.
Referenced by otb::MorphologicalPyramidSynthesisFilter< TInputImage, TOutputImage >::GenerateData().
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 357 of file otbObjectList.txx.
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 123 of file otbObjectList.txx.
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 143 of file otbObjectList.txx.
ObjectList< TObject >::InternalContainerSizeType otb::ObjectList< TObject >::Size | ( | void | ) | const |
Get the number of elements in the vector.
Definition at line 68 of file otbObjectList.txx.
Referenced by otb::Wrapper::TrainImagesBase::ComputePolygonStatistics(), otb::Wrapper::TrainImagesBase::SelectAndExtractTrainSamples(), otb::Wrapper::TrainImagesBase::SelectAndExtractValidationSamples(), and otb::Wrapper::TrainImagesBase::SplitTrainingToValidationSamples().
|
friend |
Definition at line 138 of file otbObjectList.h.
|
friend |
Definition at line 136 of file otbObjectList.h.
|
friend |
Definition at line 140 of file otbObjectList.h.
|
friend |
Definition at line 139 of file otbObjectList.h.
|
private |
The internal std::vector object container
Definition at line 692 of file otbObjectList.h.