ivutils
Loading...
Searching...
No Matches
NewCopyConstructInterface< T > Struct Template Reference

helper class for LocalPointer. More...

#include <omp_pointers.h>

Static Public Member Functions

static T * make_copy (const T *original=nullptr)
 Makes copy of original using copy constructor.
 
static void wipe_copy (T *copy)
 for DiagnosticPointer
 

Detailed Description

template<typename T>
struct NewCopyConstructInterface< T >

helper class for LocalPointer.

This class describes how we make copy from original, how we destroy copy and how we join the original and copy. Sometimes we need something to correct already written data like indices after join. That something is returned by join function. To avoid problems with deduce return type join return type is declared as member type join_t. If join returns something other than join_t behaviour is undefined.

Member Function Documentation

◆ make_copy()

template<typename T >
static T * NewCopyConstructInterface< T >::make_copy ( const T *  original = nullptr)
inlinestatic

Makes copy of original using copy constructor.

If original is nullptr then we make instance of T with default constructor


The documentation for this struct was generated from the following file: