12#ifndef ARCANE_CORE_SERVICEINSTANCE_H
13#define ARCANE_CORE_SERVICEINSTANCE_H
17#include "arcane/utils/Ref.h"
18#include "arcane/core/IService.h"
35class ARCANE_CORE_EXPORT ServiceInstanceRef
41 ServiceInstanceRef(
const RefType& r)
47 ServiceInstanceRef() =
default;
57 return ServiceInstanceRef(RefType::_createNoDestroy(p));
67 void reset() { m_instance.reset(); }
79 return a.get() == b.get();
82inline bool operator!=(
const ServiceInstanceRef& a,
const ServiceInstanceRef& b)
84 return a.get() != b.get();
Interface of a service instance.
Management of references to an external object.
Reference to an instance.
static ThatClass create(IServiceInstance *t)
static ThatClass createWithHandle(IServiceInstance *t, Internal::ExternalRef handle)
Reference to a service instance.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --