12#ifndef ARCANE_UTILS_PTR_H
13#define ARCANE_UTILS_PTR_H
56 template <
typename T2>
76 template <
typename T2>
91 virtual ~PtrT() =
default;
124 bool isNull()
const {
return !
m_value; }
140template <
typename T1,
typename T2>
inline bool
143 return v1.
get() == v2.
get();
155template <
typename T1,
typename T2>
inline bool
158 return v1.
get() != v2.
get();
Arcane configuration file.
Encapsulation of a pointer.
T * m_value
Pointer to the referenced object.
T * operator->() const
Returns the object referenced by the instance.
PtrT< T > & operator=(const PtrT< T > &from)
Copy operator.
PtrT(const PtrT< T > &from)
Constructs a reference referring to from.
T * get() const
Returns the object referenced by the instance.
PtrT()=default
Constructs an instance without a reference.
PtrT(const PtrT< T2 > &from)
Constructs a reference referring to from.
PtrT< T > & operator=(T *new_value)
Assigns the value new_value to the instance.
T & operator*() const
Returns the object referenced by the instance.
PtrT(T *t)
Constructs an instance referring to t.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
void arcaneNullPointerError()
Signals the use of a null pointer.