CCF
|
#include <openssl_wrappers.h>
Public Member Functions | |
Unique_SSL_OBJECT () | |
C-tor with new pointer via T's c-tor. | |
Unique_SSL_OBJECT (T *ptr, void(*dtor)(T *), bool check_null=true) | |
C-tor with pointer created in base class. | |
operator T* () | |
Type cast to underlying pointer. | |
operator T* () const | |
Type cast to underlying pointer. | |
void | reset (T *other) |
Reset pointer, free old if any. | |
T * | release () |
Release pointer, so it's freed elsewhere (CAUTION!) | |
Protected Attributes | |
std::unique_ptr< T, void(*)(T *)> | p |
Pointer owning storage. | |
Generic template interface for different types of objects below If there are no c-tors in the derived class that matches this one, pass nullptr
to the CTOR/DTOR parameters and make sure to implement and delete the appropriate c-tors in the derived class.
|
inline |
C-tor with new pointer via T's c-tor.
|
inline |
C-tor with pointer created in base class.
|
inline |
Type cast to underlying pointer.
|
inline |
Type cast to underlying pointer.
|
inline |
Release pointer, so it's freed elsewhere (CAUTION!)
|
inline |
Reset pointer, free old if any.
|
protected |
Pointer owning storage.