VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | Private Attributes | Static Private Attributes
DtTrueAggregateRollUpHelper Class Reference

This class contains helper-only functions and methods that can be used to roll up property data based on the true aggregate state property structure. The actual roll-up requires state, which this does not have access to. Use DtTrueAggregateRollUp for that.

Inheritance diagram for DtTrueAggregateRollUpHelper:
Inheritance graph
[legend]

Classes

struct  AverageItem
 

Public Types

typedef std::map< std::string,
DtRollUpFunction > 
RollUpRules
 

Public Member Functions

 DtTrueAggregateRollUpHelper ()
 
virtual ~DtTrueAggregateRollUpHelper ()
 
virtual void installCustomRules ()
 
virtual void rollUp (const std::vector< const DtRwProperties * > &, DtRwProperties &result, const std::set< DtString > &ignore=std::set< DtString >()) const
 
virtual void setRollUpRules (const DtAssembliesReaderWriter::RwRootNode &)
 
virtual bool loadRollUpRules (const DtFilename &)
 
virtual void updateAverages (DtRwProperties &, int totalContributors) const
 
virtual void restore ()
 
virtual bool rollUpValues (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path)
 
virtual double averageContributionFrom (const DtReaderWriter *item, const DtMergePath &path, const std::map< std::string, std::string > &atr) const
 
virtual void addRollUpFunction (const std::string &, DtRollUpFunction)
 
const RollUpRules & rollUpRules () const
 
RollUpRules & rollUpRules ()
 
virtual bool sumFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path, const std::map< std::string, std::string > &)
 
virtual bool minimumFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path, const std::map< std::string, std::string > &)
 
virtual bool maximumFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path, const std::map< std::string, std::string > &)
 
virtual bool averageFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path, const std::map< std::string, std::string > &)
 
virtual bool moppLevelFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path, const std::map< std::string, std::string > &)
 
virtual bool stringFunction (const DtReaderWriter *source, DtReaderWriter *destination, const DtMergePath &path)
 

Protected Types

typedef std::map< std::string,
AverageItem > 
AverageItems
 

Protected Attributes

RollUpRules myRollUpRules
 
DtPropertyRollUpFunction myOriginalDefaultRule
 
DtReaderWriterPropertyFactory::RollUpRules myOriginalRollUpRules
 
AverageItems myAverageItems
 
std::set< DtString > myAverageTotals
 
DtAssembliesReaderWriter myAssemblyReaderWriter
 

Private Attributes

std::unique_lock
< std::recursive_mutex > 
myRollUpRuleLock
 
bool myRestored
 

Static Private Attributes

static std::recursive_mutex theRollUpRuleMutex
 

Member Typedef Documentation

typedef std::map<std::string, AverageItem> DtTrueAggregateRollUpHelper::AverageItems
protected

Constructor & Destructor Documentation

DtTrueAggregateRollUpHelper::DtTrueAggregateRollUpHelper ( )
virtual DtTrueAggregateRollUpHelper::~DtTrueAggregateRollUpHelper ( )
virtual

Member Function Documentation

virtual void DtTrueAggregateRollUpHelper::installCustomRules ( )
virtual

Call to install custom roll up rules needed to roll up aggregate information.

virtual void DtTrueAggregateRollUpHelper::addRollUpFunction ( const std::string &  ,
DtRollUpFunction   
)
virtual

Roll up rule functions.

const RollUpRules& DtTrueAggregateRollUpHelper::rollUpRules ( ) const
inline

Roll up rule functions.

RollUpRules& DtTrueAggregateRollUpHelper::rollUpRules ( )
inline

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::sumFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path,
const std::map< std::string, std::string > &   
)
virtual

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::minimumFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path,
const std::map< std::string, std::string > &   
)
virtual

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::maximumFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path,
const std::map< std::string, std::string > &   
)
virtual

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::averageFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path,
const std::map< std::string, std::string > &   
)
virtual

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::moppLevelFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path,
const std::map< std::string, std::string > &   
)
virtual

Roll up rule functions.

virtual bool DtTrueAggregateRollUpHelper::stringFunction ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path 
)
virtual

Roll up rule functions.

virtual void DtTrueAggregateRollUpHelper::rollUp ( const std::vector< const DtRwProperties * > &  ,
DtRwProperties &  result,
const std::set< DtString > &  ignore = std::set< DtString >() 
) const
virtual

Rolls up the given properties and returns the single rolled up result.

virtual void DtTrueAggregateRollUpHelper::setRollUpRules ( const DtAssembliesReaderWriter::RwRootNode &  )
virtual

Sets roll up rules that are read from the rollUpRules.mtl file.

virtual bool DtTrueAggregateRollUpHelper::loadRollUpRules ( const DtFilename &  )
virtual

Loads roll up rules from the given file.

virtual void DtTrueAggregateRollUpHelper::updateAverages ( DtRwProperties &  ,
int  totalContributors 
) const
virtual
virtual void DtTrueAggregateRollUpHelper::restore ( )
virtual

Call this to restore backed up values due to override by installing custom rules and general construction of this object. Only call this if you are expecting to no longer use the true aggregate roll up rules.

virtual bool DtTrueAggregateRollUpHelper::rollUpValues ( const DtReaderWriter *  source,
DtReaderWriter *  destination,
const DtMergePath &  path 
)
virtual

Will use the roll up rules as defined in the additional scenario data to roll up values.

virtual double DtTrueAggregateRollUpHelper::averageContributionFrom ( const DtReaderWriter *  item,
const DtMergePath &  path,
const std::map< std::string, std::string > &  atr 
) const
virtual

Member Data Documentation

RollUpRules DtTrueAggregateRollUpHelper::myRollUpRules
protected
DtPropertyRollUpFunction DtTrueAggregateRollUpHelper::myOriginalDefaultRule
protected
DtReaderWriterPropertyFactory::RollUpRules DtTrueAggregateRollUpHelper::myOriginalRollUpRules
protected
std::recursive_mutex DtTrueAggregateRollUpHelper::theRollUpRuleMutex
staticprivate
std::unique_lock<std::recursive_mutex> DtTrueAggregateRollUpHelper::myRollUpRuleLock
private
bool DtTrueAggregateRollUpHelper::myRestored
private
AverageItems DtTrueAggregateRollUpHelper::myAverageItems
mutableprotected
std::set<DtString> DtTrueAggregateRollUpHelper::myAverageTotals
mutableprotected
DtAssembliesReaderWriter DtTrueAggregateRollUpHelper::myAssemblyReaderWriter
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)