12#ifndef ARCANE_UTILS_AUTOREF_H
13#define ARCANE_UTILS_AUTOREF_H
17#include "arcane/utils/Ptr.h"
18#include "arccore/base/AutoRef2.h"
T * m_value
Pointer to the referenced object.
AutoRefT()=default
Constructs an instance without a reference.
PtrT< T > BaseClass
Base class type.
~AutoRefT()
Destructor. Decrements the reference counter of the pointed object.
void _addRef()
Adds a reference to the encapsulated object if not null.
AutoRefT(T *t)
Constructs an instance referencing t.
AutoRefT(const AutoRefT< T > &from)
Constructs a reference referencing from.
void _changeValue(T *new_value)
Changes the referenced object to new_value.
AutoRefT< T > & operator=(T *new_value)
Assigns the value new_value to the instance.
AutoRefT< T > & operator=(const AutoRefT< T > &from)
Copy operator.
void _removeRef()
Removes a reference to the encapsulated object if not null.
T * m_value
Pointer to the referenced object.
PtrT(const PtrT< T > &from)
Constructs a reference referring to from.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --