Skip to content

Commit

Permalink
ENH: Add itkBooleanMacro for boolean ivar
Browse files Browse the repository at this point in the history
Add `itkBooleanMacro` for the `Verbose` boolean ivar of
`itk::CumulativeGaussianOptimizer`.

Add the corresponding test.
  • Loading branch information
jhlegarreta authored and dzenanz committed Sep 2, 2022
1 parent 5f737c0 commit a2fa9de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class ITKOptimizers_EXPORT CumulativeGaussianOptimizer : public MultipleValuedNo
itkGetMacro(DifferenceTolerance, double);
itkSetMacro(Verbose, bool);
itkGetMacro(Verbose, bool);
itkBooleanMacro(Verbose);
itkGetMacro(ComputedMean, double);
itkGetMacro(ComputedStandardDeviation, double);
itkGetMacro(UpperAsymptote, double);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ itkCumulativeGaussianOptimizerTest(int, char *[])
ITK_TEST_SET_GET_VALUE(differenceTolerance, optimizer->GetDifferenceTolerance());

// Print results after each iteration.
optimizer->SetVerbose(true);
bool verbose = true;
ITK_TEST_SET_GET_BOOLEAN(optimizer, Verbose, verbose);

// Set the data array.
optimizer->SetDataArray(cumGaussianArray);
Expand Down

0 comments on commit a2fa9de

Please sign in to comment.