MyraMath
Public Member Functions | Protected Attributes | List of all members
myra::UserJobGraph::UserJobBase Class Referenceabstract

Implementation detail of UserJobGraph Job's, structural aspects. More...

#include <UserJobGraph.h>

Inheritance diagram for myra::UserJobGraph::UserJobBase:
[legend]
Collaboration diagram for myra::UserJobGraph::UserJobBase:
[legend]

Public Member Functions

 UserJobBase (uint64_t j, const std::string &s)
 Constructor, requires ID and name.
 
virtual UserJobBaseclone () const =0
 Implementation detail of FunctorJobGraph::clone()
 
virtual JobID id () const
 Returns the JobID of this Job.
 
virtual void parents (JobIDs &output) const
 Returns the JobID's of parents.
 
virtual void children (JobIDs &output) const
 Returns the JobID's of children.
 
virtual std::string name () const
 Returns a printable name for this Job, for debugging.
 
void add_parent (uint64_t p)
 Adds a parent dependency.
 
void add_child (uint64_t c)
 Adds a child dependency.
 
 ~UserJobBase ()
 Frees internal resources.
 
- Public Member Functions inherited from myra::Job
 Job ()
 Default constructor.
 
bool notify (const JobID &j)
 Notifies this Job that one of it's parents has execute()'d.
 
virtual uint64_t execute ()
 Subtypes inject the "real work" here. Should return the amount of "work" performed.
 
virtual ~Job ()
 Virtual destructor, for subtypes to release resources.
 

Protected Attributes

uint64_t job
 
std::string n
 
std::vector< uint64_t > pids
 
std::vector< uint64_t > cids
 

Detailed Description

Implementation detail of UserJobGraph Job's, structural aspects.


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