12#ifndef ARCCORE_BASE_REFERENCECOUNTER_H
13#define ARCCORE_BASE_REFERENCECOUNTER_H
17#include "arccore/base/CheckedPointer.h"
83 _changeValue(new_value);
96 ReferenceCounterAccessor<T>::removeReference(
m_value);
99 void _changeValue(T* new_value)
106 ReferenceCounterAccessor<T>::addReference(new_value);
T * m_value
Pointer to the referenced object.
CheckedPointer(const CheckedPointer< T > &from)
Constructs a reference referring to from.
ReferenceCounter(const ReferenceCounter< T > &from)
Constructs a reference referencing from.
CheckedPointer< IModuleFactoryInfo > BaseClass
ReferenceCounter(T *t)
Constructs an instance referencing t.
~ReferenceCounter()
Destructor. Decrements the reference counter of the pointed object.
T * m_value
Pointer to the referenced object.
ReferenceCounter()
Constructs an instance without a reference.
ReferenceCounter< T > & operator=(T *new_value)
Assigns the value new_value to the instance.
ReferenceCounter< T > & operator=(const ReferenceCounter< T > &from)
Copy operator.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --