VMan  1.0
Library for voxel managment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
JobEntry Class Reference

#include <JobEntry.h>

+ Collaboration diagram for JobEntry:

Public Member Functions

 JobEntry ()
 
 JobEntry (int priority, JobType type, Chunk *chunk)
 
 JobEntry (const JobEntry &e)
 
JobEntryoperator= (const JobEntry &e)
 
 ~JobEntry ()
 
int getPriority () const
 
JobType getType () const
 
ChunkgetChunk () const
 

Static Public Attributes

static const JobEntry InvalidJob
 

Detailed Description

Structure that contains information about a chunk job.

It will hold a reference of the chunk.

Definition at line 34 of file JobEntry.h.

Constructor & Destructor Documentation

JobEntry ( )

Constructs an invalid job.

Use InvalidJob whenever possible.

See Also
InvalidJob

Definition at line 10 of file JobEntry.cpp.

JobEntry ( int  priority,
JobType  type,
Chunk chunk 
)

Constructs a new job.

Parameters
priorityThe higher the job priority the earlier it will be processed by the job workers.

Definition at line 17 of file JobEntry.cpp.

+ Here is the call graph for this function:

JobEntry ( const JobEntry e)

Definition at line 26 of file JobEntry.cpp.

+ Here is the call graph for this function:

~JobEntry ( )

Definition at line 50 of file JobEntry.cpp.

+ Here is the call graph for this function:

Member Function Documentation

JobEntry & operator= ( const JobEntry e)

Definition at line 35 of file JobEntry.cpp.

+ Here is the call graph for this function:

int getPriority ( ) const

Definition at line 58 of file JobEntry.cpp.

JobType getType ( ) const

Definition at line 63 of file JobEntry.cpp.

Chunk * getChunk ( ) const

Definition at line 68 of file JobEntry.cpp.

Member Data Documentation

const JobEntry InvalidJob
static

For better code documentation, this should be used instead of the empty constructor whenever possible.

See Also
JobEntry()

Definition at line 43 of file JobEntry.h.


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