Implementation of the reference to an instance. More...
#include <arccore/base/Ref.h>
Public Types | |
| using | ThatClass = RefImpl<InstanceType, RefClassType, ImplTagId> |
| using | ImplType = RefTraitsTagId<InstanceType, ImplTagId>::ImplType |
Public Member Functions | |
| template<typename T, typename = _IsRefConstructible<typename RefImpl<T, Ref<T>, ImplTagId>::ImplType>> | |
| RefImpl (const Ref< T > &rhs) noexcept | |
| Constructs a reference from another reference of a compatible type. | |
| RefImpl (const ThatClass &rhs)=default | |
| ThatClass & | operator= (const ThatClass &rhs)=default |
| operator bool () const | |
| InstanceType * | get () const |
| Associated instance or nullptr if none. | |
| bool | isNull () const |
| Indicates if the counter references a non-null instance. | |
| InstanceType * | operator-> () const |
| void | reset () |
| Positions the instance to the null pointer. | |
| template<typename T = ThatClass, typename std::enable_if_t< T::RefType==REF_TAG_SHARED_PTR, bool > = true> | |
| InstanceType * | _release () |
| const ImplType & | _internalInstance () const |
Static Public Attributes | |
| static constexpr int | RefType = RefTraitsTagId<InstanceType, ImplTagId>::RefType |
Friends | |
| template<typename T> | |
| class | Ref |
| bool | operator== (const ThatClass &a, const ThatClass &b) |
| bool | operator!= (const ThatClass &a, const ThatClass &b) |
| bool | operator< (const ThatClass &a, const ThatClass &b) |
| bool | operator! (const ThatClass &a) |
Implementation of the reference to an instance.
Definition at line 133 of file arccore/src/base/arccore/base/Ref.h.
| using Arcane::RefImpl< InstanceType, RefClassType, ImplTagId >::ImplType = RefTraitsTagId<InstanceType, ImplTagId>::ImplType |
Definition at line 142 of file arccore/src/base/arccore/base/Ref.h.
| using Arcane::RefImpl< InstanceType, RefClassType, ImplTagId >::ThatClass = RefImpl<InstanceType, RefClassType, ImplTagId> |
Definition at line 141 of file arccore/src/base/arccore/base/Ref.h.
|
inlineexplicitnoexcept |
Constructs a reference from another reference of a compatible type.
Conversion is allowed if an instance of 'ImplType' can be constructed from an instance of Ref<T>::ImplType.
Definition at line 215 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Definition at line 275 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Definition at line 263 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Associated instance or nullptr if none.
Definition at line 251 of file arccore/src/base/arccore/base/Ref.h.
Referenced by Arcane::Array2VariableT< T >::_compareVariable(), Arcane::VariableArrayT< T >::_compareVariable(), Arcane::VariableScalarT< T >::_compareVariable(), and Arcane::Internal::ServiceFinderBase2T< InterfaceType >::getSingleton().
|
inline |
Indicates if the counter references a non-null instance.
Definition at line 253 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Definition at line 246 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Definition at line 254 of file arccore/src/base/arccore/base/Ref.h.
|
inline |
Positions the instance to the null pointer.
Definition at line 256 of file arccore/src/base/arccore/base/Ref.h.
|
friend |
Definition at line 241 of file arccore/src/base/arccore/base/Ref.h.
|
friend |
Definition at line 231 of file arccore/src/base/arccore/base/Ref.h.
|
friend |
Definition at line 236 of file arccore/src/base/arccore/base/Ref.h.
|
friend |
Definition at line 226 of file arccore/src/base/arccore/base/Ref.h.
|
friend |
Definition at line 143 of file arccore/src/base/arccore/base/Ref.h.
|
staticconstexpr |
Definition at line 186 of file arccore/src/base/arccore/base/Ref.h.