Infrared
Loading...
Searching...
No Matches
ired::container_selector< FunValue, mapS > Struct Template Reference

Class implementing the specializations to enable instantiation of sparse materialized function classes. More...

#include <functions.hpp>

Public Types

using type = std::unordered_map< int, FunValue >
 

Static Public Member Functions

static void init (type &x, size_t size, const FunValue &zero)
 
static const FunValue & get (const type &x, size_t i, const FunValue &zero)
 
static bool guaranteed_zero (const type &x, size_t i)
 
static void set (type &x, size_t i, const FunValue &v, const FunValue &zero)
 

Detailed Description

template<class FunValue>
struct ired::container_selector< FunValue, mapS >

Class implementing the specializations to enable instantiation of sparse materialized function classes.

Member Typedef Documentation

◆ type

template<class FunValue >
using ired::container_selector< FunValue, mapS >::type = std::unordered_map<int,FunValue>

Member Function Documentation

◆ get()

template<class FunValue >
static const FunValue & ired::container_selector< FunValue, mapS >::get ( const type x,
size_t  i,
const FunValue &  zero 
)
inlinestatic

◆ guaranteed_zero()

template<class FunValue >
static bool ired::container_selector< FunValue, mapS >::guaranteed_zero ( const type x,
size_t  i 
)
inlinestatic

◆ init()

template<class FunValue >
static void ired::container_selector< FunValue, mapS >::init ( type x,
size_t  size,
const FunValue &  zero 
)
inlinestatic

◆ set()

template<class FunValue >
static void ired::container_selector< FunValue, mapS >::set ( type x,
size_t  i,
const FunValue &  v,
const FunValue &  zero 
)
inlinestatic

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