Raytrix Light Field SDK  5.0
Rx::Net::ConstNativeWrapper< TNative > Class Template Reference

Detailed Description

template<class TNative>
class Rx::Net::ConstNativeWrapper< TNative >

Provides functionality for wrapping a const native type by a managed class.

Template Parameters
TNativeThe type of the const native class.

Inherits Rx::Net::ConstNativeExternWrapper< TNative >.

Public Member Functions

 ConstNativeWrapper ()
 Default constructor. Creates the native instance. Disposing destroys the native instance. More...
 
 ConstNativeWrapper (TNative const *pxNative)
 Default constructor. Uses the given native instance. Disposing does NOT destroy the native instance. More...
 
 !ConstNativeWrapper ()
 Finalizer. Deletes the native instance if created by the default constructor and resets the native pointer. More...
 
 ~ConstNativeWrapper ()
 Destructor. Calls the finalizer. More...
 
const TNative & GetNative ()
 Gets the const native instance. More...
 

Protected Attributes

TNative const * m_pxNative
 The pointer to the const native instance. More...
 

Constructor & Destructor Documentation

◆ ConstNativeWrapper() [1/2]

template<class TNative >
Rx::Net::ConstNativeWrapper< TNative >::ConstNativeWrapper ( )
inline

Default constructor. Creates the native instance. Disposing destroys the native instance.

◆ ConstNativeWrapper() [2/2]

template<class TNative >
Rx::Net::ConstNativeWrapper< TNative >::ConstNativeWrapper ( TNative const *  pxNative)
inlineexplicit

Default constructor. Uses the given native instance. Disposing does NOT destroy the native instance.

Parameters
pxNativeThe pointer to the const native instance.

◆ ~ConstNativeWrapper()

template<class TNative >
Rx::Net::ConstNativeWrapper< TNative >::~ConstNativeWrapper ( )
inline

Destructor. Calls the finalizer.

◆ !ConstNativeWrapper()

template<class TNative >
Rx::Net::ConstNativeWrapper< TNative >::!ConstNativeWrapper ( )
inline

Finalizer. Deletes the native instance if created by the default constructor and resets the native pointer.

Member Function Documentation

◆ GetNative()

template<class TNative >
const TNative& Rx::Net::ConstNativeExternWrapper< TNative >::GetNative ( )
inlineinherited

Gets the const native instance.

Returns
The const native instance.

Member Data Documentation

◆ m_pxNative

template<class TNative >
TNative const* Rx::Net::ConstNativeExternWrapper< TNative >::m_pxNative
protectedinherited

The pointer to the const native instance.