12#ifndef ARCANE_CORE_SHAREDREFERENCE_H
13#define ARCANE_CORE_SHAREDREFERENCE_H
17#include "arcane/core/ISharedReference.h"
34class ARCANE_CORE_EXPORT SharedReference
Interface of a reference counter.
std::atomic< Int32 > m_ref_count
Number of references on the object.
virtual void deleteMe()=0
Destroys the referenced object.
void addRef() override
Increments the reference counter.
Int32 refCount() const override
Returns the value of the reference counter.
void removeRef() override
Decrements the reference counter.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int32_t Int32
Signed integer type of 32 bits.