The BLOCKS SDK
RuleBasedTopologySource::Rule Struct Referenceabstract

Description

A rule that can transform parts of a topology.

Public Member Functions

virtual ~Rule ()=default
 
virtual void transformTopology (BlockTopology &)=0
 Subclasses should implement this method and use it as their opportunity to examine the given topology and modify it. More...
 

Constructor & Destructor Documentation

◆ ~Rule()

virtual RuleBasedTopologySource::Rule::~Rule ( )
virtualdefault

Member Function Documentation

◆ transformTopology()

virtual void RuleBasedTopologySource::Rule::transformTopology ( BlockTopology )
pure virtual

Subclasses should implement this method and use it as their opportunity to examine the given topology and modify it.

For example they may want to substitute one or more blocks for more specialised, aggregated Block objects.


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