MeshLib
 
Loading...
Searching...
No Matches
MR::XfBasedCache< T > Class Template Reference

#include <MRXfBasedCache.h>

Public Member Functions

const std::optional< T > & get (const AffineXf3f &xf) const
 returns stored object only if requested transformation is the same as stored one
 
void set (const AffineXf3f &xf, T t)
 sets new transformation and the object
 
void reset ()
 clears stored object
 

Detailed Description

template<class T>
class MR::XfBasedCache< T >

optional T-object container, which stores a transformation as well for which the object is valid

Member Function Documentation

◆ get()

template<class T >
const std::optional< T > & MR::XfBasedCache< T >::get ( const AffineXf3f & xf) const
inline

returns stored object only if requested transformation is the same as stored one

◆ reset()

template<class T >
void MR::XfBasedCache< T >::reset ( )
inline

clears stored object

◆ set()

template<class T >
void MR::XfBasedCache< T >::set ( const AffineXf3f & xf,
T t )
inline

sets new transformation and the object


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