PlayRho  2.0.0
An interactive physics engine & library.
Island.hpp File Reference

Definition of the Island class and related code. More...

#include <cstdlib>
#include <vector>
#include <playrho/BodyID.hpp>
#include <playrho/ContactID.hpp>
#include <playrho/JointID.hpp>
#include <playrho/Settings.hpp>
#include <playrho/Templates.hpp>
#include <playrho/pmr/MemoryResource.hpp>
Include dependency graph for Island.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  playrho::Island
 Definition of a self-contained constraint "island". More...
 

Namespaces

 playrho
 

Functions

void playrho::Clear (Island &island) noexcept
 Clears the island containers.
 
std::size_t playrho::Count (const Island &island, BodyID entry)
 Counts the number of occurrences of the given entry in the given island.
 
std::size_t playrho::Count (const Island &island, ContactID entry)
 Counts the number of occurrences of the given entry in the given island.
 
std::size_t playrho::Count (const Island &island, JointID entry)
 Counts the number of occurrences of the given entry in the given island.
 
bool playrho::IsFullOfBodies (const Island &island)
 Determines whether the given island is full of bodies.
 
bool playrho::IsFullOfContacts (const Island &island)
 Determines whether the given island is full of contacts.
 
void playrho::Reserve (Island &island, BodyCounter bodies, ContactCounter contacts, JointCounter joints)
 Reserves space ahead of time.
 
void playrho::Sort (Island &island) noexcept
 Sorts the island containers.
 

Detailed Description

Definition of the Island class and related code.