Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::RangeWorkUnit Class Reference

A work unit specifying a range of some quantity to be processed. More...

#include <mitsuba/render/range.h>

+ Inheritance diagram for mitsuba::RangeWorkUnit:

Public Member Functions

void set (const WorkUnit *wu)
 Copy the content of another work unit of the same type. More...
 
void load (Stream *stream)
 Fill the work unit with content acquired from a binary data stream. More...
 
void save (Stream *stream) const
 Serialize a work unit to a binary data stream. More...
 
std::string toString () const
 Return a string representation. More...
 
void setRange (size_t start, size_t end)
 
size_t getRangeStart () const
 
size_t getRangeEnd () const
 
size_t getSize () const
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from mitsuba::WorkUnit
static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 
- Protected Member Functions inherited from mitsuba::WorkUnit
virtual ~WorkUnit ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Detailed Description

A work unit specifying a range of some quantity to be processed.

An example usage is in ParticleProcess, where this class specifies sequences of particles to be traced.

Member Function Documentation

virtual const Class* mitsuba::RangeWorkUnit::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from mitsuba::WorkUnit.

size_t mitsuba::RangeWorkUnit::getRangeEnd ( ) const
inline
size_t mitsuba::RangeWorkUnit::getRangeStart ( ) const
inline
size_t mitsuba::RangeWorkUnit::getSize ( ) const
inline
void mitsuba::RangeWorkUnit::load ( Stream stream)
inlinevirtual

Fill the work unit with content acquired from a binary data stream.

Implements mitsuba::WorkUnit.

void mitsuba::RangeWorkUnit::save ( Stream stream) const
inlinevirtual

Serialize a work unit to a binary data stream.

Implements mitsuba::WorkUnit.

void mitsuba::RangeWorkUnit::set ( const WorkUnit workUnit)
inlinevirtual

Copy the content of another work unit of the same type.

Implements mitsuba::WorkUnit.

void mitsuba::RangeWorkUnit::setRange ( size_t  start,
size_t  end 
)
inline
std::string mitsuba::RangeWorkUnit::toString ( ) const
inlinevirtual

Return a string representation.

Implements mitsuba::WorkUnit.

Member Data Documentation

Class* mitsuba::RangeWorkUnit::m_theClass
static

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