Go to the source code of this file.
Classes | |
| class | Arccore::ExternalReferenceCounterAccessor< T > |
| struct | Arcane::ReferenceCounterTag |
| Structure used to tag interfaces/classes that use an internal reference counter. More... | |
| struct | Arcane::RefTraits< InstanceType > |
| Characteristics for managing reference counters. More... | |
| class | Arcane::ReferenceCounterAccessor< T > |
| Accessor for reference counter management methods. More... | |
| class | Arcane::ExternalReferenceCounterAccessor< T > |
| struct | Arccore::ReferenceCounterTag |
| Structure used to tag interfaces/classes that use an internal reference counter. More... | |
Namespaces | |
| namespace | Arccore |
| Namespace of Arccore. | |
| namespace | Arcane |
| -- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -- | |
Macros | |
| #define | ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS() |
| Macro to declare the virtual methods managing reference counters. | |
| #define | ARCCORE_DECLARE_REFERENCE_COUNTED_CLASS(class_name) |
| Macro to declare that a class uses a reference counter. | |
Functions | |
| constexpr int | Arcane::arcaneImplGetRefTagId (void *) |
| Function to determine what type of reference counter a class uses. | |
Variables | |
| constexpr int | Arcane::REF_TAG_SHARED_PTR = 0 |
| constexpr int | Arcane::REF_TAG_REFERENCE_COUNTER = 1 |
This file contains the declarations and macros for managing classes using reference counters. For implementation, you must use the file 'ReferenceCounterImpl.h'
Definition in file RefDeclarations.h.
| #define ARCCORE_DECLARE_REFERENCE_COUNTED_CLASS | ( | class_name | ) |
Macro to declare that a class uses a reference counter.
The macro must be used outside of any namespace. For example:
You will then need to use the macro ARCCORE_DEFINE_REFERENCE_COUNTED_CLASS() in the source file to define the necessary methods and types
Definition at line 219 of file RefDeclarations.h.
| #define ARCCORE_DECLARE_REFERENCE_COUNTED_INCLASS_METHODS | ( | ) |
Macro to declare the virtual methods managing reference counters.
This macro is used in the same way as declarations of interface methods. It allows defining pure virtual methods to access reference counter information.
The class implementing the interface must use the macro ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS() to define the virtual methods used.
Definition at line 183 of file RefDeclarations.h.