Sen API
Sen Libraries
Loading...
Searching...
No Matches
quantity.h File Reference
#include "compiler_macros.h"
#include "sen/core/base/assert.h"
#include "sen/core/base/class_helpers.h"
#include <string>

Go to the source code of this file.

Classes

class  sen::Quantity< T, D >
 CRTP class that wraps T to ensure it's value stays within a certain range. More...
struct  sen::ShouldBePassedByValue< Quantity< T, D > >

Namespaces

namespace  sen

Macros

#define SEN_RANGED_QUANTITY(class_name, value_type, min_value, max_value)
 Use this macro to define types for values that shall stay within some [min, max] range. NOLINTNEXTLINE(cppcoreguidelines-macro-usage).
#define SEN_NON_RANGED_QUANTITY(class_name, value_type)
 Use this macro to define types for quantities that specify no range NOLINTNEXTLINE(cppcoreguidelines-macro-usage).