Lumiera
0.pre.03
»edit your freedom«
|
#include "steam/engine/nodeinvocation-obsolete.hpp"
Adapter to shield the ProcNode from the actual buffer management, allowing the processing function within ProcNode to use logical buffer IDs.
StateAdapter is created on the stack for each pull() call, using setup/wiring data preconfigured by the builder. Its job is to provide the actual implementation of the Cache push / fetch and recursive downcall to render the source frames.
Definition at line 72 of file nodeinvocation-obsolete.hpp.
Public Member Functions | |
virtual BuffHandle | fetch (FrameID const &fID) |
try to fetch an existing buffer containing the denoted frame from a cache or similar backing system (e.g. More... | |
virtual BuffTableStorage & | getBuffTableStorage () |
necessary for creating a local BuffTableChunk | |
virtual void | is_calculated (BuffHandle const &bh) |
declare the data contained in the Buffer to be ready. More... | |
virtual void | releaseBuffer (BuffHandle &bh) |
resign control of the buffer denoted by the handle | |
Public Member Functions inherited from StateClosure_OBSOLETE | |
virtual BuffHandle | allocateBuffer (const lumiera::StreamType *)=0 |
allocate a new writable buffer with type and size according to the BuffDescr. More... | |
virtual FrameID const & | genFrameID (NodeID const &, uint chanNo)=0 |
generate (or calculate) an ID denoting a media data frame appearing at the given position in the render network, for the time point this rendering process is currently calculating data for. More... | |
Protected Member Functions | |
StateAdapter (StateClosure_OBSOLETE &callingProcess) | |
virtual StateClosure_OBSOLETE & | getCurrentImplementation () |
resolves to the StateClosure object currently "in charge". More... | |
Protected Attributes | |
StateClosure_OBSOLETE & | current_ |
StateClosure_OBSOLETE & | parent_ |
|
inlineprotectedvirtual |
resolves to the StateClosure object currently "in charge".
Intended as a performance shortcut to avoid calling up through a chain of virtual functions when deep down in chained ProcNode::pull() calls. This allows derived classes to proxy the state interface.
Implements StateClosure_OBSOLETE.
Definition at line 84 of file nodeinvocation-obsolete.hpp.
|
inlinevirtual |
declare the data contained in the Buffer to be ready.
The caller is required to restrain itself from modifying the data afterwards, as this buffer now can be used (readonly) by other calculation processes in parallel.
Implements StateClosure_OBSOLETE.
Definition at line 92 of file nodeinvocation-obsolete.hpp.
References StateClosure_OBSOLETE::is_calculated().
|
inlinevirtual |
try to fetch an existing buffer containing the denoted frame from a cache or similar backing system (e.g.
network peer).
Implements StateClosure_OBSOLETE.
Definition at line 94 of file nodeinvocation-obsolete.hpp.
References StateClosure_OBSOLETE::fetch().