Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete copy constructors for non-copyable classes (round 2) -- Patch for 5.1 #539

Merged
merged 1 commit into from
Oct 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dart/dynamics/DegreeOfFreedom.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class DegreeOfFreedom : public virtual common::Subject
template<size_t> friend class MultiDofJoint;
friend class Skeleton;

DegreeOfFreedom(const DegreeOfFreedom&) = delete;

/// Change the name of this DegreeOfFreedom
///
/// The _preserveName argument will be passed to the preserveName(bool)
Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/EulerJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ class EulerJoint : public MultiDofJoint<3>
virtual ~Properties() = default;
};

EulerJoint(const EulerJoint&) = delete;

/// Destructor
virtual ~EulerJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/FreeJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class FreeJoint : public MultiDofJoint<6>
virtual ~Properties() = default;
};

FreeJoint(const FreeJoint&) = delete;

/// Destructor
virtual ~FreeJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/MultiDofJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class MultiDofJoint : public Joint

typedef Eigen::Matrix<double, DOF, 1> Vector;

MultiDofJoint(const MultiDofJoint&) = delete;

struct UniqueProperties
{
/// Lower limit of position
Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/PlanarJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class PlanarJoint : public MultiDofJoint<3>
virtual ~Properties() = default;
};

PlanarJoint(const PlanarJoint&) = delete;

/// Destructor
virtual ~PlanarJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/PrismaticJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class PrismaticJoint : public SingleDofJoint
virtual ~Properties() = default;
};

PrismaticJoint(const PrismaticJoint&) = delete;

/// Destructor
virtual ~PrismaticJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/RevoluteJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class RevoluteJoint : public SingleDofJoint
virtual ~Properties() = default;
};

RevoluteJoint(const RevoluteJoint&) = delete;

/// Destructor
virtual ~RevoluteJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/ScrewJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class ScrewJoint : public SingleDofJoint
virtual ~Properties() = default;
};

ScrewJoint(const ScrewJoint&) = delete;

/// Destructor
virtual ~ScrewJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/TranslationalJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class TranslationalJoint : public MultiDofJoint<3>
virtual ~Properties() = default;
};

TranslationalJoint(const TranslationalJoint&) = delete;

/// Destructor
virtual ~TranslationalJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/UniversalJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class UniversalJoint : public MultiDofJoint<2>
virtual ~Properties() = default;
};

UniversalJoint(const UniversalJoint&) = delete;

/// Destructor
virtual ~UniversalJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/WeldJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class WeldJoint : public ZeroDofJoint
virtual ~Properties() = default;
};

WeldJoint(const WeldJoint&) = delete;

/// Destructor
virtual ~WeldJoint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/ZeroDofJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ZeroDofJoint : public Joint
virtual ~Properties() = default;
};

ZeroDofJoint(const ZeroDofJoint&) = delete;

/// Destructor
virtual ~ZeroDofJoint();

Expand Down