swift
Loading...
Searching...
No Matches
swift::misc::CMemoHelper< Ts >::CUnmemoizer Class Reference

Unmemoizer for Ts. Other types are passed through. More...

#include <memotable.h>

Inheritance diagram for swift::misc::CMemoHelper< Ts >::CUnmemoizer:
[legend]

Public Member Functions

template<typename T>
CSequence< T > & getTable ()
 Return reference to the flat list T table.
template<typename T>
auto maybeUnmemoize (T &member) const
 If T is in Ts, return proxy that will assign to member through the value at the given index in the flat list. Otherwise, return member as std::reference_wrapper.

Detailed Description

template<typename... Ts>
class swift::misc::CMemoHelper< Ts >::CUnmemoizer

Unmemoizer for Ts. Other types are passed through.

Definition at line 74 of file memotable.h.

Member Function Documentation

◆ getTable()

template<typename... Ts>
template<typename T>
CSequence< T > & swift::misc::CMemoHelper< Ts >::CUnmemoizer::getTable ( )
inline

Return reference to the flat list T table.

Definition at line 79 of file memotable.h.

◆ maybeUnmemoize()

template<typename... Ts>
template<typename T>
auto swift::misc::CMemoHelper< Ts >::CUnmemoizer::maybeUnmemoize ( T & member) const
inline

If T is in Ts, return proxy that will assign to member through the value at the given index in the flat list. Otherwise, return member as std::reference_wrapper.

Definition at line 87 of file memotable.h.


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