Skip to content

Commit bff3eec

Browse files
committed
Make IntegratorAbstract pure virtual class.
1 parent 24339bc commit bff3eec

File tree

4 files changed

+3
-55
lines changed

4 files changed

+3
-55
lines changed

include/sot/core/integrator-abstract.hh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ template<class sigT, class coefT>
5656
class IntegratorAbstract
5757
:public dg::Entity
5858
{
59-
public:
60-
virtual const std::string& getClassName() const { return dg::Entity::getClassName(); }
61-
static std::string getTypeName( void ) { return "Unknown"; }
62-
static const std::string CLASS_NAME;
63-
6459
public:
6560
IntegratorAbstract ( const std::string& name )
6661
:dg::Entity(name)

src/matrix/integrator-abstract.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
#include <sot/core/integrator-abstract.hh>
2222

23-
// The specilization
24-
#include "integrator-abstract.t.cpp"
25-
2623
// This ends the specialization part.
2724
// Note that on WIN32, the specialization has to be realized
2825
// before the declaration of the general model.
@@ -34,5 +31,8 @@
3431

3532
IntegratorAbstractVector::IntegratorAbstractVector( const std::string& name ) :
3633
IntegratorAbstract<dynamicgraph::Vector,dynamicgraph::Matrix> (name) {}
34+
35+
IntegratorAbstractVector::IntegratorAbstractVectorDouble( const std::string& name ) :
36+
IntegratorAbstract<dynamicgraph::Vector,double> (name) {}
3737
#endif
3838

src/matrix/integrator-abstract.t.cpp

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/matrix/integrator-euler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include <sot/core/integrator-euler.hh>
2222

23-
#include "integrator-abstract.t.cpp"
2423
#include "integrator-euler.t.cpp"
2524

2625
#include <sot/core/integrator-euler-impl.hh>

0 commit comments

Comments
 (0)