ug4
pcl_util.h File Reference
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include "pcl_layout_util.h"
#include "pcl_base.h"
#include "pcl_communication_structs.h"
#include "common/util/binary_buffer.h"
#include "pcl_process_communicator.h"
#include "pcl_util_impl.h"

Go to the source code of this file.

Classes

class  pcl::SelectionCommPol< TLayout, TSelectorIn, TSelectorOut >
 communicates selection-status of interface elements More...
 

Namespaces

 pcl
 

Macros

#define PCL_DEBUG_BARRIER(communicator)
 
#define PCL_DEBUG_BARRIER_ALL()
 

Functions

template<typename TLayout >
void pcl::AddLayout (TLayout &destLayout, const TLayout &sourceLayout)
 
bool pcl::AllProcsTrue (bool bFlag, ProcessCommunicator comm)
 
void pcl::CommunicateInvolvedProcesses (std::vector< int > &vReceiveFromRanksOut, const std::vector< int > &vSendToRanks, const ProcessCommunicator &procComm=ProcessCommunicator())
 exchanges information about which process wants to communicate with which other process. More...
 
template<typename TKey , typename TValue , typename Compare >
void pcl::MinimalKeyValuePairAcrossAllProcs (TKey &keyInOut, TValue &valInOut, const Compare &cmp=Compare())
 Find minimal key/value pair across processes This function will receive one key/value pair from each process. They will be gathered on proc 0, where the minimal key (w.r.t. given Compare object, e.g., std::less<TKey> ) and corresponding value will be determined. The minimal pair will be made known to all procs and returned. More...
 
bool pcl::OneProcTrue (bool bFlag, ProcessCommunicator comm)
 
bool pcl::ParallelReadFile (std::string &filename, std::vector< char > &file, bool bText, bool bDistributedLoad, const ProcessCommunicator &pc=ProcessCommunicator())
 util function to read a file in parallel. More...
 
template<class TLayout , class TSelector >
bool pcl::RemoveUnselectedInterfaceEntries (TLayout &layout, TSelector &sel)
 
template<class TType , class TLayoutMap , class TSelector >
bool pcl::RemoveUnselectedInterfaceEntries (TLayoutMap &lm, TSelector &sel)
 
bool pcl::SendRecvBuffersMatch (const std::vector< int > &recvFrom, const std::vector< int > &recvBufSizes, const std::vector< int > &sendTo, const std::vector< int > &sendBufSizes, const ProcessCommunicator &involvedProcs=ProcessCommunicator())
 checks whether matching buffers in send- and recv-lists have the same size More...
 
bool pcl::SendRecvListsMatch (const std::vector< int > &recvFrom, const std::vector< int > &sendTo, const ProcessCommunicator &involvedProcs=ProcessCommunicator())
 checks whether proc-entries in send- and recv-lists on participating processes match More...
 
void pcl::SynchronizeProcesses ()
 

Macro Definition Documentation

◆ PCL_DEBUG_BARRIER

#define PCL_DEBUG_BARRIER (   communicator)

◆ PCL_DEBUG_BARRIER_ALL

#define PCL_DEBUG_BARRIER_ALL ( )