MDL SDK API nvidia_logo_transpbg.gif Up
handle.h File Reference

Smart-pointer handle class for interfaces, const and non-const version. More...

Go to the source code of this file.

Classes

class  mi::base::Handle<Interface>
 Handle class template for interfaces, automatizing the lifetime control via reference counting. More...
 

Namespaces

namespace  mi
 Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
 
namespace  mi::base
 Namespace for the Base API.
 

Typedefs

typedef const Dup_interface_helper * mi::base::Dup_interface
 Type for a symbolic constant to trigger a special constructor in the Handle class. More...
 

Functions

template<class Interface1 , class Interface2>
bool mi::base::operator== (const Handle<Interface1> &lhs, const Handle<Interface2> &rhs)
 Returns true if the underlying interface pointers are equal. More...
 
template<class Interface1 , class Interface2>
bool mi::base::operator!= (const Handle<Interface1> &lhs, const Handle<Interface2> &rhs)
 Returns true if the underlying interface pointers are not equal. More...
 
template<class Interface>
Handle<Interface> mi::base::make_handle (Interface *iptr)
 Returns a handle that holds the interface pointer passed in as argument. More...
 
template<class Interface>
Handle<Interface> mi::base::make_handle_dup (Interface *iptr)
 Converts passed-in interface pointer to a handle, without taking interface over. More...
 

Variables

static const Dup_interface mi::base::DUP_INTERFACE = 0
 Symbolic constant to trigger a special constructor in the Handle class. More...
 

Detailed Description

Smart-pointer handle class for interfaces, const and non-const version.