Public Member Functions | List of all members
nmx::apps::x014::Cache< X, Y, DEBUG > Class Template Reference

The Cache class Erzeugen von Zwischenspeicher für Funktionswerte. More...

#include <x014.h>

Public Member Functions

 Cache (Y(*fn)(X))
 Cache Konstruktor. More...
 
get (X x)
 get berechne Funktionenwert More...
 
auto size () const
 size More...
 

Detailed Description

template<class X, class Y, bool DEBUG = false>
class nmx::apps::x014::Cache< X, Y, DEBUG >

The Cache class Erzeugen von Zwischenspeicher für Funktionswerte.

Definition at line 18 of file x014.h.

Constructor & Destructor Documentation

◆ Cache()

template<class X , class Y , bool DEBUG = false>
nmx::apps::x014::Cache< X, Y, DEBUG >::Cache ( Y(*)(X)  fn)
inline

Cache Konstruktor.

Parameters
fnZeiger auf Funktion

Definition at line 31 of file x014.h.

Member Function Documentation

◆ get()

template<class X , class Y , bool DEBUG = false>
Y nmx::apps::x014::Cache< X, Y, DEBUG >::get ( x)
inline

get berechne Funktionenwert

Parameters
xVariable
Returns
Funktionswert

Definition at line 39 of file x014.h.

◆ size()

template<class X , class Y , bool DEBUG = false>
auto nmx::apps::x014::Cache< X, Y, DEBUG >::size ( ) const
inline

size

Returns
Anzahl der gespeicherten Werte

Definition at line 57 of file x014.h.


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