Tatooine
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
tatooine::color_scales::PRGn< Real > Struct Template Reference

#include <PRGn.h>

Collaboration diagram for tatooine::color_scales::PRGn< Real >:
[legend]

Public Types

using real_type = Real
 
using this_type = PRGn< Real >
 
using color_type = vec< Real, 3 >
 

Public Member Functions

auto data_container () -> color_type *
 
auto data_container () const -> color_type const *
 
auto data () -> color_type *
 
auto data () const -> color_type const *
 
 PRGn ()
 
auto sample (real_type t) const
 
auto operator() (real_type const t) const
 

Static Public Member Functions

static constexpr std::size_t num_samples ()
 

Private Attributes

std::unique_ptr< color_type[]> m_data
 

Member Typedef Documentation

◆ color_type

template<floating_point Real>
using tatooine::color_scales::PRGn< Real >::color_type = vec<Real, 3>

◆ real_type

template<floating_point Real>
using tatooine::color_scales::PRGn< Real >::real_type = Real

◆ this_type

template<floating_point Real>
using tatooine::color_scales::PRGn< Real >::this_type = PRGn<Real>

Constructor & Destructor Documentation

◆ PRGn()

template<floating_point Real>
tatooine::color_scales::PRGn< Real >::PRGn ( )
inline

Member Function Documentation

◆ data() [1/2]

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::data ( ) -> color_type*
inline

◆ data() [2/2]

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::data ( ) const -> color_type const*
inline

◆ data_container() [1/2]

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::data_container ( ) -> color_type*
inline

◆ data_container() [2/2]

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::data_container ( ) const -> color_type const*
inline

◆ num_samples()

template<floating_point Real>
static constexpr std::size_t tatooine::color_scales::PRGn< Real >::num_samples ( )
inlinestaticconstexpr

◆ operator()()

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::operator() ( real_type const  t) const
inline

◆ sample()

template<floating_point Real>
auto tatooine::color_scales::PRGn< Real >::sample ( real_type  t) const
inline

Member Data Documentation

◆ m_data

template<floating_point Real>
std::unique_ptr<color_type[]> tatooine::color_scales::PRGn< Real >::m_data
private

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