HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDGE_Resolutions Class Reference

#include <PDGE_Resolutions.h>

+ Inheritance diagram for PDGE_Resolutions:

Public Member Functions

 PDGE_Resolutions (bool defer_heavy=true)
 
 PDGE_Resolutions (PDGE_Resolutions &&array)
 
PDGE_Resolutionsoperator= (PDGE_Resolutions &&other)
 
int64 getMemoryUsage (bool inclusive) const
 Returns the memory usage of this object. More...
 
void clearAll ()
 
void clearPartials ()
 Clears only partial resolutions from the array. More...
 
void concat (const PDGE_Resolutions &resolutions)
 
exint numResolves () const
 Returns the number of full resolutions in the array. More...
 
exint numPartials () const
 Returns the number of partial resolutions in the array. More...
 
bool isSerial () const
 
void addResolve (PDGE_Dependency *dependency)
 Adds a new dependency to the list of full resolutions. More...
 
bool addPartial (PDGE_Dependency *dependency, const PDGE_DependencyOwner::Array &owners, bool ascending=true, bool serial=false)
 
bool addPartial (PDGE_Dependency *dependency, PDGE_DependencyOwner *owner, bool ascending=true, bool serial=false)
 Same as above, but with a single owner argument for convenience. More...
 
template<typename T >
bool addPartial (PDGE_Dependency *dependency, const UT_Array< T > &owners, bool ascending=true, bool serial=false)
 Save as above, but with an arbitrarily typed array. More...
 
void evaluateResolves (const UT_BlockedRange< int64 > &range, PDGE_Evaluator &evaluator, PDGE_Resolutions &resolutions, PDGE_Resolutions &deferred) const
 
void evaluatePartials (const UT_BlockedRange< int64 > &range, PDGE_Evaluator &evaluator, PDGE_Resolutions &resolutions) const
 

Detailed Description

Definition at line 28 of file PDGE_Resolutions.h.

Constructor & Destructor Documentation

PDGE_Resolutions::PDGE_Resolutions ( bool  defer_heavy = true)
inline

Definition at line 31 of file PDGE_Resolutions.h.

PDGE_Resolutions::PDGE_Resolutions ( PDGE_Resolutions &&  array)
inline

Definition at line 35 of file PDGE_Resolutions.h.

Member Function Documentation

bool PDGE_Resolutions::addPartial ( PDGE_Dependency dependency,
const PDGE_DependencyOwner::Array owners,
bool  ascending = true,
bool  serial = false 
)

Adds a new dependency to the list of partial resolutions, along with the owner argument associated with the partial resolution.

bool PDGE_Resolutions::addPartial ( PDGE_Dependency dependency,
PDGE_DependencyOwner owner,
bool  ascending = true,
bool  serial = false 
)

Same as above, but with a single owner argument for convenience.

template<typename T >
bool PDGE_Resolutions::addPartial ( PDGE_Dependency dependency,
const UT_Array< T > &  owners,
bool  ascending = true,
bool  serial = false 
)
inline

Save as above, but with an arbitrarily typed array.

Definition at line 123 of file PDGE_Resolutions.h.

void PDGE_Resolutions::addResolve ( PDGE_Dependency dependency)
inline

Adds a new dependency to the list of full resolutions.

Definition at line 103 of file PDGE_Resolutions.h.

void PDGE_Resolutions::clearAll ( )
inline

Clears all exisiting resolutions from the array, including both partial and full resolves.

Definition at line 64 of file PDGE_Resolutions.h.

void PDGE_Resolutions::clearPartials ( )
inline

Clears only partial resolutions from the array.

Definition at line 72 of file PDGE_Resolutions.h.

void PDGE_Resolutions::concat ( const PDGE_Resolutions resolutions)
inline

Concats the contents of the specificed resolutions with the ones in this array. No deduplication is performed.

Definition at line 80 of file PDGE_Resolutions.h.

void PDGE_Resolutions::evaluatePartials ( const UT_BlockedRange< int64 > &  range,
PDGE_Evaluator evaluator,
PDGE_Resolutions resolutions 
) const

Evaluates all partial resolutions and stores new resolutions into the supplied array. This function should be called from a UTparalleReduce.

void PDGE_Resolutions::evaluateResolves ( const UT_BlockedRange< int64 > &  range,
PDGE_Evaluator evaluator,
PDGE_Resolutions resolutions,
PDGE_Resolutions deferred 
) const

Evaluates all full resolutions in the array. This function should be called from a UTparallelFor.

int64 PDGE_Resolutions::getMemoryUsage ( bool  inclusive) const

Returns the memory usage of this object.

bool PDGE_Resolutions::isSerial ( ) const
inline

Returns true if partial evaluation should be performed in serial instead of in parallel

Definition at line 98 of file PDGE_Resolutions.h.

exint PDGE_Resolutions::numPartials ( ) const
inline

Returns the number of partial resolutions in the array.

Definition at line 93 of file PDGE_Resolutions.h.

exint PDGE_Resolutions::numResolves ( ) const
inline

Returns the number of full resolutions in the array.

Definition at line 89 of file PDGE_Resolutions.h.

PDGE_Resolutions& PDGE_Resolutions::operator= ( PDGE_Resolutions &&  other)
inline

Definition at line 46 of file PDGE_Resolutions.h.


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