basix_doc 0.1
memoizer< V >::binary< D, S1, S2, fun > Struct Template Reference

#include <memoize.hpp>

List of all members.

Public Types

Static Public Member Functions

Static Public Attributes


Detailed Description

template<typename V>
template<typename D, typename S1, typename S2, D(*)(const S1 &, const S2 &) fun>
struct mmx::memoizer< V >::binary< D, S1, S2, fun >

Definition at line 76 of file memoize.hpp.


Member Typedef Documentation

typedef D(* fun_type)(const S1 &, const S2 &)

Definition at line 77 of file memoize.hpp.


Member Function Documentation

static void end ( ) [inline, static]

Definition at line 80 of file memoize.hpp.

static void start ( ) [inline, static]

Definition at line 83 of file memoize.hpp.

References memoizer< V >::end(), and memoizer< V >::to_clean.

                                {
      if (!busy) {
        busy= true;
        to_clean= cons<cleaner> (end, to_clean); } }

Member Data Documentation

bool busy = false [static]

Definition at line 78 of file memoize.hpp.

table< D, pair< S1, S2 >, typename V::table_variant > t [static]
Initial value:
  table<D,pair<S1,S2>,typename V::table_variant> ()

Definition at line 79 of file memoize.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines