SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Types | Public Member Functions | List of all members
smtk::attribute::AssociationRules Class Reference

A class for holding the state and encapsulating the logic behind custom association rules for an attribute resource. More...

#include <AssociationRules.h>

Public Types

typedef std::unordered_map< std::string, std::unique_ptr< Rule > > AssociationRuleContainer
 
typedef std::unordered_map< std::string, std::unique_ptr< Rule > > DissociationRuleContainer
 

Public Member Functions

 AssociationRules (const AssociationRules &)=delete
 
AssociationRulesoperator= (const AssociationRules &)=delete
 
const RuleassociationRuleForDefinition (smtk::attribute::DefinitionPtr definition) const
 Access the association/dissociation rule for a given definition, if one exists.
 
const RuledissociationRuleForDefinition (smtk::attribute::DefinitionPtr definition) const
 
std::unordered_map< std::string, std::string > & associationRulesForDefinitions ()
 Access the mapping between definition names and association/dissociation rules.
 
const std::unordered_map< std::string, std::string > & associationRulesForDefinitions () const
 
std::unordered_map< std::string, std::string > & dissociationRulesForDefinitions ()
 
const std::unordered_map< std::string, std::string > & dissociationRulesForDefinitions () const
 
AssociationRuleContainer & associationRuleContainer ()
 Access the container for instances of custom association/dissociation rules.
 
const AssociationRuleContainer & associationRuleContainer () const
 
DissociationRuleContainer & dissociationRuleContainer ()
 
const DissociationRuleContainer & dissociationRuleContainer () const
 
AssociationRuleFactoryassociationRuleFactory ()
 Access the factory for creating custom association/dissociation rule instances.
 
const AssociationRuleFactoryassociationRuleFactory () const
 
DissociationRuleFactorydissociationRuleFactory ()
 
const DissociationRuleFactorydissociationRuleFactory () const
 

Detailed Description

A class for holding the state and encapsulating the logic behind custom association rules for an attribute resource.


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