ivutils
Loading...
Searching...
No Matches
refvector< T > Class Template Reference

Vector of dynamic objects and flag, which define the action with dynamic objects if function clear is called: 0 - do not delete, nonzero - delete, 8 (bit flag set) - delete as array. More...

#include <refobj.h>

Inherits std::vector< T * >.

Public Member Functions

refvectormake_copy () const
 Makes a copy with unmanaged pointers. If necessary, transfer of management options should be done explicitly by calling refvector::set_managed of the copy and original.
 
void set_managed (int man_)
 Changes managed behaviour.
 

Static Public Member Functions

static void destroy_copy (refvector *copy)
 Needed for omp_pointers virtual interface.
 

Detailed Description

template<class T>
class refvector< T >

Vector of dynamic objects and flag, which define the action with dynamic objects if function clear is called: 0 - do not delete, nonzero - delete, 8 (bit flag set) - delete as array.

Member Function Documentation

◆ set_managed()

template<class T >
void refvector< T >::set_managed ( int  man_)
inline

Changes managed behaviour.

Parameters
man_if nonzero the verctor contents will be deleted by destructor. If value is 0x8 then every item will be deleted as array.

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