The pattern of an attribute tree that can be applied to nodes or node classes.
Class that provides a pattern of attributes to be applied to nodes as dynamic attributes or to node classes as extension attributes.
An attribute pattern is a pattern describing an attribute tree. In the simplest implementation it can just store an internal copy of the tree to be applied. The code to apply the attribute patterns will use the rootAttr() and rootAttrCount() methods to iterate through the list of top level attributes to be applied. It presumes that if they are compounds then their children will already be parented properly.
for( unsignedint i=0; i < tmpl.rootAttrCount(); ++i )
When creating the pattern from inside MPxAttributePatternFactory you add only the root level attributes, i.e. the attributes without parents. As a simple example if your pattern factory has data that specifies creating a pattern with one integer attribute and one compound with three float children the code would like something like this.