FixtureProxy.hpp
Go to the documentation of this file.
1 /*
2  * Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
3  * Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  * Permission is granted to anyone to use this software for any purpose,
9  * including commercial applications, and to alter it and redistribute it
10  * freely, subject to the following restrictions:
11  * 1. The origin of this software must not be misrepresented; you must not
12  * claim that you wrote the original software. If you use this software
13  * in a product, an acknowledgment in the product documentation would be
14  * appreciated but is not required.
15  * 2. Altered source versions must be plainly marked as such, and must not be
16  * misrepresented as being the original software.
17  * 3. This notice may not be removed or altered from any source distribution.
18  */
19 
20 #ifndef PLAYRHO_DYNAMICS_FIXTUREPROXY_HPP
21 #define PLAYRHO_DYNAMICS_FIXTUREPROXY_HPP
22 
25 
26 namespace playrho {
27 
32 {
33 
35  using size_type = std::remove_const<decltype(MaxContacts)>::type;
36 
41 };
42 
45 PLAYRHO_CONSTEXPR inline bool operator== (const FixtureProxy& lhs, const FixtureProxy& rhs) noexcept
46 {
47  return lhs.treeId == rhs.treeId;
48 }
49 
52 PLAYRHO_CONSTEXPR inline bool operator!= (const FixtureProxy& lhs, const FixtureProxy& rhs) noexcept
53 {
54  return !(lhs.treeId == rhs.treeId);
55 }
56 
57 } // namespace playrho
58 
59 #endif // PLAYRHO_DYNAMICS_FIXTUREPROXY_HPP