Management of references to an external object. More...
Classes | |
| struct | ExternalHandle |
Public Types | |
| typedef void(* | DestroyFuncType) (void *handle) |
Public Member Functions | |
| ExternalRef (void *handle) | |
| bool | isValid () const |
| void * | _internalHandle () const |
Private Attributes | |
| Arccore::ReferenceCounter< ExternalHandle > | 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 68 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 73 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 86 of file arccore/src/base/arccore/base/ExternalRef.h.
|
inline |
Definition at line 79 of file arccore/src/base/arccore/base/ExternalRef.h.
|
private |
Definition at line 90 of file arccore/src/base/arccore/base/ExternalRef.h.