PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::ContactKey Class Reference

Key value class for contacts. More...

#include <ContactKey.hpp>

Collaboration diagram for playrho::ContactKey:
[legend]

Public Member Functions

constexpr ContactKey (ContactCounter fp1, ContactCounter fp2) noexcept
 Initializing constructor.
 
constexpr ContactCounter GetMin () const noexcept
 Gets the minimum index value.
 
constexpr ContactCounter GetMax () const noexcept
 Gets the maximum index value.
 

Private Attributes

std::pair< ContactCounter, ContactCounterm_ids
 Contact counter ID pair. More...
 

Detailed Description

Key value class for contacts.

Member Data Documentation

◆ m_ids

std::pair<ContactCounter, ContactCounter> playrho::ContactKey::m_ids
private
Initial value:
{
static_cast<ContactCounter>(-1), static_cast<ContactCounter>(-1)
}

Contact counter ID pair.

Note
Uses std::pair given that std::minmax returns this type making it the most natural type for this class.

Referenced by GetMax(), and GetMin().


The documentation for this class was generated from the following file:
playrho::ContactCounter
Wider< BodyCounter >::type ContactCounter
Count type for contacts.
Definition: Settings.hpp:221