#include <comstl/util/value_policies.hpp>
I | The interface |
Public Types | |
typedef I | interface_type |
typedef interface_type * | value_type |
Static Public Member Functions | |
static void | init (value_type *p) throw () |
Initialises an instance. | |
static void | copy (value_type *dest, value_type const *src) |
Initialises an instance from another. | |
static void | clear (value_type *p) throw () |
Releases an instance. |
static void init | ( | value_type * | p | ) | throw () [inline, static] |
Initialises an instance.
In the case of an interface pointer type, this involves setting the value to NULL
static void copy | ( | value_type * | dest, | |
value_type const * | src | |||
) | [inline, static] |
Initialises an instance from another.
In the case of an interface pointer type, this involves taking a copy of the pointer and, if the source is non-NULL, invoking AddRef()
static void clear | ( | value_type * | p | ) | throw () [inline, static] |
Releases an instance.
In the case of an interface pointer type, this involves invoking Release()
and setting the value to NULL (unless it is already NULL)