use '= default' when default functions should be used
This commit is contained in:
@ -30,8 +30,7 @@
|
||||
Body23Joint::Body23Joint(){
|
||||
DimQandU(4,2);
|
||||
}
|
||||
Body23Joint::~Body23Joint(){
|
||||
}
|
||||
Body23Joint::~Body23Joint() = default;
|
||||
|
||||
JointType Body23Joint::GetType(){
|
||||
return BODY23JOINT;
|
||||
|
||||
@ -30,8 +30,7 @@ FreeBodyJoint::FreeBodyJoint(){
|
||||
DimQandU(7,6);
|
||||
}
|
||||
|
||||
FreeBodyJoint::~FreeBodyJoint(){
|
||||
}
|
||||
FreeBodyJoint::~FreeBodyJoint() = default;
|
||||
|
||||
JointType FreeBodyJoint::GetType(){
|
||||
return FREEBODYJOINT;
|
||||
|
||||
@ -33,8 +33,7 @@ InertialFrame::InertialFrame(){
|
||||
alpha.Zeros();
|
||||
alpha_t.Zeros();
|
||||
}
|
||||
InertialFrame::~InertialFrame(){
|
||||
}
|
||||
InertialFrame::~InertialFrame() = default;
|
||||
|
||||
BodyType InertialFrame::GetType(){
|
||||
return INERTIALFRAME;
|
||||
|
||||
@ -33,8 +33,7 @@ Joint::Joint(){
|
||||
pk_C_k.Identity();
|
||||
}
|
||||
|
||||
Joint::~Joint(){
|
||||
}
|
||||
Joint::~Joint() = default;
|
||||
|
||||
void Joint::SetBodies(Body* b1, Body* b2){
|
||||
body1 = b1;
|
||||
|
||||
@ -26,11 +26,9 @@
|
||||
|
||||
|
||||
|
||||
MixedJoint::MixedJoint(){
|
||||
}
|
||||
MixedJoint::MixedJoint() = default;
|
||||
|
||||
MixedJoint::~MixedJoint(){
|
||||
}
|
||||
MixedJoint::~MixedJoint() = default;
|
||||
|
||||
JointType MixedJoint::GetType(){
|
||||
return MIXEDJOINT;
|
||||
|
||||
@ -19,11 +19,9 @@
|
||||
#include "particle.h"
|
||||
#include "fixedpoint.h"
|
||||
|
||||
Particle::Particle(){
|
||||
}
|
||||
Particle::Particle() = default;
|
||||
|
||||
Particle::~Particle(){
|
||||
}
|
||||
Particle::~Particle() = default;
|
||||
|
||||
BodyType Particle::GetType(){
|
||||
return PARTICLE;
|
||||
|
||||
@ -21,8 +21,7 @@
|
||||
Point::Point(){
|
||||
position.Zeros();
|
||||
}
|
||||
Point::~Point(){
|
||||
}
|
||||
Point::~Point() = default;
|
||||
|
||||
bool Point::ReadIn(std::istream& in){
|
||||
return ReadInPointData(in);
|
||||
|
||||
@ -27,8 +27,7 @@ PrismaticJoint::PrismaticJoint(){
|
||||
u.Dim(1);
|
||||
udot.Dim(1);
|
||||
}
|
||||
PrismaticJoint::~PrismaticJoint(){
|
||||
}
|
||||
PrismaticJoint::~PrismaticJoint() = default;
|
||||
|
||||
JointType PrismaticJoint::GetType(){
|
||||
return PRISMATICJOINT;
|
||||
|
||||
@ -29,8 +29,7 @@ RevoluteJoint::RevoluteJoint(){
|
||||
SetAxisPK(axis);
|
||||
}
|
||||
|
||||
RevoluteJoint::~RevoluteJoint(){
|
||||
}
|
||||
RevoluteJoint::~RevoluteJoint() = default;
|
||||
|
||||
JointType RevoluteJoint::GetType(){
|
||||
return REVOLUTEJOINT;
|
||||
|
||||
@ -20,10 +20,8 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
RigidBody::RigidBody(){
|
||||
}
|
||||
RigidBody::~RigidBody(){
|
||||
}
|
||||
RigidBody::RigidBody() = default;
|
||||
RigidBody::~RigidBody() = default;
|
||||
|
||||
BodyType RigidBody::GetType(){
|
||||
return RIGIDBODY;
|
||||
|
||||
@ -19,12 +19,9 @@
|
||||
#include "system.h"
|
||||
#include "matrices.h"
|
||||
|
||||
Solver::Solver(){
|
||||
Solver::Solver() = default;
|
||||
|
||||
}
|
||||
|
||||
Solver::~Solver(){
|
||||
}
|
||||
Solver::~Solver() = default;
|
||||
|
||||
void Solver::SetSystem(System* s){
|
||||
system = s;
|
||||
|
||||
@ -30,8 +30,7 @@
|
||||
SphericalJoint::SphericalJoint(){
|
||||
DimQandU(4,3);
|
||||
}
|
||||
SphericalJoint::~SphericalJoint(){
|
||||
}
|
||||
SphericalJoint::~SphericalJoint() = default;
|
||||
|
||||
JointType SphericalJoint::GetType(){
|
||||
return SPHERICALJOINT;
|
||||
|
||||
Reference in New Issue
Block a user