ug4
pcl_layout_tests.h File Reference
#include <vector>
#include <iomanip>
#include <map>
#include "pcl_base.h"
#include "pcl_methods.h"
#include "pcl_communication_structs.h"
#include "pcl_interface_communicator.h"
#include "pcl_process_communicator.h"
#include "common/util/binary_buffer.h"
#include "common/log.h"
#include "common/assert.h"
#include "common/serialization.h"
#include "common/profiler/profiler.h"
#include <boost/function.hpp>

Go to the source code of this file.

Namespaces

 pcl
 

Macros

#define DEBUG_TESTLAYOUT(processCommunicator, com, master, slave)   TESTLAYOUT(processCommunicator, com, master, slave)
 
#define DEBUG_TESTLAYOUTS(layout)   DEBUG_TESTLAYOUT(layout->proc_comm(), layout->comm(), layout->master(), layout->slave())
 
#define PRINTPC(com)   UG_LOG(__FUNCTION__ << " : " << __LINE__ << "\n"); PrintPC(com)
 
#define TESTLAYOUT(processCommunicator, com, master, slave)
 
#define TESTLAYOUTS(layout)   TESTLAYOUT(layout->proc_comm(), layout->comm(), layout->master(), layout->slave())
 

Functions

template<typename TLayout >
bool pcl::PrintLayout (const pcl::ProcessCommunicator &processCommunicator, pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout)
 
template<typename TLayout , typename TValue >
bool pcl::PrintLayout (const pcl::ProcessCommunicator &processCommunicator, pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout, boost::function< TValue(typename TLayout::Element)> cbToValue=TrivialToValue< typename TLayout::Element >)
 
template<typename TLayout >
void pcl::PrintLayout (const TLayout &layout)
 
void pcl::PrintPC (const pcl::ProcessCommunicator &processCommunicator)
 
template<typename TLayout >
bool pcl::TestLayout (const pcl::ProcessCommunicator &processCommunicator, pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout, bool bPrint=false, bool compareValues=false)
 
template<typename TLayout , typename TValue >
bool pcl::TestLayout (const pcl::ProcessCommunicator &processCommunicator, pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout, bool bPrint=false, boost::function< TValue(typename TLayout::Element)> cbToValue=TrivialToValue< typename TLayout::Element >, bool compareValues=false)
 Checks whether the given layouts are consistent. More...
 
template<typename TLayout >
bool pcl::TestLayoutIsDoubleEnded (const pcl::ProcessCommunicator processCommunicator, pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout)
 tests if masterLayouts proc id's find a match in corresponding slaveLayouts proc ids. More...
 
template<typename TLayout , typename TValue >
bool pcl::TestSizeOfInterfacesInLayoutsMatch (pcl::InterfaceCommunicator< TLayout > &com, const TLayout &masterLayout, const TLayout &slaveLayout, bool bPrint=false, boost::function< TValue(typename TLayout::Element)> cbToValue=TrivialToValue< typename TLayout::Element >, bool compareValues=false)
 if processor P1 has a interface to P2, then the size of the interface P1->P2 has to be the same as the size of interface P2->P1 More...
 
template<class TElem >
TElem pcl::TrivialToValue (TElem e)
 Trivial implementation of a to-value callback. More...