Internal model configuration concept. More...
Public Types | |
using | data_type = T |
Type alias for the type of the data held. | |
Public Member Functions | |
Model (const T &arg) noexcept(std::is_nothrow_copy_constructible_v< T >) | |
Initializing constructor. | |
Model (T &&arg) noexcept(std::is_nothrow_move_constructible_v< T >) | |
Initializing constructor. | |
std::unique_ptr< Concept > | Clone_ () const override |
Clones this concept and returns a pointer to a mutable copy. More... | |
TypeID | GetType_ () const noexcept override |
Gets the use type information. More... | |
const void * | GetData_ () const noexcept override |
Gets the data for the underlying configuration. More... | |
void * | GetData_ () noexcept override |
Gets the data for the underlying configuration. More... | |
bool | IsEqual_ (const Concept &other) const noexcept override |
Equality checking method. | |
BodyID | GetBodyA_ () const noexcept override |
Gets the ID of body-A. More... | |
BodyID | GetBodyB_ () const noexcept override |
Gets the ID of body-B. More... | |
bool | GetCollideConnected_ () const noexcept override |
Gets whether collision handling should be done for connected bodies. More... | |
bool | ShiftOrigin_ (Length2 value) noexcept override |
Call to notify joint of a shift in the world origin. More... | |
void | InitVelocity_ (BodyConstraintsMap &bodies, const playrho::StepConf &step, const ConstraintSolverConf &conf) override |
Initializes the velocities for this joint. More... | |
bool | SolveVelocity_ (BodyConstraintsMap &bodies, const playrho::StepConf &step) override |
Solves the velocities for this joint. More... | |
bool | SolvePosition_ (BodyConstraintsMap &bodies, const ConstraintSolverConf &conf) const override |
Solves the positions for this joint. More... | |
Public Member Functions inherited from playrho::d2::Joint::Concept | |
virtual | ~Concept ()=default |
Explicitly declared virtual destructor. | |
Public Attributes | |
data_type | data |
Data. | |
Internal model configuration concept.
|
inlineoverridevirtual |
Clones this concept and returns a pointer to a mutable copy.
std::bad_alloc
or any exception that's thrown by the constructor for the model's underlying data type. std::bad_alloc | if there's a failure allocating storage. |
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets the ID of body-A.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets the ID of body-B.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets whether collision handling should be done for connected bodies.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets the data for the underlying configuration.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets the data for the underlying configuration.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Gets the use type information.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtual |
Initializes the velocities for this joint.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtualnoexcept |
Call to notify joint of a shift in the world origin.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtual |
Solves the positions for this joint.
Implements playrho::d2::Joint::Concept.
|
inlineoverridevirtual |
Solves the velocities for this joint.
Implements playrho::d2::Joint::Concept.