Skip to content

Commit

Permalink
Merge pull request #525 from dartsim/grey/fix_copy_safety
Browse files Browse the repository at this point in the history
Fix Copy Safety
  • Loading branch information
jslee02 committed Oct 16, 2015
2 parents e0a1e05 + ec45025 commit a05a2ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dart/dynamics/BodyNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ class BodyNode :
virtual ~Properties() = default;
};

BodyNode(const BodyNode&) = delete;

/// Destructor
virtual ~BodyNode();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/Entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class Entity : public virtual common::Subject
/// Constructor for typical usage
explicit Entity(Frame* _refFrame, const std::string& _name, bool _quiet);

Entity(const Entity&) = delete;

/// Destructor
virtual ~Entity();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class Frame : public virtual Entity
friend class Entity;
friend class WorldFrame;

Frame(const Frame&) = delete;

/// Destructor
virtual ~Frame();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/Joint.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ class Joint : public virtual common::Subject
/// Default actuator type
static const ActuatorType DefaultActuatorType;

Joint(const Joint&) = delete;

/// Destructor
virtual ~Joint();

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/MetaSkeleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class MetaSkeleton : public common::Subject
const std::string& _oldName,
const std::string& _newName)>;

MetaSkeleton(const MetaSkeleton&) = delete;

/// Default destructor
virtual ~MetaSkeleton() = default;

Expand Down
2 changes: 2 additions & 0 deletions dart/dynamics/Skeleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class Skeleton : public MetaSkeleton
/// Get the mutex that protects the state of this Skeleton
std::mutex& getMutex() const;

Skeleton(const Skeleton&) = delete;

/// Destructor
virtual ~Skeleton();

Expand Down

0 comments on commit a05a2ef

Please sign in to comment.