Management of references to an external object. More...
Classes | |
| struct | Handle |
Public Types | |
| typedef void(* | DestroyFuncType) (void *handle) |
Public Member Functions | |
| ExternalRef (void *handle) | |
| bool | isValid () const |
| void * | _internalHandle () const |
Private Attributes | |
| Arccore::ReferenceCounter< Handle > | m_handle |
Management of references to an external object.
This class allows saving references to objects that are not managed directly by Arccore. This is the case, for example, when using C# wrapping and wanting to manipulate objects 'managed' by '.Net' that no longer necessarily have an explicit managed reference. This class allows maintaining a reference to these objects to prevent them from being collected by the garbage collector.
This class is internal to Arccore and should in principle not be used directly.
Definition at line 44 of file arccore/src/base/arccore/base/ExternalRef.h.
| typedef void(* Arcane::Internal::ExternalRef::DestroyFuncType) (void *handle) |
Definition at line 70 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 75 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 88 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 81 of file arccore/src/base/arccore/base/ExternalRef.h.
|
private |
Definition at line 92 of file arccore/src/base/arccore/base/ExternalRef.h.