Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make _already_set_up protected as opposed to private #1299

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/include/stir/recon_buildblock/SqrtHessianRowSum.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ class SqrtHessianRowSum:
void compute_approximate_Hessian_row_sum();

protected:
bool _already_setup = false;

private:
bool _already_setup = false;

//! Objective function object
shared_ptr<GeneralisedObjectiveFunction<TargetT> > objective_function_sptr;
Expand Down
3 changes: 2 additions & 1 deletion src/include/stir/scatter/ScatterEstimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,11 @@ class ScatterEstimation: public ParsingObject

std::string output_additive_estimate_prefix;

private:
//! variable to check if we have called set_up()
bool _already_setup;

private:

//! attenuation in 3D
shared_ptr<BinNormalisation> atten_norm_3d_sptr;

Expand Down
2 changes: 1 addition & 1 deletion src/include/stir/scatter/ScatterSimulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ class ScatterSimulation : public RegisteredObject<ScatterSimulation>
int downsample_scanner_dets;

bool downsample_scanner_bool;
bool _already_set_up;

private:
int total_detectors;
Expand All @@ -446,7 +447,6 @@ class ScatterSimulation : public RegisteredObject<ScatterSimulation>
// numbers that we don't want to recompute all the time
mutable float detector_efficiency_no_scatter;

bool _already_set_up;

//! a function that checks if image sizes are ok
/*! It will call \c error() if not.
Expand Down