playrho::d2::TypeJointVisitor Class Reference

Typing JointVisitor. More...

#include <TypeJointVisitor.hpp>

Public Member Functions

void Visit (const RevoluteJoint &) override
 Visits a revolute joint (RevoluteJoint). More...
 
void Visit (RevoluteJoint &) override
 Visits a revolute joint (RevoluteJoint). More...
 
void Visit (const PrismaticJoint &) override
 Visits a prismatic joint (PrismaticJoint). More...
 
void Visit (PrismaticJoint &) override
 Visits a prismatic joint (PrismaticJoint). More...
 
void Visit (const DistanceJoint &) override
 Visits a distance joint (DistanceJoint). More...
 
void Visit (DistanceJoint &) override
 Visits a distance joint (DistanceJoint). More...
 
void Visit (const PulleyJoint &) override
 Visits a pulley joint (PulleyJoint). More...
 
void Visit (PulleyJoint &) override
 Visits a pulley joint (PulleyJoint). More...
 
void Visit (const TargetJoint &) override
 Visits a target joint (TargetJoint). More...
 
void Visit (TargetJoint &) override
 Visits a target joint (TargetJoint). More...
 
void Visit (const GearJoint &) override
 Visits a gear joint (GearJoint). More...
 
void Visit (GearJoint &) override
 Visits a gear joint (GearJoint). More...
 
void Visit (const WheelJoint &) override
 Visits a wheel joint (WheelJoint). More...
 
void Visit (WheelJoint &) override
 Visits a wheel joint (WheelJoint). More...
 
void Visit (const WeldJoint &) override
 Visits a weld joint (WeldJoint). More...
 
void Visit (WeldJoint &) override
 Visits a weld joint (WeldJoint). More...
 
void Visit (const FrictionJoint &) override
 Visits a friction joint (FrictionJoint). More...
 
void Visit (FrictionJoint &) override
 Visits a friction joint (FrictionJoint). More...
 
void Visit (const RopeJoint &) override
 Visits a rope joint (RopeJoint). More...
 
void Visit (RopeJoint &) override
 Visits a rope joint (RopeJoint). More...
 
void Visit (const MotorJoint &) override
 Visits a motor joint (MotorJoint). More...
 
void Visit (MotorJoint &) override
 Visits a motor joint (MotorJoint). More...
 
Optional< JointTypeGetType () const noexcept
 Gets the type of joint that had been visited. More...
 
bool GetWritable () const noexcept
 Gets whether the visited type was writable or not. More...
 
- Public Member Functions inherited from playrho::d2::JointVisitor
virtual ~JointVisitor ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from playrho::d2::JointVisitor
 JointVisitor ()=default
 
 JointVisitor (const JointVisitor &other)=default
 Copy constructor. More...
 
 JointVisitor (JointVisitor &&other)=default
 Move constructor. More...
 
JointVisitoroperator= (const JointVisitor &other)=default
 Copy assignment operator. More...
 
JointVisitoroperator= (JointVisitor &&other)=default
 Move assignment operator. More...
 

Detailed Description

Typing JointVisitor.

Records the type of joint that gets visited.

Definition at line 33 of file TypeJointVisitor.hpp.

Member Function Documentation

◆ Visit() [1/22]

void playrho::d2::TypeJointVisitor::Visit ( const RevoluteJoint joint)
inlineoverridevirtual

Visits a revolute joint (RevoluteJoint).

Implements playrho::d2::JointVisitor.

Definition at line 37 of file TypeJointVisitor.hpp.

◆ Visit() [2/22]

void playrho::d2::TypeJointVisitor::Visit ( RevoluteJoint joint)
inlineoverridevirtual

Visits a revolute joint (RevoluteJoint).

Implements playrho::d2::JointVisitor.

Definition at line 42 of file TypeJointVisitor.hpp.

◆ Visit() [3/22]

void playrho::d2::TypeJointVisitor::Visit ( const PrismaticJoint joint)
inlineoverridevirtual

Visits a prismatic joint (PrismaticJoint).

Implements playrho::d2::JointVisitor.

Definition at line 48 of file TypeJointVisitor.hpp.

◆ Visit() [4/22]

void playrho::d2::TypeJointVisitor::Visit ( PrismaticJoint joint)
inlineoverridevirtual

Visits a prismatic joint (PrismaticJoint).

Implements playrho::d2::JointVisitor.

Definition at line 53 of file TypeJointVisitor.hpp.

◆ Visit() [5/22]

void playrho::d2::TypeJointVisitor::Visit ( const DistanceJoint joint)
inlineoverridevirtual

Visits a distance joint (DistanceJoint).

Implements playrho::d2::JointVisitor.

Definition at line 59 of file TypeJointVisitor.hpp.

◆ Visit() [6/22]

void playrho::d2::TypeJointVisitor::Visit ( DistanceJoint joint)
inlineoverridevirtual

Visits a distance joint (DistanceJoint).

Implements playrho::d2::JointVisitor.

Definition at line 64 of file TypeJointVisitor.hpp.

◆ Visit() [7/22]

void playrho::d2::TypeJointVisitor::Visit ( const PulleyJoint joint)
inlineoverridevirtual

