Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 207
    • Issues 207
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Merge requests
  • !328

Rename Get/Set Variadic[Named]Input[s]() by Get/SetInput() for easier reading in FunctorImageFilter

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Julien Michel requested to merge remove_variadic_fom_getset into develop Dec 18, 2018
  • Overview 12
  • Commits 6
  • Pipelines 0
  • Changes 45

Summary

This MR proposes to rename the following methods in new filters in Functor module:

  • SetVariadicInput<N>() -> SetInput<N>()
  • GetVariadicInput<N>() -> GetInput<N>()
  • SetVariadicNamedInput<Tag>() -> SetInput<Tag>()
  • GetVariadicNamedInput<Tag>() -> GetInput<Tag>()
  • SetVariadicInputs() -> SetInputs()
  • GetVariadicInputs() -> GetInputs()

I also added a default value for template parameter N so that you can now call SetInput() and GetInput() to interact with first input.

Rationale

Easier to read, understand and more backward-compatible.

Additional notes

All ongoing refactoring with FunctorImageFilter will need to update their patches.

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: remove_variadic_fom_getset