StaticJobArray< T > Class Template Reference

#include <jobgroup.h>

Public Member Functions

 StaticJobArray ()
 
 StaticJobArray (StaticJobGroupInterface< T > *group, STATICJOBARRAYFLAGS flags=STATICJOBARRAYFLAGS::DEFAULT, void *buffer=nullptr)
 
 StaticJobArray (StaticJobArray &&src)
 
 MAXON_OPERATOR_MOVE_ASSIGNMENT (StaticJobArray)
 
 ~StaticJobArray ()
 

Constructor & Destructor Documentation

◆ StaticJobArray() [1/3]

◆ StaticJobArray() [2/3]

StaticJobArray ( StaticJobGroupInterface< T > *  group,
STATICJOBARRAYFLAGS  flags = STATICJOBARRAYFLAGS::DEFAULT,
void *  buffer = nullptr 
)
explicit

Creates a wrapper array around the static buffer of a StaticJobGroup. By default the array is empty. If you specify STATICJOBARRAYFLAGS::INITIALIZE_LATER the array will consists of as many uninitialized elements as it has capacity. at StaticJobGroupInterface::Alloc().

Parameters
[in]groupJob group (nullptr will use buffer as array).
[in]flagsSTATICJOBARRAYFLAGS::DEFAULT by default.
[in]bufferAn optional buffer with sizeof(T) that can be used if group allocation failed (see ParallelFor). It must be big enough to be aligned to a cache line (see PrivateGetExtraBuffer).

◆ StaticJobArray() [3/3]

StaticJobArray ( StaticJobArray< T > &&  src)

move constructor

◆ ~StaticJobArray()

Member Function Documentation

◆ MAXON_OPERATOR_MOVE_ASSIGNMENT()

MAXON_OPERATOR_MOVE_ASSIGNMENT ( StaticJobArray< T >  )

move assignment operator