Visits a pulley joint (PulleyJoint).

Implements playrho::d2::JointVisitor.

Definition at line 70 of file TypeJointVisitor.hpp.

◆ Visit() [8/22]

void playrho::d2::TypeJointVisitor::Visit ( PulleyJoint joint)
inlineoverridevirtual

Visits a pulley joint (PulleyJoint).

Implements playrho::d2::JointVisitor.

Definition at line 75 of file TypeJointVisitor.hpp.

◆ Visit() [9/22]

void playrho::d2::TypeJointVisitor::Visit ( const TargetJoint joint)
inlineoverridevirtual

Visits a target joint (TargetJoint).

Implements playrho::d2::JointVisitor.

Definition at line 81 of file TypeJointVisitor.hpp.

◆ Visit() [10/22]

void playrho::d2::TypeJointVisitor::Visit ( TargetJoint joint)
inlineoverridevirtual

Visits a target joint (TargetJoint).

Implements playrho::d2::JointVisitor.

Definition at line 86 of file TypeJointVisitor.hpp.

◆ Visit() [11/22]

void playrho::d2::TypeJointVisitor::Visit ( const GearJoint joint)
inlineoverridevirtual

Visits a gear joint (GearJoint).

Implements playrho::d2::JointVisitor.

Definition at line 92 of file TypeJointVisitor.hpp.

◆ Visit() [12/22]

void playrho::d2::TypeJointVisitor::Visit ( GearJoint joint)
inlineoverridevirtual

Visits a gear joint (GearJoint).

Implements playrho::d2::JointVisitor.

Definition at line 97 of file TypeJointVisitor.hpp.

◆ Visit() [13/22]

void playrho::d2::TypeJointVisitor::Visit ( const WheelJoint joint)
inlineoverridevirtual

Visits a wheel joint (WheelJoint).

Implements playrho::d2::JointVisitor.

Definition at line 103 of file TypeJointVisitor.hpp.

◆ Visit() [14/22]

void playrho::d2::TypeJointVisitor::Visit ( WheelJoint joint)
inlineoverridevirtual

Visits a wheel joint (WheelJoint).

Implements playrho::d2::JointVisitor.

Definition at line 108 of file TypeJointVisitor.hpp.

◆ Visit() [15/22]

void playrho::d2::TypeJointVisitor::Visit ( const WeldJoint joint)
inlineoverridevirtual

Visits a weld joint (WeldJoint).

Implements playrho::d2::JointVisitor.

Definition at line 114 of file TypeJointVisitor.hpp.

◆ Visit() [16/22]

void playrho::d2::TypeJointVisitor::Visit ( WeldJoint joint)
inlineoverridevirtual

Visits a weld joint (WeldJoint).

Implements playrho::d2::JointVisitor.

Definition at line 119 of file TypeJointVisitor.hpp.

◆ Visit() [17/22]

void playrho::d2::TypeJointVisitor::Visit ( const FrictionJoint joint)
inlineoverridevirtual

Visits a friction joint (FrictionJoint).

Implements playrho::d2::JointVisitor.

Definition at line 125 of file TypeJointVisitor.hpp.

◆ Visit() [18/22]

void playrho::d2::TypeJointVisitor::Visit ( FrictionJoint joint)
inlineoverridevirtual

Visits a friction joint (FrictionJoint).

Implements playrho::d2::JointVisitor.

Definition at line 130 of file TypeJointVisitor.hpp.

◆ Visit() [19/22]

void playrho::d2::TypeJointVisitor::Visit ( const RopeJoint joint)
inlineoverridevirtual

Visits a rope joint (RopeJoint).

Implements playrho::d2::JointVisitor.

Definition at line 136 of file TypeJointVisitor.hpp.

◆ Visit() [20/22]

void playrho::d2::TypeJointVisitor::Visit ( RopeJoint joint)
inlineoverridevirtual

Visits a rope joint (RopeJoint).

Implements playrho::d2::JointVisitor.

Definition at line 141 of file TypeJointVisitor.hpp.

◆ Visit() [21/22]

void playrho::d2::TypeJointVisitor::Visit ( const MotorJoint joint)
inlineoverridevirtual

Visits a motor joint (MotorJoint).

Implements playrho::d2::JointVisitor.

Definition at line 147 of file TypeJointVisitor.hpp.

◆ Visit() [22/22]

void playrho::d2::TypeJointVisitor::Visit ( MotorJoint joint)
inlineoverridevirtual

Visits a motor joint (MotorJoint).

Implements playrho::d2::JointVisitor.

Definition at line 152 of file TypeJointVisitor.hpp.

◆ GetType()

Optional<JointType> playrho::d2::TypeJointVisitor::GetType ( ) const
inlinenoexcept

Gets the type of joint that had been visited.

Definition at line 159 of file TypeJointVisitor.hpp.

◆ GetWritable()

bool playrho::d2::TypeJointVisitor::GetWritable ( ) const
inlinenoexcept

Gets whether the visited type was writable or not.

Definition at line 165 of file TypeJointVisitor.hpp.


The documentation for this class was generated from the following file: