HDK
|
#include <PDG_AttributeEvaluatorCache.h>
Classes | |
struct | CacheEntry |
Helper struct that contains the actual cached evaluation data. More... | |
Public Member Functions | |
PDG_AttributeEvaluatorCache (const PDG_AttributeEvaluator *evaluator, const PDG_WorkItemArray &work_items) | |
Constructs a cache from an evaluator and a list of work items. More... | |
PDG_AttributeEvaluatorCache (const PDG_AttributeEvaluator *evaluator, const PDG_WorkItemConstArray &work_items) | |
const CacheEntry & | cacheEntry (const PDG_WorkItem *work_item) const |
Returns the cache value for the specified work item. More... | |
Evaluates attributes from a list of work items using an attribute evaluator, and caches the evaluation results. This is useful when e.g. sorting by attribute which may need to make multiple look-ups of the same attribute value during the sorting process
Definition at line 29 of file PDG_AttributeEvaluatorCache.h.
PDG_AttributeEvaluatorCache::PDG_AttributeEvaluatorCache | ( | const PDG_AttributeEvaluator * | evaluator, |
const PDG_WorkItemArray & | work_items | ||
) |
Constructs a cache from an evaluator and a list of work items.
PDG_AttributeEvaluatorCache::PDG_AttributeEvaluatorCache | ( | const PDG_AttributeEvaluator * | evaluator, |
const PDG_WorkItemConstArray & | work_items | ||
) |
|
inline |
Returns the cache value for the specified work item.
Definition at line 59 of file PDG_AttributeEvaluatorCache.h.