36 #ifndef __H__PCL_TOSTRING_H__
37 #define __H__PCL_TOSTRING_H__
47 if(pc.
empty())
return "Empty ProcessCommunicator";
48 else if(pc.
is_world())
return "PCL_COMM_WORLD ProcessCommunicator";
51 std::stringstream out;
52 out <<
"ProcessCommunicator (size = " << pc.
size() <<
"): [";
53 for(
size_t i=0; i<pc.
size(); i++)
Definition: pcl_process_communicator.h:70
int get_proc_id(size_t index) const
returns the i-th process in the communicator
Definition: pcl_process_communicator.cpp:86
bool empty() const
returns true if the communicator is empty, false if not.
Definition: pcl_process_communicator.h:77
bool is_world() const
return true if the communicator is PCD_WORLD
Definition: pcl_process_communicator.h:80
size_t size() const
returns the size of the communicator
Definition: pcl_process_communicator.cpp:71
std::string ToString(const ProcessCommunicator &pc)
Definition: pcl_tostring.h:45
Definition: parallel_grid_layout.h:46