functional-dag
Loading...
Searching...
No Matches
fn_dag::dag_fake_source< Out > Class Template Reference

A source that just returns null pointers. More...

#include <default_types_impl.hpp>

Inheritance diagram for fn_dag::dag_fake_source< Out >:
fn_dag::dag_source< Out >

Public Member Functions

unique_ptr< Out > update ()
 Update generator function that returns NULL.
 
- Public Member Functions inherited from fn_dag::dag_source< Out >
virtual ~dag_source ()=default
 Default constructor.
 

Detailed Description

template<class Out>
class fn_dag::dag_fake_source< Out >

A source that just returns null pointers.

Sometimes you just need a root that does nothing.

Member Function Documentation

◆ update()

template<class Out>
unique_ptr< Out > fn_dag::dag_fake_source< Out >::update ( )
inlinevirtual

Update generator function that returns NULL.

Returns
NULL pointer.

Implements fn_dag::dag_source< Out >.