STIR  6.2.0
distributed_test_functions.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2007- 2011, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
11 
12 #ifndef __stir_recon_buildblock_DistributedTestFunctions_h__
13 #define __stir_recon_buildblock_DistributedTestFunctions_h__
14 
45 #include "mpi.h"
46 #include "stir/shared_ptr.h"
49 #include "stir/RelatedViewgrams.h"
50 #include "stir/Viewgram.h"
51 #include "stir/ProjDataInfo.h"
52 #include <iostream>
53 #include <fstream>
54 
55 namespace distributed
56 {
57 //-----------------------test functions------------------------------------------
58 
59 void test_viewgram_slave(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr);
60 
61 void test_viewgram_master(stir::Viewgram<float> viewgram, const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr);
62 
63 void test_image_estimate_master(const stir::DiscretisedDensity<3, float>* input_image_ptr, int slave);
64 
65 void test_image_estimate_slave();
66 
67 void test_related_viewgrams_master(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr,
68  const stir::shared_ptr<stir::DataSymmetriesForViewSegmentNumbers> symmetries_sptr,
70  int slave);
71 
72 void test_related_viewgrams_slave(const stir::shared_ptr<stir::ProjDataInfo>& proj_data_info_ptr,
73  const stir::shared_ptr<stir::DataSymmetriesForViewSegmentNumbers> symmetries_sptr);
74 
75 void test_parameter_info_master(const std::string str, int slave, char const* const text);
76 
77 void test_parameter_info_slave(const std::string str);
78 
79 void test_bool_value_master(bool value, int slave);
80 
81 void test_bool_value_slave();
82 
83 void test_int_value_master(int value, int slave);
84 
85 void test_int_value_slave();
86 
87 void test_int_values_master(int slave);
88 
89 void test_int_values_slave();
90 } // namespace distributed
91 
92 #endif
Declaration of class stir::ProjDataInfo.
Namespace for distributed computation with MPI.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
defines the stir::DiscretisedDensity class
Declaration of class stir::RelatedViewgrams.
Declaration of class stir::DataSymmetriesForViewSegmentNumbers.
Declaration of class stir::Viewgram.