playrho::d2::BodyAtty Class Reference

Body attorney. More...

#include <BodyAtty.hpp>

Friends

class World
 

Detailed Description

Body attorney.

This is the "body attorney" which provides limited privileged access to the Body class for the World class.

Note
This class uses the "attorney-client" idiom to control the granularity of friend-based access to the Body class. This is meant to help preserve and enforce the invariants of the Body class.
See also
https://en.wikibooks.org/wiki/More_C++_Idioms/Friendship_and_the_Attorney-Client

Definition at line 49 of file BodyAtty.hpp.

Friends And Related Function Documentation

◆ World

friend class World
friend

Definition at line 301 of file BodyAtty.hpp.


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