RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::NotARational< T > Struct Template Referencefinal

#include "adt/NotARational.h"

Inheritance diagram for rawspeed::NotARational< T >:
[legend]
Collaboration diagram for rawspeed::NotARational< T >:
[legend]

Public Types

using value_type = T

Public Member Functions

 NotARational ()=default
 NotARational (T num_, T den_)
template<typename T2>
requires std::is_floating_point_v<T2>
 operator T2 () const

Public Attributes

T num
T den

Detailed Description

template<class T>
struct rawspeed::NotARational< T >

Definition at line 27 of file NotARational.h.

Member Typedef Documentation

◆ value_type

template<class T>
using rawspeed::NotARational< T >::value_type = T

Definition at line 29 of file NotARational.h.

Constructor & Destructor Documentation

◆ NotARational() [1/2]

template<class T>
rawspeed::NotARational< T >::NotARational ( )
default

◆ NotARational() [2/2]

template<class T>
rawspeed::NotARational< T >::NotARational ( T num_,
T den_ )
inline

Definition at line 35 of file NotARational.h.

References den, num, and rawspeed::T().

Here is the call graph for this function:

Member Function Documentation

◆ operator T2()

template<class T>
template<typename T2>
requires std::is_floating_point_v<T2>
rawspeed::NotARational< T >::operator T2 ( ) const
inlineexplicit

Definition at line 39 of file NotARational.h.

References den, and num.

Member Data Documentation

◆ den

template<class T>
T rawspeed::NotARational< T >::den

Definition at line 32 of file NotARational.h.

Referenced by NotARational(), and operator T2().

◆ num

template<class T>
T rawspeed::NotARational< T >::num

Definition at line 31 of file NotARational.h.

Referenced by NotARational(), and operator T2().


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