Skip to content

Unified interface for attributes

Olivier BICHLER requested to merge unified_params into main

In this MR, I propose a more unified attributes handling.

This MR, once merged, will break every other MR!

Refactor

  • Use the term "attribute" instead of "parameter"
  • Uniformized function naming ("hasAttr" and "getAttr" + "addAttr"/"setAttr"/"delAttr" for DynamicAttributes)
  • Parametrizable -> StaticAttributes
  • CParameter -> DynamicAttributes
  • Adding abstract class Attributes to uniformize Dynamic & StaticAttributes

Also

  • Includes fix for bug #8 (closed) (as it may get lost in MR !9 (merged))
  • Distinguish between "addAttr" (asserts if already exists) and "setAttr" (do not care if already exists)
  • "Universal" Python binding for DynamicAttributes
  • Added AIDGE_THROW_OR_ABORT macro
Edited by Olivier BICHLER

Merge request reports