CEPS  24.01
Cardiac ElectroPhysiology Simulator
CepsTypeTools.hpp File Reference
#include <ostream>
#include <tuple>
#include "common/core/CepsTypes.hpp"

Go to the source code of this file.

Data Structures

struct  CepsHash3
 A triple hash to be used for coordinates (multiplied *10^12 then truncated) More...
 

Namespaces

 ceps
 A namespace for all utility methods.
 
 ceps::hash
 namespace for hash generation tools
 

Macros

#define CEPS_HASH3_PRECISION   1.e-12
 

Functions

template<class _Type >
constexpr CepsHash ceps::hash::get (_Type const &i)
 get a hash from a single value More...
 
template<class _Type1 , class _Type2 >
constexpr CepsHash ceps::hash::get (_Type1 const &i, _Type2 const &j)
 Get a hash from two values. More...
 
template<class _Arg0 , class... _Args>
constexpr CepsHash ceps::hash::get (_Arg0 const &arg0, _Args const &...args)
 Get a hash from any number of values. More...
 
CepsBool operator< (const CepsHash3 &h31, const CepsHash3 &h32)
 Comparator for two CepsHash3, in order to use them in a map. More...
 
std::ostream & operator<< (std::ostream &os, const CepsHash3 &h)
 Display a triple hash. More...
 
CepsHash3 ceps::hash::getHash3 (const CepsReal3D &xyz)
 Get a triple hash from real coordinates. More...
 
void ceps::checkNanOrInf (CepsReal v, CepsString message="")
 Stops if value is NaN or infty. More...
 

Detailed Description

Operations on templated types and check type properties

Definition in file CepsTypeTools.hpp.

Macro Definition Documentation

◆ CEPS_HASH3_PRECISION

#define CEPS_HASH3_PRECISION   1.e-12

Definition at line 82 of file CepsTypeTools.hpp.

Function Documentation

◆ operator<()

CepsBool operator< ( const CepsHash3 h31,
const CepsHash3 h32 
)

Comparator for two CepsHash3, in order to use them in a map.

Definition at line 35 of file CepsTypeTools.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const CepsHash3 h 
)

Display a triple hash.

Definition at line 43 of file CepsTypeTools.cpp.