19 const std::optional<T> &
get(
const AffineXf3f & xf )
const
21 if ( cache_ && xf == xf_ )
23 static const std::optional<T> empty;
27 void set(
const AffineXf3f & xf, T t )
30 cache_ = std::move( t );
40 std::optional<T> cache_;
Definition MRXfBasedCache.h:16
void set(const AffineXf3f &xf, T t)
sets new transformation and the object
Definition MRXfBasedCache.h:27
const std::optional< T > & get(const AffineXf3f &xf) const
returns stored object only if requested transformation is the same as stored one
Definition MRXfBasedCache.h:19
void reset()
clears stored object
Definition MRXfBasedCache.h:33
only for bindings generation
Definition MRCameraOrientationPlugin.h:8