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

Reference to a service instance. More...

#include <arcane/core/ServiceInstance.h>

Collaboration diagram for Arcane::ServiceInstanceRef:

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)

Private Types

typedef Ref< IServiceInstanceRefType

Private Member Functions

 ServiceInstanceRef (const RefType &r)

Private Attributes

RefType m_instance

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 Typedef Documentation

◆ RefType

typedef Ref<IServiceInstance> Arcane::ServiceInstanceRef::RefType
private

Definition at line 37 of file ServiceInstance.h.

Constructor & Destructor Documentation

◆ ServiceInstanceRef()

Arcane::ServiceInstanceRef::ServiceInstanceRef ( const RefType & r)
inlineprivate

Definition at line 41 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.

Member Data Documentation

◆ m_instance

RefType Arcane::ServiceInstanceRef::m_instance
private

Definition at line 71 of file ServiceInstance.h.


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