SPH
Classes | Macros | Functions
Indices.h File Reference

Vectorized computations with integral numbers. More...

#include "objects/Object.h"
#include "objects/geometry/Vector.h"

Go to the source code of this file.

Classes

class  Indices
 Helper object for storing three (possibly four) int or bool values. More...
 
struct  IndicesEqual
 
class  std::hash< Sph::Indices >
 

Macros

#define SPH_NO_ROUNDING_MODE
 

Functions

INLINE Indices max (const Indices i1, const Indices i2)
 
INLINE Indices min (const Indices i1, const Indices i2)
 
INLINE bool all (const Indices &i)
 
INLINE bool any (const Indices &i)
 
template<>
INLINE auto floor (const Vector &v)
 

Detailed Description

Vectorized computations with integral numbers.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Indices.h.

Macro Definition Documentation

◆ SPH_NO_ROUNDING_MODE

#define SPH_NO_ROUNDING_MODE

Definition at line 13 of file Indices.h.

Function Documentation

◆ all()

INLINE bool all ( const Indices i)

Definition at line 144 of file Indices.h.

◆ any()

INLINE bool any ( const Indices i)

Definition at line 148 of file Indices.h.

◆ floor()

template<>
INLINE auto floor ( const Vector v)

Definition at line 153 of file Indices.h.

◆ max()

INLINE Indices max ( const Indices  i1,
const Indices  i2 
)

Definition at line 136 of file Indices.h.

◆ min()

INLINE Indices min ( const Indices  i1,
const Indices  i2 
)

Definition at line 140 of file Indices.h.