hexed 0.4.0
 
Loading...
Searching...
No Matches
hexed::kernel_lookup::Kernel_lookup< kernel, max_n_dim, max_row_size > Class Template Reference

A recursive template to create the desired kernel instantiations. More...

#include <kernel_factory.hpp>

Public Member Functions

template<typename... constructor_args>
ptr_t< kernel > get (int n_dim, int row_size, constructor_args &&... args)
 

Detailed Description

template<template< int, int > typename kernel, int max_n_dim, int max_row_size>
class hexed::kernel_lookup::Kernel_lookup< kernel, max_n_dim, max_row_size >

A recursive template to create the desired kernel instantiations.

You can think of it as a compile-time linked list, where each template contains another template with one less row size. When the row size is 1, it wraps around to config::max_row_size but with one less dimension via specialization below. The second specialization below terminates the recursion when both the row size and the dimension are 1.


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