Lumiera  0.pre.03
»edit your freedom«
StateAdapter Class Reference

#include "steam/engine/nodeinvocation-obsolete.hpp"

Description

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 BuffTableStoragegetBuffTableStorage ()
 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_OBSOLETEgetCurrentImplementation ()
 resolves to the StateClosure object currently "in charge". More...
 

Protected Attributes

StateClosure_OBSOLETEcurrent_
 
StateClosure_OBSOLETEparent_
 

Member Function Documentation

◆ getCurrentImplementation()

virtual StateClosure_OBSOLETE& getCurrentImplementation ( )
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.

◆ is_calculated()

virtual void is_calculated ( BuffHandle const &  )
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().

+ Here is the call graph for this function:

◆ fetch()

virtual BuffHandle fetch ( FrameID const &  )
inlinevirtual

try to fetch an existing buffer containing the denoted frame from a cache or similar backing system (e.g.

network peer).

Returns
either a handle to a readonly buffer, or a null handle
Note
the client is responsible for not modifying the provided data

Implements StateClosure_OBSOLETE.

Definition at line 94 of file nodeinvocation-obsolete.hpp.

References StateClosure_OBSOLETE::fetch().

+ Here is the call graph for this function:
+ Inheritance diagram for StateAdapter:
+ Collaboration diagram for StateAdapter:

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