Commit c623ef89 authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: use proper typedef for portablity

parent da89bdd6
......@@ -52,27 +52,28 @@ public:
typedef TObject ObjectType;
typedef itk::SmartPointer<ObjectType> ObjectPointerType;
typedef std::vector<ObjectPointerType> InternalContainerType;
typedef typename InternalContainerType::size_type InternalContainerSizeType;
/**
* Set the minimum capacity of the vector.
* \param size Size of the vector to reserve.
*/
void Reserve(unsigned int size);
void Reserve(InternalContainerSizeType size);
/**
* Get the capacity of the vector.
* \return The capacity of the vector.
*/
unsigned int Capacity(void) const;
InternalContainerSizeType Capacity(void) const;
/**
* Get the number of elements in the vector.
* \return The number of elements in the vector.
*/
unsigned int Size(void) const;
InternalContainerSizeType Size(void) const;
/**
* Resize the maximal list capacity.
* \param size The new maximal size of the list.
*/
void Resize(unsigned int size);
void Resize(InternalContainerSizeType size);
/**
* Append an element to the list.
* \param element Pointer to the element to append.
......
......@@ -37,7 +37,7 @@ ObjectList<TObject>
template <class TObject>
void
ObjectList<TObject>
::Reserve(unsigned int size)
::Reserve(InternalContainerSizeType size)
{
m_InternalContainer.reserve(size);
}
......@@ -46,7 +46,7 @@ ObjectList<TObject>
* \return The capacity of the vector.
*/
template <class TObject>
unsigned int
typename ObjectList<TObject>::InternalContainerSizeType
ObjectList<TObject>
::Capacity(void) const
{
......@@ -57,7 +57,7 @@ ObjectList<TObject>
* \return The number of elements in the vector.
*/
template <class TObject>
unsigned int
typename ObjectList<TObject>::InternalContainerSizeType
ObjectList<TObject>
::Size(void) const
{
......@@ -70,7 +70,7 @@ ObjectList<TObject>
template <class TObject>
void
ObjectList<TObject>
::Resize(unsigned int size)
::Resize(InternalContainerSizeType size)
{
m_InternalContainer.resize(size);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment