33 #ifndef __H__PCL_DEBUG__
34 #define __H__PCL_DEBUG__
46 #define PCLLOG(msg) UG_LOG(msg)
61 template <
class TLayout>
66 typedef typename TLayout::Interface Interface;
67 typedef typename TLayout::iterator InterfaceIter;
69 PCLLOG(prefix <<
"-- PCL_DEBUG: layout-structure --\n");
70 PCLLOG(prefix <<
"---- num_levels: " << layout.num_levels() << endl);
72 for(
size_t lvl = 0; lvl < layout.num_levels(); ++lvl)
74 PCLLOG(prefix <<
"---- interfaces on level " << lvl <<
" (proc id, size): ");
76 for(InterfaceIter iiter = layout.begin(lvl);
77 iiter != layout.end(lvl); ++iiter)
79 Interface&
interface = layout.interface(iiter);
80 PCLLOG(
"(" << layout.proc_id(iiter) <<
", " << interface.size() <<
"), ");
92 template <
class TType,
class TLayoutMap>
97 typedef typename TLayoutMap::template Types<TType>::Map::iterator iterator;
98 typedef typename TLayoutMap::template Types<TType>::Layout Layout;
100 PCLLOG(
"-- PCL_DEBUG: layout-map-structure --\n");
102 for(iterator iter = lm.template layouts_begin<TType>();
103 iter != lm.template layouts_end<TType>(); ++iter)
106 PCLLOG(
"---- has key: " << iter->first << endl);
109 Layout& layout = iter->second;
void LogLayoutMapStructure(TLayoutMap &lm)
Logs the internals of a layout-map for a given type.
Definition: pcl_debug.h:93
void LogLayoutStructure(TLayout &layout, const char *prefix="")
Logs the internals of a layout.
Definition: pcl_debug.h:62
Definition: parallel_grid_layout.h:46
Definition: smart_pointer.h:814
#define PCLLOG(msg)
this allows us to print messages to the users terminal
Definition: pcl_debug.h:46