Skip to content
Snippets Groups Projects

Unified interface for attributes

Merged Olivier BICHLER requested to merge unified_params into main

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

:warning: 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading