From b37754bbfcd0de521d6037dee9c1922756055cf5 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Tue, 15 Dec 2009 15:41:33 +0800 Subject: [PATCH] STYLE --- Code/Common/otbObjectListToObjectListFilter.h | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Code/Common/otbObjectListToObjectListFilter.h b/Code/Common/otbObjectListToObjectListFilter.h index 35cfe3ffef..3a760cd431 100644 --- a/Code/Common/otbObjectListToObjectListFilter.h +++ b/Code/Common/otbObjectListToObjectListFilter.h @@ -42,10 +42,10 @@ class ITK_EXPORT ObjectListToObjectListFilter : public otb::ObjectListSource<TOu { public: /** Standard class typedefs. */ - typedef ObjectListToObjectListFilter Self; + typedef ObjectListToObjectListFilter Self; typedef otb::ObjectListSource<TOutputList> Superclass; - typedef itk::SmartPointer<Self> Pointer; - typedef itk::SmartPointer<const Self> ConstPointer; + typedef itk::SmartPointer<Self> Pointer; + typedef itk::SmartPointer<const Self> ConstPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); @@ -54,22 +54,19 @@ public: itkTypeMacro(ObjectListToObjectListFilter, ObjectListSource); /** Some typedefs. */ - typedef TInputList InputListType; - typedef TOutputList OutputListType; - typedef typename TInputList::ConstPointer InputListPointer; - typedef typename TOutputList::Pointer OutputListPointer; - typedef typename TInputList::ConstIterator InputListIterator; - typedef typename InputListType::ObjectType InputObjectType; + typedef TInputList InputListType; + typedef TOutputList OutputListType; + typedef typename TInputList::ConstPointer InputListPointer; + typedef typename TOutputList::Pointer OutputListPointer; + typedef typename TInputList::ConstIterator InputListIterator; + typedef typename InputListType::ObjectType InputObjectType; typedef typename OutputListType::ObjectType OutputObjectType; - typedef itk::DataObject::Pointer DataObjectPointer; - - typedef std::vector<OutputListPointer> OutputListForThreadType; + typedef itk::DataObject::Pointer DataObjectPointer; virtual void SetInput( const InputListType *input); const InputListType * GetInput(void); - protected: /** Constructor */ ObjectListToObjectListFilter(); @@ -82,11 +79,14 @@ protected: /** Multi-threading implementation */ + typedef std::vector<OutputListPointer> OutputListForThreadType; + virtual void BeforeThreadedGenerateData(); virtual void AfterThreadedGenerateData() {}; - virtual int SplitRequestedRegion(int threadId, int threadCount, unsigned int requestedElements, unsigned int& startIndex, unsigned int& stopIndex); + virtual int SplitRequestedRegion(int threadId, int threadCount, unsigned int requestedElements, + unsigned int& startIndex, unsigned int& stopIndex); /** startIndex and stopIndex represent the indices of the Objects * to examine in thread threadId */ -- GitLab