Skip to content

Commit ca4ef6a

Browse files
committed
STYLE: Add Doxygen to constructors and operator() on new algorithm classes
Add @brief, @param, and @return documentation to public constructors and operator()() methods on FillBadData, FillBadDataBFS, FillBadDataCCL, IdentifySampleBFS, and IdentifySampleCCL per doxygen-comments skill.
1 parent cf9c894 commit ca4ef6a

5 files changed

Lines changed: 59 additions & 0 deletions

File tree

src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/FillBadData.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ struct SIMPLNXCORE_EXPORT FillBadDataInputValues
3232
class SIMPLNXCORE_EXPORT FillBadData
3333
{
3434
public:
35+
/**
36+
* @brief Constructs the dispatcher with the required context for algorithm selection.
37+
* @param dataStructure The data structure containing the arrays to process.
38+
* @param mesgHandler Handler for progress and informational messages.
39+
* @param shouldCancel Cancellation flag checked during execution.
40+
* @param inputValues Filter parameter values controlling fill behavior.
41+
*/
3542
FillBadData(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, const FillBadDataInputValues* inputValues);
3643
~FillBadData() noexcept;
3744

@@ -40,6 +47,10 @@ class SIMPLNXCORE_EXPORT FillBadData
4047
FillBadData& operator=(const FillBadData&) = delete;
4148
FillBadData& operator=(FillBadData&&) noexcept = delete;
4249

50+
/**
51+
* @brief Dispatches to either BFS or CCL algorithm based on data residency.
52+
* @return Result indicating success or an error with a descriptive message.
53+
*/
4354
Result<> operator()();
4455

4556
private:

src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/FillBadDataBFS.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ struct FillBadDataInputValues;
2626
class SIMPLNXCORE_EXPORT FillBadDataBFS
2727
{
2828
public:
29+
/**
30+
* @brief Constructs the BFS fill algorithm with the required context.
31+
* @param dataStructure The data structure containing the arrays to process.
32+
* @param mesgHandler Handler for progress and informational messages.
33+
* @param shouldCancel Cancellation flag checked during execution.
34+
* @param inputValues Filter parameter values controlling fill behavior.
35+
*/
2936
FillBadDataBFS(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, const FillBadDataInputValues* inputValues);
3037
~FillBadDataBFS() noexcept;
3138

@@ -34,6 +41,10 @@ class SIMPLNXCORE_EXPORT FillBadDataBFS
3441
FillBadDataBFS& operator=(const FillBadDataBFS&) = delete;
3542
FillBadDataBFS& operator=(FillBadDataBFS&&) noexcept = delete;
3643

44+
/**
45+
* @brief Executes the BFS flood-fill algorithm to identify and fill bad data regions.
46+
* @return Result indicating success or an error with a descriptive message.
47+
*/
3748
Result<> operator()();
3849

3950
private:

src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/FillBadDataCCL.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ struct FillBadDataInputValues;
3434
class SIMPLNXCORE_EXPORT FillBadDataCCL
3535
{
3636
public:
37+
/**
38+
* @brief Constructs the CCL fill algorithm with the required context.
39+
* @param dataStructure The data structure containing the arrays to process.
40+
* @param mesgHandler Handler for progress and informational messages.
41+
* @param shouldCancel Cancellation flag checked during execution.
42+
* @param inputValues Filter parameter values controlling fill behavior.
43+
*/
3744
FillBadDataCCL(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, const FillBadDataInputValues* inputValues);
3845
~FillBadDataCCL() noexcept;
3946

@@ -42,8 +49,16 @@ class SIMPLNXCORE_EXPORT FillBadDataCCL
4249
FillBadDataCCL& operator=(const FillBadDataCCL&) = delete;
4350
FillBadDataCCL& operator=(FillBadDataCCL&&) noexcept = delete;
4451

52+
/**
53+
* @brief Executes the CCL-based algorithm to identify and fill bad data regions.
54+
* @return Result indicating success or an error with a descriptive message.
55+
*/
4556
Result<> operator()();
4657

58+
/**
59+
* @brief Returns the cancellation flag reference.
60+
* @return Reference to the atomic cancellation flag.
61+
*/
4762
const std::atomic_bool& getCancel() const;
4863

4964
private:

src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/IdentifySampleBFS.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ struct IdentifySampleInputValues;
2626
class SIMPLNXCORE_EXPORT IdentifySampleBFS
2727
{
2828
public:
29+
/**
30+
* @brief Constructs the BFS sample identification algorithm with the required context.
31+
* @param dataStructure The data structure containing the arrays to process.
32+
* @param mesgHandler Handler for progress and informational messages.
33+
* @param shouldCancel Cancellation flag checked during execution.
34+
* @param inputValues Filter parameter values controlling identification behavior.
35+
*/
2936
IdentifySampleBFS(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, const IdentifySampleInputValues* inputValues);
3037
~IdentifySampleBFS() noexcept;
3138

@@ -34,6 +41,10 @@ class SIMPLNXCORE_EXPORT IdentifySampleBFS
3441
IdentifySampleBFS& operator=(const IdentifySampleBFS&) = delete;
3542
IdentifySampleBFS& operator=(IdentifySampleBFS&&) noexcept = delete;
3643

44+
/**
45+
* @brief Executes the BFS flood-fill algorithm to identify the largest sample region.
46+
* @return Result indicating success or an error with a descriptive message.
47+
*/
3748
Result<> operator()();
3849

3950
private:

src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/IdentifySampleCCL.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ struct IdentifySampleInputValues;
3030
class SIMPLNXCORE_EXPORT IdentifySampleCCL
3131
{
3232
public:
33+
/**
34+
* @brief Constructs the CCL sample identification algorithm with the required context.
35+
* @param dataStructure The data structure containing the arrays to process.
36+
* @param mesgHandler Handler for progress and informational messages.
37+
* @param shouldCancel Cancellation flag checked during execution.
38+
* @param inputValues Filter parameter values controlling identification behavior.
39+
*/
3340
IdentifySampleCCL(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, const IdentifySampleInputValues* inputValues);
3441
~IdentifySampleCCL() noexcept;
3542

@@ -38,6 +45,10 @@ class SIMPLNXCORE_EXPORT IdentifySampleCCL
3845
IdentifySampleCCL& operator=(const IdentifySampleCCL&) = delete;
3946
IdentifySampleCCL& operator=(IdentifySampleCCL&&) noexcept = delete;
4047

48+
/**
49+
* @brief Executes the CCL-based algorithm to identify the largest sample region.
50+
* @return Result indicating success or an error with a descriptive message.
51+
*/
4152
Result<> operator()();
4253

4354
private:

0 commit comments

Comments
 (0)