Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
468a2f79
Commit
468a2f79
authored
18 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Mise a jour ObjectList pour compilation sous MinGW, Cygwin sans warning.
parent
00089526
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Common/otbObjectList.h
+34
-12
34 additions, 12 deletions
Code/Common/otbObjectList.h
Code/Common/otbObjectList.txx
+1
-1
1 addition, 1 deletion
Code/Common/otbObjectList.txx
with
35 additions
and
13 deletions
Code/Common/otbObjectList.h
+
34
−
12
View file @
468a2f79
...
...
@@ -31,12 +31,11 @@ namespace otb
* methods and iterators interfaces.
*/
template
<
class
TObject
>
class
ITK_EXPORT
ObjectList
:
public
itk
::
DataObject
class
ITK_EXPORT
ObjectList
:
public
itk
::
DataObject
{
public:
/** Standard typedefs */
typedef
ObjectList
<
TObject
>
Self
;
/** Standard typedefs */
typedef
ObjectList
Self
;
typedef
itk
::
DataObject
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
...
...
@@ -109,13 +108,19 @@ class ITK_EXPORT ObjectList
*/
void
Clear
(
void
);
class
ConstIterator
;
class
ReverseConstIterator
;
class
ConstIterator
;
class
ReverseIterator
;
class
ReverseConstIterator
;
class
Iterator
;
friend
class
Iterator
;
friend
class
ConstIterator
;
friend
class
ReverseIterator
;
friend
class
ReverseConstIterator
;
/** \class Iterator
* \brief Iterator of the object list.
*/
class
Iterator
class
ITK_EXPORT
Iterator
{
public:
friend
class
ObjectList
;
...
...
@@ -163,7 +168,15 @@ class ITK_EXPORT ObjectList
/**
* Copy operator.
*/
Iterator
(
const
Iterator
&
it
);
Iterator
(
const
Iterator
&
it
);
/**
* Get the current internal iterator
*/
InternalIteratorType
&
GetIter
(
void
)
{
return
(
m_Iter
);
}
private
:
// Internal iterator.
InternalIteratorType
m_Iter
;
...
...
@@ -171,10 +184,12 @@ class ITK_EXPORT ObjectList
/** \class ConstIterator
* \brief ConstIterator of the object list.
*/
class
ConstIterator
class
ITK_EXPORT
ConstIterator
{
public:
/** typedef of the internal iterator */
friend
class
ObjectList
;
friend
class
Iterator
;
/** typedef of the internal iterator */
typedef
typename
InternalContainerType
::
const_iterator
InternalConstIteratorType
;
/** Constructor */
ConstIterator
();
...
...
@@ -225,9 +240,12 @@ class ITK_EXPORT ObjectList
/** \class ReverseIterator
* \brief ReverseIterator of the object list.
*/
class
ReverseIterator
class
ITK_EXPORT
ReverseIterator
{
public:
friend
class
ObjectList
;
friend
class
Iterator
;
friend
class
ReverseConstIterator
;
/** typedef of the internal iterator */
typedef
typename
InternalContainerType
::
reverse_iterator
InternalReverseIteratorType
;
...
...
@@ -272,9 +290,13 @@ class ITK_EXPORT ObjectList
/** \class ReverseConstIterator
* \brief ReverseConstIterator of the object list.
*/
class
ReverseConstIterator
class
ITK_EXPORT
ReverseConstIterator
{
public:
friend
class
ObjectList
;
friend
class
Iterator
;
friend
class
ConstIterator
;
friend
class
ReverseIterator
;
/** typedef of the internal iterator */
typedef
typename
InternalContainerType
::
reverse_iterator
InternalReverseConstIteratorType
;
/** Constructor */
...
...
This diff is collapsed.
Click to expand it.
Code/Common/otbObjectList.txx
+
1
−
1
View file @
468a2f79
...
...
@@ -661,7 +661,7 @@ namespace otb
ObjectList<TObject>
::Erase(Iterator begin, Iterator end)
{
m_InternalContainer.erase(begin.
m_
Iter,end.
m_
Iter);
m_InternalContainer.erase(begin.
Get
Iter
()
,end.
Get
Iter
()
);
}
/**PrintSelf method */
template <class TObject>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment