MyraMath
Classes | Namespaces | Typedefs | Functions
JobID.h File Reference

Key type used to identify the Job's of a JobGraph. More...

#include <myramath/MYRAMATH_EXPORT.h>
#include <myramath/utility/detail/ssize.h>
#include <myramath/utility/hashes.h>
#include <myramath/utility/Pack.h>
#include <stdint.h>
#include <vector>
#include <iosfwd>
Include dependency graph for JobID.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  myra::JobID
 Key type used to identify the Job's of a JobGraph. More...
 
struct  std::hash< myra::JobID >
 

Namespaces

 std
 A std::hash for JobID, so it can be in a std::unordered_set / std::unordered_map.
 

Typedefs

typedef std::vector< JobID > myra::JobIDs
 Useful typedef.
 

Functions

bool myra::operator< (JobID a, uint64_t b)
 Comparison operator, so a JobID can be compared against JobGraph.size()
 
bool myra::operator> (JobID a, uint64_t b)
 
bool myra::operator<= (JobID a, uint64_t b)
 
bool myra::operator>= (JobID a, uint64_t b)
 
bool myra::operator== (JobID a, uint64_t b)
 
bool myra::operator!= (JobID a, uint64_t b)
 
std::ostream & myra::operator<< (std::ostream &out, JobID j)
 Pretty-printing JobID's.
 
template<int N>
uint64_t myra::product (const Pack< int, N > &p)
 Returns the product of all entries of a Pack<int,N>
 
JobID myra::operator+ (JobID j, uint64_t offset)
 Adds/subtracts an offset to a JobID.
 
JobID myra::operator- (JobID j, uint64_t offset)
 
bool myra::operator< (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 
bool myra::operator> (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 
bool myra::operator<= (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 
bool myra::operator>= (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 
bool myra::operator== (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 
bool myra::operator!= (JobID a, JobID b)
 Comparison operators, so JobID's can be held in std::map's and std::set's.
 

Detailed Description

Key type used to identify the Job's of a JobGraph.