Gazebo Sim

API Reference

8.7.0
RegistrationObjectId Struct Reference

A wrapper around uintptr_t to prevent implicit conversions. More...

#include <Factory.hh>

Public Member Functions

 RegistrationObjectId (std::uintptr_t _ptrAddress)
 Construct object from a uintptr_t. More...
 
 RegistrationObjectId (void *_ptr)
 Construct object from a pointer. More...
 
bool operator== (const RegistrationObjectId &_other) const
 Equality comparison. More...
 

Public Attributes

std::uintptr_t id
 Wrapped uintptr_t variable. More...
 

Detailed Description

A wrapper around uintptr_t to prevent implicit conversions.

Constructor & Destructor Documentation

◆ RegistrationObjectId() [1/2]

RegistrationObjectId ( void *  _ptr)
inlineexplicit

Construct object from a pointer.

Parameters
[in]_ptrArbitrary pointer.

◆ RegistrationObjectId() [2/2]

RegistrationObjectId ( std::uintptr_t  _ptrAddress)
inlineexplicit

Construct object from a uintptr_t.

Parameters
[in]_ptrArbitrary pointer address.

Member Function Documentation

◆ operator==()

bool operator== ( const RegistrationObjectId _other) const
inline

Equality comparison.

Parameters
[in]_otherOther RegistrationObjectId object to compare against.

References RegistrationObjectId::id.

Member Data Documentation

◆ id

Wrapped uintptr_t variable.

Referenced by RegistrationObjectId::operator==().


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