DART  6.10.1
dart::common::VersionCounter Class Reference

VersionCounter is an interface for objects that count their versions. More...

#include <VersionCounter.hpp>

Inheritance diagram for dart::common::VersionCounter:
dart::dynamics::FixedFrame dart::dynamics::Joint dart::dynamics::Node dart::dynamics::Shape dart::dynamics::ShapeFrame dart::dynamics::Skeleton dart::dynamics::ZeroDofJoint dart::dynamics::JacobianNode dart::dynamics::HeightmapShape< S > dart::dynamics::BoxShape dart::dynamics::CapsuleShape dart::dynamics::ConeShape dart::dynamics::CylinderShape dart::dynamics::EllipsoidShape dart::dynamics::HeightmapShape< S_ > dart::dynamics::LineSegmentShape dart::dynamics::MeshShape dart::dynamics::MultiSphereConvexHullShape dart::dynamics::PlaneShape dart::dynamics::PointCloudShape dart::dynamics::PyramidShape dart::dynamics::SoftMeshShape dart::dynamics::SphereShape dart::dynamics::SimpleFrame

Public Member Functions

 VersionCounter ()
 Default constructor. More...
 
virtual std::size_t incrementVersion ()
 Increment the version for this object. More...
 
virtual std::size_t getVersion () const
 Get the version number of this object. More...
 
virtual ~VersionCounter ()=default
 

Protected Member Functions

void setVersionDependentObject (VersionCounter *dependent)
 

Protected Attributes

std::size_t mVersion
 

Private Attributes

VersionCountermDependent
 

Detailed Description

VersionCounter is an interface for objects that count their versions.

Constructor & Destructor Documentation

◆ VersionCounter()

dart::common::VersionCounter::VersionCounter ( )

Default constructor.

◆ ~VersionCounter()

virtual dart::common::VersionCounter::~VersionCounter ( )
virtualdefault

Member Function Documentation

◆ getVersion()

std::size_t dart::common::VersionCounter::getVersion ( ) const
virtual

Get the version number of this object.

◆ incrementVersion()

std::size_t dart::common::VersionCounter::incrementVersion ( )
virtual

Increment the version for this object.

Reimplemented in dart::dynamics::Shape.

◆ setVersionDependentObject()

void dart::common::VersionCounter::setVersionDependentObject ( VersionCounter dependent)
protected

Member Data Documentation

◆ mDependent

VersionCounter* dart::common::VersionCounter::mDependent
private

◆ mVersion

std::size_t dart::common::VersionCounter::mVersion
protected