Skip to content
Snippets Groups Projects
Commit f43e6d49 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: changing some ObjectList methods to const (enabling progress reporter)

parent 43025652
No related branches found
No related tags found
No related merge requests found
......@@ -60,12 +60,12 @@ public:
* Get the capacity of the vector.
* \return The capacity of the vector.
*/
unsigned int Capacity(void);
unsigned int Capacity(void) const;
/**
* Get the number of elements in the vector.
* \return The number of elements in the vector.
*/
unsigned int Size(void);
unsigned int Size(void) const;
/**
* Resize the maximal list capacity.
* \param size The new maximal size of the list.
......@@ -87,7 +87,7 @@ public:
* \param index The index of the object to get.
* \return The pointer to the nth element of the list.
*/
ObjectPointerType GetNthElement(unsigned int index);
ObjectPointerType GetNthElement(unsigned int index) const;
/**
* Return the first element of the list.
* \return The first element of the list.
......
......@@ -47,7 +47,7 @@ namespace otb
template <class TObject>
unsigned int
ObjectList<TObject>
::Capacity(void)
::Capacity(void) const
{
return m_InternalContainer.capacity();
}
......@@ -58,7 +58,7 @@ namespace otb
template <class TObject>
unsigned int
ObjectList<TObject>
::Size(void)
::Size(void) const
{
return m_InternalContainer.size();
}
......@@ -104,7 +104,7 @@ namespace otb
template <class TObject>
typename ObjectList<TObject>::ObjectPointerType
ObjectList<TObject>
::GetNthElement(unsigned int index)
::GetNthElement(unsigned int index) const
{
return m_InternalContainer[index];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment