Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
IntScale Struct Reference

#include <IntScale.hpp>

Collaboration diagram for IntScale:
Collaboration graph

Public Types

enum  Mode { Upscale, Downscale }
 

Public Member Functions

 IntScale (int scale, Mode mode)
 
int scale () const noexcept
 
Mode mode () const noexcept
 
bool isUpscale () const noexcept
 
bool isDownscale () const noexcept
 
template<typename T >
apply (T value) const noexcept
 
template<typename T >
invertApply (T value) const noexcept
 
bool operator== (const IntScale &other) const noexcept
 
bool operator!= (const IntScale &other) const noexcept
 

Protected Attributes

int _scale
 
Mode _mode
 

Detailed Description

Type. Represents scale. It can be either upscale or downscale.

Member Enumeration Documentation

Enumerator
Upscale 
Downscale 

Constructor & Destructor Documentation

IntScale::IntScale ( int  scale,
Mode  mode 
)
inline

Member Function Documentation

template<typename T >
T IntScale::apply ( value) const
inlinenoexcept
template<typename T >
T IntScale::invertApply ( value) const
inlinenoexcept
bool IntScale::isDownscale ( ) const
inlinenoexcept
bool IntScale::isUpscale ( ) const
inlinenoexcept

Here is the caller graph for this function:

Mode IntScale::mode ( ) const
inlinenoexcept
bool IntScale::operator!= ( const IntScale other) const
inlinenoexcept
bool IntScale::operator== ( const IntScale other) const
inlinenoexcept
int IntScale::scale ( ) const
inlinenoexcept

Here is the caller graph for this function:

Member Data Documentation

Mode IntScale::_mode
protected
int IntScale::_scale
protected

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