MeshLib C++ Docs
Loading...
Searching...
No Matches
MRScalarConvert.h File Reference
#include "MRVoxelsFwd.h"

Go to the source code of this file.

Namespaces

namespace  MR
 

Macros

#define M(T)   return f( *( const T* )( c ) );
 

Functions

MRVOXELS_API std::function< float(const char *)> MR::getTypeConverter (ScalarType scalarType, Uint64 range, Int64 min)
 
template<typename F >
std::invoke_result_t< F, int > MR::visitScalarType (F &&f, ScalarType scalarType, const char *c)
 More general template to pass a single value of specified format scalarType to a generic function f.
 

Macro Definition Documentation

◆ M

#define M ( T)    return f( *( const T* )( c ) );