stmm-input-doc  0.17.0
Public Member Functions | List of all members
stmi::testing::FakePointerCapability Class Reference

Fake pointer capability. More...

Inheritance diagram for stmi::testing::FakePointerCapability:
Inheritance graph
[legend]

Public Member Functions

 FakePointerCapability (FakeDevice< FakePointerCapability > *p0Device) noexcept
 Constructor. More...
 
shared_ptr< DevicegetDevice () const noexcept override
 Returns the device owning this capability, if any. More...
 
- Public Member Functions inherited from stmi::Capability
virtual ~Capability () noexcept=default
 
int32_t getId () const noexcept
 The capability id. More...
 
const ClassgetCapabilityClass () const noexcept
 Get the registered class of the capability instance. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from stmi::PointerCapability
static const Capability::ClassgetClass () noexcept
 
- Static Public Member Functions inherited from stmi::Capability
static bool isCapabilityClassIdRegistered (const std::string &sCapabilityClassId) noexcept
 Tells whether the given capability class id is registered. More...
 
static Class getCapabilityClassIdClass (const std::string &sCapabilityClassId) noexcept
 Gets the class with given class id. More...
 
- Static Public Attributes inherited from stmi::PointerCapability
static const char *const s_sClassId
 
- Protected Member Functions inherited from stmi::PointerCapability
 PointerCapability () noexcept
 
- Protected Member Functions inherited from stmi::Capability
 Capability (const Class &oClass) noexcept
 Constructor to be called from subclasses. More...
 
- Static Protected Member Functions inherited from stmi::Capability
static bool isCapabilityTypeRegistered (const std::type_info &oCapabilityType) noexcept
 Tells whether a capability type was registered. More...
 
static const std::type_info & getCapabilityClassIdType (const std::string &sCapabilityClassId, bool &bRegistered) noexcept
 Gets the type of the registered capability subclass associated with class id. More...
 
static std::string getCapabilityTypeClassId (const std::type_info &oType) noexcept
 Gets the class id of the given type. More...
 

Detailed Description

Fake pointer capability.

Constructor & Destructor Documentation

◆ FakePointerCapability()

stmi::testing::FakePointerCapability::FakePointerCapability ( FakeDevice< FakePointerCapability > *  p0Device)
inlinenoexcept

Constructor.

Parameters
p0DeviceThe fake device the instance belongs to. Cannot be null.

Member Function Documentation

◆ getDevice()

shared_ptr<Device> stmi::testing::FakePointerCapability::getDevice ( ) const
inlineoverridevirtualnoexcept

Returns the device owning this capability, if any.

If it's a device manager capability this might return null. It also can be null if the device was deleted.

Implements stmi::Capability.