OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction > Class Template Reference

#include <otbUnaryFunctorObjectListBooleanFilter.h>

+ Inheritance diagram for otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >:
+ Collaboration diagram for otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >:

Classes

struct  ThreadStruct
 

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef TFunction FunctorType
 
typedef TInputList::ConstIterator InputListIterator
 
typedef TInputList::ConstPointer InputListPointer
 
typedef TInputList InputListType
 
typedef TOutputList::ConstIterator OutputListIterator
 
typedef TOutputList::Pointer OutputListPointer
 
typedef TOutputList OutputListType
 
typedef itk::SmartPointer< SelfPointer
 
typedef UnaryFunctorObjectListBooleanFilter Self
 
typedef otb::ObjectListToObjectListFilter< TInputList, TOutputList > Superclass
 
- Public Types inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef TInputList::ConstIterator InputListIterator
 
typedef TInputList::ConstPointer InputListPointer
 
typedef TInputList InputListType
 
typedef InputListType::ObjectType InputObjectType
 
typedef TOutputList::Pointer OutputListPointer
 
typedef TOutputList OutputListType
 
typedef OutputListType::ObjectType OutputObjectType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ObjectListToObjectListFilter Self
 
typedef otb::ObjectListSource< TOutputList > Superclass
 
- Public Types inherited from otb::ObjectListSource< TOutputList >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef TOutputList::Pointer OutputListPointer
 
typedef TOutputList OutputListType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ObjectListSource Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputListTypeGetInput (void)
 
virtual void SetInput (const InputListType *input)
 
- Public Member Functions inherited from otb::ObjectListSource< TOutputList >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void GraftOutput (itk::DataObject *graft)
 
void GraftNthOutput (DataObjectPointerArraySizeType idx, itk::DataObject *graft)
 
OutputListTypeGetOutput (void)
 
