libNeon
Loading...
Searching...
No Matches
neo::gamma_table_cache Class Reference

#include <gamma.hpp>

Public Member Functions

 gamma_table_cache (unsigned precision=default_precision)
 
gamma_table const & operator[] (float gamma)
 

Static Public Attributes

static constexpr unsigned default_precision = 2
 

Private Member Functions

signed gamma_to_key (float gamma) const
 

Private Attributes

std::map< signed, std::unique_ptr< gamma_table > > _gamma_to_table
 
float _gamma_multiplier
 
std::mutex _lookup_mutex
 

Constructor & Destructor Documentation

◆ gamma_table_cache()

neo::gamma_table_cache::gamma_table_cache ( unsigned  precision = default_precision)
explicit

Member Function Documentation

◆ gamma_to_key()

signed neo::gamma_table_cache::gamma_to_key ( float  gamma) const
private

◆ operator[]()

gamma_table const & neo::gamma_table_cache::operator[] ( float  gamma)

Member Data Documentation

◆ _gamma_multiplier

float neo::gamma_table_cache::_gamma_multiplier
private

◆ _gamma_to_table

std::map<signed, std::unique_ptr<gamma_table> > neo::gamma_table_cache::_gamma_to_table
private

◆ _lookup_mutex

std::mutex neo::gamma_table_cache::_lookup_mutex
private

◆ default_precision

constexpr unsigned neo::gamma_table_cache::default_precision = 2
staticconstexpr

The documentation for this class was generated from the following files: