Rename NodeFactory to PreBasis
We discussed and decided the renaming on the last meeting. Reasons for renaming:
- The name
NodeFactory
does not fit because it creates more than just nodes - The
FactoryTag
/FactoryBuilder
classes are really factories that create aNodeFactory
, but we would not like to useNodeFactoryFactory
-
PreBasis
is more understandable: It's almost a basis.
I renamed all occurrences in dune-functions. If you implemented
your own node-factory, you only need to take care that the concept
name was changed from NodeFactory
to PreBasis
. The actual naming
of your class is an implementation detail. However, for consistency
you may want to adapt this also.
Merge request reports
Activity
This implements the change we decided. For normal users this will not require any changes. However, implementors of global bases may need to adjust there code:
- If you used the
makeBasis()
approach, then your code will work as before. - If you used the
NodeFactory
classes manually you will have to adapt to the renaming. - If you used internal details of the
NodeFactory
classes you may have to adjust your code to some internal renaming. - If you implemented your own
NodeFactory
it should still work, but you may want to rename it. - If you used the
Concept::NodeFactor
concept, you have to change this toConcept::PreBasis
.
- If you used the
mentioned in merge request !92 (merged)
I asked @lasse.hinrichsen who's probably one of the few people who implemented a
NodeFactory
outside of dune-functions to test this. There's only one tiny modification you need to do with your own implementation:You have to rename the
NodeIndexSet::NodeFactory
toNodeIndexSet::PreBasis
. While this is not used anywhere in the code, theConcept::PreBasis
requires this typedef.mentioned in commit d95a5338
mentioned in issue #13 (closed)
Does this also apply to !92 (merged) ?
Does this also apply to !92 (merged) ?
yes
mentioned in merge request !94 (merged)