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

This class contains functions and methods that can be used to roll up property data based on the true aggregate state property structure Call stateProperties() for the aggregate in question to do a one time roll up. Call parameterData() to roll up the parameter (base) properties for the aggereate and its subordinateswill manage rolling up of subordinate data data information into container pseudo aggregate classes and.

Inheritance diagram for DtTrueAggregateRollUp:
Inheritance graph
[legend]

Public Types

typedef std::set< const
makVrf::DtStateDataWrapper * > 
Leafs
 
- Public Types inherited from DtTrueAggregateRollUpHelper
typedef std::map< std::string,
DtRollUpFunction > 
RollUpRules
 

Public Member Functions

 DtTrueAggregateRollUp ()
 
 DtTrueAggregateRollUp (const DtTrueAggregateRollUpFunctor *fctr)
 
virtual void parameterData (const makVrf::DtStateDataWrapper *state, DtRwProperties &) const
 
virtual void parameterData (const std::set< const makVrf::DtStateDataWrapper * > &, DtRwProperties &) const
 
virtual void leafNodes (const makVrf::DtStateDataWrapper *state, Leafs &, bool includePseudoAggregates=false) const
 
virtual void statePropertiesFor (const makVrf::DtStateDataWrapper *state, DtRwProperties &) const
 
virtual void statePropertiesContainedIn (const Leafs &, DtRwProperties &) const
 
void statePropertiesFor (const std::set< const makVrf::DtStateDataWrapper * > &ids, DtRwProperties &parameters) const
 
virtual bool hasStateProperties (const makVrf::DtStateDataWrapper *) const
 
virtual bool hasStateProperty (const makVrf::DtStateDataWrapper *, const std::string &statePropName) const
 
- Public Member Functions inherited from DtTrueAggregateRollUpHelper
 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 Attributes

const
DtTrueAggregateRollUpFunctor * 
myFctr
 
- Protected Attributes inherited from DtTrueAggregateRollUpHelper
RollUpRules myRollUpRules
 
DtPropertyRollUpFunction myOriginalDefaultRule
 
DtReaderWriterPropertyFactory::RollUpRules myOriginalRollUpRules
 
AverageItems myAverageItems
 
std::set< DtString > myAverageTotals
 
DtAssembliesReaderWriter myAssemblyReaderWriter
 

Additional Inherited Members

- Protected Types inherited from DtTrueAggregateRollUpHelper
typedef std::map< std::string,
AverageItem > 
AverageItems
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtTrueAggregateRollUp::DtTrueAggregateRollUp ( )
DtTrueAggregateRollUp::DtTrueAggregateRollUp ( const DtTrueAggregateRollUpFunctor *  fctr)

Member Function Documentation

virtual void DtTrueAggregateRollUp::parameterData ( const makVrf::DtStateDataWrapper *  state,
DtRwProperties &   
) const
virtual

Given the state, if the state is an aggregate and has subordinates, return a total of all the parameter properties for numerical items found within. String values that have the same value will be kept. Those that have differing values will be removed If the item is not an aggregate simply the parameter properties related to the entity type will be returned.

virtual void DtTrueAggregateRollUp::parameterData ( const std::set< const makVrf::DtStateDataWrapper * > &  ,
DtRwProperties &   
) const
virtual
virtual void DtTrueAggregateRollUp::leafNodes ( const makVrf::DtStateDataWrapper *  state,
Leafs &  ,
bool  includePseudoAggregates = false 
) const
virtual

Given a root, returns all the leaf nodes from the given aggregate. Leaf nodes are considered those that do not have children.

virtual void DtTrueAggregateRollUp::statePropertiesFor ( const makVrf::DtStateDataWrapper *  state,
DtRwProperties &   
) const
virtual

Returns the rolled up state properties or the state properties for the individual (if this is not a pseudo aggregate)

virtual void DtTrueAggregateRollUp::statePropertiesContainedIn ( const Leafs &  ,
DtRwProperties &   
) const
virtual
void DtTrueAggregateRollUp::statePropertiesFor ( const std::set< const makVrf::DtStateDataWrapper * > &  ids,
DtRwProperties &  parameters 
) const

Given the states, return a total of all the state properties for numerical items found within. Boolean and string values that have the same value will be kept. Those that have differing values will be marked as readOnly.

virtual bool DtTrueAggregateRollUp::hasStateProperties ( const makVrf::DtStateDataWrapper *  ) const
virtual

Returns true if the subordinates have state properties in their state.

virtual bool DtTrueAggregateRollUp::hasStateProperty ( const makVrf::DtStateDataWrapper *  ,
const std::string &  statePropName 
) const
virtual

Returns true if the list of items (global ids) has the given state property as part of their state.

Member Data Documentation

const DtTrueAggregateRollUpFunctor* DtTrueAggregateRollUp::myFctr
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)