StoreGate: Add ReadDecorHandle::withDefault.
StoreGate: Add ReadDecorHandle::withDefault. Add withDefault() method to ReadDecorHandle. This works like operator(), except that one specifies a default value to return if the variable is not available. This allows removing some instances of isAvailable().
Showing
- Control/StoreGate/StoreGate/ReadDecorHandle.h 23 additions, 1 deletionControl/StoreGate/StoreGate/ReadDecorHandle.h
- Control/StoreGate/StoreGate/ReadDecorHandle.icc 38 additions, 1 deletionControl/StoreGate/StoreGate/ReadDecorHandle.icc
- Control/StoreGate/test/ReadDecorHandle_test.cxx 5 additions, 1 deletionControl/StoreGate/test/ReadDecorHandle_test.cxx
Loading
Please register or sign in to comment