Go to the documentation of this file.
18 #ifndef GZ_PHYSICS_FRAMEID_HH_
19 #define GZ_PHYSICS_FRAMEID_HH_
23 #include <gz/physics/Export.hh>
24 #include <gz/physics/detail/Identity.hh>
25 #include <gz/utilities/SuppressWarning.hh>
46 class IGNITION_PHYSICS_VISIBLE
FrameID final
49 public:
bool operator ==(
const FrameID &_other)
const;
50 public:
bool operator <(
const FrameID &_other)
const;
51 public:
bool operator >(
const FrameID &_other)
const;
52 public:
bool operator <=(
const FrameID &_other)
const;
53 public:
bool operator >=(
const FrameID &_other)
const;
54 public:
bool operator !=(
const FrameID &_other)
const;
63 public:
static const FrameID &World();
69 public:
bool IsWorld()
const;
88 public:
bool IsReferenceCounted()
const;
94 private:
explicit FrameID(
const Identity &_identity);
97 private:
enum WorldConstructorArg { ConstructWorld };
100 private:
explicit FrameID(WorldConstructorArg);
111 IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
113 IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
bool operator<=(const FrameID &_other) const
FrameID(const FrameID &)=default
bool operator!=(const FrameID &_other) const
bool IsReferenceCounted() const
This will return true if this Frame is being reference-counted, and false otherwise.
bool IsWorld() const
Returns true if this is the world frame.
FrameSemantics is an Interface that can be provided by ignition-physics engines to provide users with...
Definition: gz/physics/FrameSemantics.hh:38
Container for specifying Frame IDs. We do not want to use a generic integer type for this,...
Definition: gz/physics/FrameID.hh:46
bool operator>=(const FrameID &_other) const
bool operator>(const FrameID &_other) const
bool operator<(const FrameID &_other) const
std::size_t ID() const
The numerical value of this FrameID's ID number.
FrameID & operator=(const FrameID &)=default
bool operator==(const FrameID &_other) const
static const FrameID & World()
Get a reference to the world Frame.