Mantid
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs
MDTypes.h File Reference
#include <limits>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 

Macros

#define COORDT_IS_FLOAT
 Define indicating that the coord_t type is a float (not double) More...
 
#define TMDE(decl)   template <typename MDE, size_t nd> decl<MDE, nd>
 Macro TMDE to make declaring template functions faster. More...
 
#define TMDE_CLASS   template <typename MDE, size_t nd>
 Macro to make declaring template classes faster. More...
 
#define UNDEF_COORDT   std::numeric_limits<coord_t>::quiet_NaN()
 
#define UNDEF_SIZET   std::numeric_limits<size_t>::max()
 
#define UNDEF_UINT64   std::numeric_limits<uint64_t>::max()
 

Typedefs

using Mantid::coord_t = float
 Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace, etc. More...
 
using Mantid::signal_t = double
 Typedef for the signal recorded in a MDBox, etc. More...
 

Macro Definition Documentation

◆ COORDT_IS_FLOAT

#define COORDT_IS_FLOAT

Define indicating that the coord_t type is a float (not double)

Definition at line 31 of file MDTypes.h.

◆ TMDE

#define TMDE (   decl)    template <typename MDE, size_t nd> decl<MDE, nd>

Macro TMDE to make declaring template functions faster.

Put this macro before function declarations. Use: TMDE(void ClassName)\:\:methodName() { // function body here }

Template Parameters
MDE:: the MDLeanEvent/MDEvent type; at first, this will always be MDLeanEvent<nd>
nd:: the number of dimensions in the center coords. Passing this as a template argument should speed up some code.

Definition at line 51 of file MDTypes.h.

◆ TMDE_CLASS

#define TMDE_CLASS   template <typename MDE, size_t nd>

Macro to make declaring template classes faster.

Use: TMDE_CLASS class ClassName : ...

Definition at line 58 of file MDTypes.h.

◆ UNDEF_COORDT

#define UNDEF_COORDT   std::numeric_limits<coord_t>::quiet_NaN()

Definition at line 61 of file MDTypes.h.

◆ UNDEF_SIZET

#define UNDEF_SIZET   std::numeric_limits<size_t>::max()

Definition at line 60 of file MDTypes.h.

◆ UNDEF_UINT64

#define UNDEF_UINT64   std::numeric_limits<uint64_t>::max()

Definition at line 62 of file MDTypes.h.