SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::relabs< Abs_t > Struct Template Reference

Class that represents a value that may be either absolute or relative to another value. More...

Public Member Functions

double calc (const Abs_t &refval) const
 
Abs_t round (const Abs_t &refval) const
 
Abs_t floor (const Abs_t &refval) const
 
Abs_t ceil (const Abs_t &refval) const
 
bool is_absolute () const
 

Static Public Member Functions

static relabs< Abs_t > mkabs (const Abs_t v)
 
static relabs< Abs_t > mkrel (const double v)
 

Public Attributes

Abs_t abs
 
double rel
 

Detailed Description

template<class Abs_t>
struct shore::relabs< Abs_t >

Class that represents a value that may be either absolute or relative to another value.


The documentation for this struct was generated from the following file: