MyraMath
Classes | Public Member Functions | Friends | List of all members
myra::LambdaJobGraph< Lambda > Class Template Reference

Encapsulates a Lambda function into a JobGraph of a single Job. More...

#include <LambdaJobGraph.h>

Inheritance diagram for myra::LambdaJobGraph< Lambda >:
[legend]
Collaboration diagram for myra::LambdaJobGraph< Lambda >:
[legend]

Public Member Functions

 LambdaJobGraph (const Lambda &in_lambda)
 Constructs from a Lambda.
 
 LambdaJobGraph (const Lambda &in_lambda, const std::string &in_n)
 Constructs from a Lambda and a name.
 
virtual JobGraphBaseclone () const
 Virtual copy constructor.
 
virtual ~LambdaJobGraph ()
 Frees internal resources.
 
virtual uint64_t n_work () const
 Total "work" over all Job's of this JobGraph.
 
virtual std::string name () const
 Returns a printable name for this JobGraph, for debugging.
 
virtual void begins (JobIDs &output) const
 Enumerates the JobIDs of Job's that have no parents (where execution begins)
 
virtual void ends (JobIDs &output) const
 Enumerates the JobIDs of Job's that have no children (where execution ends)
 
virtual Job * create (JobID j)
 Constructs the Job corresponding to the given JobID.
 
virtual std::vector<::myra::Job * > create ()
 Constructs all Job's in an implementation-defined manner.
 
virtual uint64_t size () const
 Returns 1.
 
- Public Member Functions inherited from myra::JobGraphBase
virtual ~JobGraphBase ()
 Virtual destructor, so subtypes can release resources.
 

Friends

class Job
 

Detailed Description

template<class Lambda>
class myra::LambdaJobGraph< Lambda >

Encapsulates a Lambda function into a JobGraph of a single Job.


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