Loading...
Searching...
No Matches
VdfMaskMemoizer< MapType > Class Template Reference

Memoizes the results of mask append (union) operations. More...

#include <maskMemoizer.h>

Public Member Functions

const VdfMaskAppend (const VdfMask &lhs, const VdfMask &rhs)
 Append lhs and rhs and return the result.
 

Detailed Description

template<template< typename... > class MapType>
class VdfMaskMemoizer< MapType >

Memoizes the results of mask append (union) operations.

MapType must provide find and insert methods compatible with the standard library associative container API. MapType must accept Key, Mapped, Hash and Eq types as its first four template parameters with the same meaning as the standard unordered associative containers. References returned by Append have that same invalidation policy as the MapType. For example, references from VdfMaskMemoizer<TfHashMap> are valid for the lifetime of the memoizer but calling VdfMaskMemoizer<flat_map>::Append invalidates all references.

Definition at line 33 of file maskMemoizer.h.

Member Function Documentation

◆ Append()

const VdfMask & Append ( const VdfMask lhs,
const VdfMask rhs 
)
inline

Append lhs and rhs and return the result.

Returns a cached result, if available.

Definition at line 38 of file maskMemoizer.h.


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