16 const std::optional<T> &
get(
const AffineXf3f & xf )
const
18 if ( cache_ && xf == xf_ )
20 static const std::optional<T> empty;
24 void set(
const AffineXf3f & xf, T t )
27 cache_ = std::move( t );
37 std::optional<T> cache_;
Definition MRXfBasedCache.h:13
void set(const AffineXf3f &xf, T t)
sets new transformation and the object
Definition MRXfBasedCache.h:24
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:16
void reset()
clears stored object
Definition MRXfBasedCache.h:30
Definition MRCameraOrientationPlugin.h:8