preCICE v3.1.2
Loading...
Searching...
No Matches
Namespaces | Functions
Helpers.hpp File Reference
#include <algorithm>
#include <limits>
#include <map>
#include <set>
#include <vector>
Include dependency graph for Helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  precice
 Main namespace of the precice library.
 
namespace  precice::utils
 contains precice-related utilities.
 

Functions

template<class Out , class In >
bool precice::utils::isTruncated (In in)
 Returns true, if numerical truncation happens in case of type conversion.
 
bool precice::utils::isValidPort (int port)
 Returns true if the argument represents a valid port.
 
bool precice::utils::xOR (bool lhs, bool rhs)
 Exclusive "or" logical operation. Returns true, if either lhs or rhs are true.
 
template<typename ELEMENT_T >
bool precice::utils::contained (const ELEMENT_T &element, const std::vector< ELEMENT_T > &vec)
 Returns true, if given element is in vector, otherwise false.
 
template<typename KEY_T , typename ELEMENT_T >
bool precice::utils::contained (const KEY_T &key, const std::map< KEY_T, ELEMENT_T > &map)
 
template<typename KEY_T >
bool precice::utils::contained (const KEY_T &key, const std::set< KEY_T > &set)
 
bool precice::utils::isMachineBigEndian ()
 Returns true if machine is big-endian needed for parallel vtk output.