Bifrost SDK
Bifrost SDK documentation
Factory.h File Reference

Provide factory functions for Executor core classes. More...

#include <BifrostGraph/Executor/Owner.h>
#include <stdexcept>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  BifrostGraph
 
namespace  BifrostGraph::Executor
 

Macros

#define EXECUTOR_DECLARE_MAKE_OWNER_FRIENDSHIP()
 Helper macro to declare friend the makeOwner<> factory functions. More...
 

Typedefs

template<typename P >
using BifrostGraph::Executor::DeleterFunc = void(*)(P *p)
 The signature for the custom pointer deleter of a pointee p. This is the custom deleter type to use with the constructor Owner(P* p, DeleterFunc d). More...
 

Functions

template<typename T , typename... Args>
Owner< T > BifrostGraph::Executor::makeOwner (Args &&... args)
 Create a new T object, constructed from the given arguments, and validate it with the expression T::isValid(). More...
 
template<typename T , typename... Args>
Owner< T > BifrostGraph::Executor::makeOwner (DeleterFunc< T > d, Args &&... args)
 Create a new T object, constructed from the given arguments, and validate it with the expression T::isValid(). More...
 

Detailed Description

Provide factory functions for Executor core classes.

Constructor. If an error occurs during the construction of this ConfigEnv, or while parsing the environnement variables, then BifrostGraph::Executor::Utility::ConfigEnv::isValid will return false and all future operations on this ConfigEnv will fail.

Note
The contents of this file belong to a feature that is still under development, and they may change in subsequent versions.

This constructor is protected to force the usage of factory functions BifrostGraph::Executor::makeOwner (see) to create it.

Definition in file Factory.h.