Commit 399a4c39 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

COMP: Add override keyword

parent 814fe1a3
......@@ -146,11 +146,11 @@ protected:
virtual InterfaceStatus CanAcceptConnectionFrom( ComponentBase * other, const InterfaceCriteriaType interfaceCriteria ) override;
virtual unsigned int CountAcceptingInterfaces( const ComponentBase::InterfaceCriteriaType interfaceCriteria )
virtual unsigned int CountAcceptingInterfaces( const ComponentBase::InterfaceCriteriaType interfaceCriteria ) override
{
return AcceptingInterfaces::CountMeetsCriteria( interfaceCriteria );
}
virtual unsigned int CountProvidingInterfaces( const ComponentBase::InterfaceCriteriaType interfaceCriteria )
virtual unsigned int CountProvidingInterfaces( const ComponentBase::InterfaceCriteriaType interfaceCriteria ) override
{
return ProvidingInterfaces::CountMeetsCriteria( interfaceCriteria );
}
......
......@@ -58,6 +58,7 @@ public:
/** Non type-specific GetOutput */
virtual OutputDataType * GetOutput() = 0;
/** This method should be overriden. See fx. the FileReaderDecorator. */
virtual void Update( void ) = 0;
/** GetOutput tries dynamic cast to required output type */
......
......@@ -48,6 +48,7 @@ public:
/** SetInput accepts any input data as long as it is derived from itk::DataObject */
virtual void SetInput( const InputDataType * ) = 0;
/** This method should be overriden. See fx. the FileWriterDecorator. */
virtual void Update( void ) = 0;
protected:
......
Supports Markdown
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