Open CASCADE Technology
6.5.4
|
Template CLI class providing the way to encapsulate instance of C++ class as a field in the C++/CLI (ref) class. More...
#include <NCollection_Haft.h>
Public Member Functions | |
NCollection_Haft () | |
Initialize CLI Haft object by default-constructed C++ object. | |
template<class T > | |
NCollection_Haft (const T *aPtr) | |
Initialize CLI Haft object by compatible C++ pointer. | |
NCollection_Haft (const CPPClass &aPtr) | |
Initialize CLI Haft object by C++ class object. | |
~NCollection_Haft () | |
Destructor - invoked explicitly by delete, or automatically when local variable is scoped out. | |
!NCollection_Haft () | |
Finalizer - called undeterministically by garbage collector. | |
CPPClass & | operator() () |
Function call operator is provided to access underlying C++ object. | |
Protected Member Functions | |
void | Nullify () |
Invalidate the haft. | |
Protected Attributes | |
CPPClass * | myPtr |
It can be helpful to encapsulate OCCT Handles, maps, arrays, etc.
Use of variable of the Haft type is very similar to that of encapsulated class:
NCollection_Haft< CPPClass >::NCollection_Haft | ( | ) | [inline] |
NCollection_Haft< CPPClass >::NCollection_Haft | ( | const T * | aPtr | ) | [inline] |
NCollection_Haft< CPPClass >::NCollection_Haft | ( | const CPPClass & | aPtr | ) | [inline] |
NCollection_Haft< CPPClass >::~NCollection_Haft | ( | ) | [inline] |
NCollection_Haft< CPPClass >::!NCollection_Haft | ( | ) | [inline] |
void NCollection_Haft< CPPClass >::Nullify | ( | ) | [inline, protected] |
CPPClass& NCollection_Haft< CPPClass >::operator() | ( | ) | [inline] |
CPPClass* NCollection_Haft< CPPClass >::myPtr [protected] |