Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ServiceInstanceRef Class Reference

Reference to a service instance. More...

#include <arcane/core/ServiceInstance.h>

Public Member Functions

IServiceInstanceget () const
void reset ()

Static Public Member Functions

static ServiceInstanceRef createRef (IServiceInstance *p)
static ServiceInstanceRef createRefNoDestroy (IServiceInstance *p)
static ServiceInstanceRef createWithHandle (IServiceInstance *p, Internal::ExternalRef handle)

Detailed Description

Reference to a service instance.

This class is managed via a reference counter in the manner of the std::shared_ptr class.

Definition at line 35 of file ServiceInstance.h.

Member Function Documentation

◆ createRef()

ServiceInstanceRef Arcane::ServiceInstanceRef::createRef ( IServiceInstance * p)
inlinestatic

Definition at line 51 of file ServiceInstance.h.

◆ createRefNoDestroy()

ServiceInstanceRef Arcane::ServiceInstanceRef::createRefNoDestroy ( IServiceInstance * p)
inlinestatic

Definition at line 55 of file ServiceInstance.h.

◆ createWithHandle()

ServiceInstanceRef Arcane::ServiceInstanceRef::createWithHandle ( IServiceInstance * p,
Internal::ExternalRef handle )
inlinestatic

Definition at line 59 of file ServiceInstance.h.

◆ get()

IServiceInstance * Arcane::ServiceInstanceRef::get ( ) const
inline

Definition at line 66 of file ServiceInstance.h.

◆ reset()

void Arcane::ServiceInstanceRef::reset ( )
inline

Definition at line 67 of file ServiceInstance.h.


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