OutputListTypeGetOutput (DataObjectPointerArraySizeType idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
static Pointer New ()
 
- Static Public Member Functions inherited from otb::ObjectListSource< TOutputList >
static Pointer New ()
 
FunctorType m_Functor
 
FunctorTypeGetFunctor ()
 
const FunctorTypeGetFunctor () const
 
void SetFunctor (const FunctorType &functor)
 
 UnaryFunctorObjectListBooleanFilter ()
 
 ~UnaryFunctorObjectListBooleanFilter () override
 
void AfterThreadedGenerateData () override
 
void ThreadedGenerateData (unsigned int startIndex, unsigned int stopIndex, itk::ThreadIdType threadId) override
 
 UnaryFunctorObjectListBooleanFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Additional Inherited Members

- Protected Types inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
typedef std::vector< OutputListPointerOutputListForThreadType
 
- Protected Member Functions inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
virtual void BeforeThreadedGenerateData ()
 
void GenerateData (void) override
 
 ObjectListToObjectListFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual int SplitRequestedRegion (itk::ThreadIdType threadId, int threadCount, unsigned int requestedElements, unsigned int &startIndex, unsigned int &stopIndex)
 
 ~ObjectListToObjectListFilter () override
 
- Protected Member Functions inherited from otb::ObjectListSource< TOutputList >
 ObjectListSource ()
 
 ~ObjectListSource () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void AllocateOutputs ()
 
void GenerateData (void) override
 
- Static Protected Member Functions inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 
- Protected Attributes inherited from otb::ObjectListToObjectListFilter< TInputList, TOutputList >
OutputListForThreadType m_ObjectListPerThread
 

Detailed Description

template<class TInputList, class TOutputList, class TFunction>
class otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >

Filter an ObjectList and keep elements according to the functor value.

Only elements of the list for which the functor evaluate as true are kept in the output list. This is similar to the python filter() function.

Definition at line 41 of file otbUnaryFunctorObjectListBooleanFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputList , class TOutputList , class TFunction >
typedef itk::SmartPointer<const Self> otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::ConstPointer

Definition at line 48 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ FunctorType

template<class TInputList , class TOutputList , class TFunction >
typedef TFunction otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::FunctorType

Some typedefs.

Definition at line 54 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ InputListIterator

template<class TInputList , class TOutputList , class TFunction >
typedef TInputList::ConstIterator otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::InputListIterator

Definition at line 62 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ InputListPointer

template<class TInputList , class TOutputList , class TFunction >
typedef TInputList::ConstPointer otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::InputListPointer

Definition at line 60 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ InputListType

template<class TInputList , class TOutputList , class TFunction >
typedef TInputList otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::InputListType

Definition at line 58 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ OutputListIterator

template<class TInputList , class TOutputList , class TFunction >
typedef TOutputList::ConstIterator otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::OutputListIterator

Definition at line 63 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ OutputListPointer

template<class TInputList , class TOutputList , class TFunction >
typedef TOutputList::Pointer otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::OutputListPointer

Definition at line 61 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ OutputListType

template<class TInputList , class TOutputList , class TFunction >
typedef TOutputList otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::OutputListType

Definition at line 59 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ Pointer

template<class TInputList , class TOutputList , class TFunction >
typedef itk::SmartPointer<Self> otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::Pointer

Definition at line 47 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ Self

template<class TInputList , class TOutputList , class TFunction >
typedef UnaryFunctorObjectListBooleanFilter otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::Self

Standard class typedefs.

Definition at line 45 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ Superclass

template<class TInputList , class TOutputList , class TFunction >
typedef otb::ObjectListToObjectListFilter<TInputList, TOutputList> otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::Superclass

Definition at line 46 of file otbUnaryFunctorObjectListBooleanFilter.h.

Constructor & Destructor Documentation

◆ UnaryFunctorObjectListBooleanFilter() [1/2]

template<class TInputList , class TOutputList , class TFunction >
otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::UnaryFunctorObjectListBooleanFilter
protected

Constructor

Definition at line 34 of file otbUnaryFunctorObjectListBooleanFilter.hxx.

◆ ~UnaryFunctorObjectListBooleanFilter()

template<class TInputList , class TOutputList , class TFunction >
otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::~UnaryFunctorObjectListBooleanFilter ( )
inlineoverrideprotected

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 97 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ UnaryFunctorObjectListBooleanFilter() [2/2]

template<class TInputList , class TOutputList , class TFunction >
otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::UnaryFunctorObjectListBooleanFilter ( const Self )
privatedelete

End Multi-threading implementation

Member Function Documentation

◆ AfterThreadedGenerateData()

template<class TInputList , class TOutputList , class TFunction >
void otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::AfterThreadedGenerateData
overrideprotectedvirtual

Multi-threading implementation

Reimplemented from otb::ObjectListToObjectListFilter< TInputList, TOutputList >.

Definition at line 71 of file otbUnaryFunctorObjectListBooleanFilter.hxx.

◆ CreateAnother()

template<class TInputList , class TOutputList , class TFunction >
virtual::itk::LightObject::Pointer otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::CreateAnother ( void  ) const

◆ GetFunctor() [1/2]

template<class TInputList , class TOutputList , class TFunction >
FunctorType& otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::GetFunctor ( )
inline

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 69 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ GetFunctor() [2/2]

template<class TInputList , class TOutputList , class TFunction >
const FunctorType& otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::GetFunctor ( ) const
inline

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 73 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ GetNameOfClass()

template<class TInputList , class TOutputList , class TFunction >
virtual const char* otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::ObjectListToObjectListFilter< TInputList, TOutputList >.

◆ New()

template<class TInputList , class TOutputList , class TFunction >
static Pointer otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputList , class TOutputList , class TFunction >
void otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::operator= ( const Self )
privatedelete

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

◆ SetFunctor()

template<class TInputList , class TOutputList , class TFunction >
void otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::SetFunctor ( const FunctorType functor)
inline

Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).

Definition at line 85 of file otbUnaryFunctorObjectListBooleanFilter.h.

◆ ThreadedGenerateData()

template<class TInputList , class TOutputList , class TFunction >
void otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::ThreadedGenerateData ( unsigned int  startIndex,
unsigned int  stopIndex,
itk::ThreadIdType  threadId 
)
overrideprotectedvirtual

startIndex and stopIndex represent the indices of the Objects to examine in thread threadId

Reimplemented from otb::ObjectListToObjectListFilter< TInputList, TOutputList >.

Definition at line 39 of file otbUnaryFunctorObjectListBooleanFilter.hxx.

Member Data Documentation

◆ m_Functor

template<class TInputList , class TOutputList , class TFunction >
FunctorType otb::UnaryFunctorObjectListBooleanFilter< TInputList, TOutputList, TFunction >::m_Functor
private

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 121 of file otbUnaryFunctorObjectListBooleanFilter.h.


The documentation for this class was generated from the following files: