DP3
Classes | Public Member Functions | List of all members
dp3::parmdb::AxisMappingCache Class Reference

This class caches axis mappings. It uses the unique id of the from-axis and to-axis as the key in the cache.
It is meant to avoid creating many identical mappings, because the same axes are used for many parameters. More...

#include <AxisMapping.h>

Public Member Functions

void clear ()
 Clear the cache. More...
 
const AxisMappingget (const Axis &from, const Axis &to)
 
size_t size () const
 Get the number of elements. More...
 

Detailed Description

This class caches axis mappings. It uses the unique id of the from-axis and to-axis as the key in the cache.
It is meant to avoid creating many identical mappings, because the same axes are used for many parameters.

Member Function Documentation

◆ clear()

void dp3::parmdb::AxisMappingCache::clear ( )
inline

Clear the cache.

◆ get()

const AxisMapping& dp3::parmdb::AxisMappingCache::get ( const Axis from,
const Axis to 
)
inline

Find the possible mapping of axis 'from' to axis 'to'. If no existing, create it.

◆ size()

size_t dp3::parmdb::AxisMappingCache::size ( ) const
inline

Get the number of elements.


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