LibreOffice Module o3tl (master) 1
|
Update output object lazily.
Update output object lazily This template collects data in input type, and updates the output type with the given update functor, but only if the output is requested. Useful if updating is expensive, or input changes frequently, but output is only comparatively seldom used.
LazyUpdate<InType,OutType,decltype(F)> myValue(F); *myValue = newInput; myValue->updateInput( this, that, those ); output( *myValue );
or
output( myValue.getOutValue() );
if the compiler does not recognize the const context.