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

#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 CacheEntrycacheEntry (const PDG_WorkItem *work_item) const
 Returns the cache value for the specified work item. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

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 
)

Member Function Documentation

const CacheEntry& PDG_AttributeEvaluatorCache::cacheEntry ( const PDG_WorkItem work_item) const
inline

Returns the cache value for the specified work item.

Definition at line 59 of file PDG_AttributeEvaluatorCache.h.


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