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

Description

Definition at line 48 of file stateproxy.hpp.

Private Member Functions

BuffHandle allocateBuffer (const lumiera::StreamType *)
 
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...
 
FrameID const & genFrameID (NodeID const &, uint chanNo)
 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...
 
BuffTableStoragegetBuffTableStorage ()
 necessary for creating a local BuffTableChunk
 
virtual StategetCurrentImplementation ()
 resolves to the State object currently "in charge". More...
 
void is_calculated (BuffHandle const &bh)
 declare the data contained in the Buffer to be ready. More...
 
void releaseBuffer (BuffHandle &bh)
 resign control of the buffer denoted by the handle
 

Additional Inherited Members

Member Function Documentation

◆ allocateBuffer()

BuffHandle allocateBuffer ( const lumiera::StreamType )
privatevirtual

Implements State.

Definition at line 48 of file stateproxy.cpp.

◆ fetch()

BuffHandle fetch ( FrameID const &  )
privatevirtual

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 State.

Definition at line 64 of file stateproxy.cpp.

◆ is_calculated()

void is_calculated ( BuffHandle const &  )
privatevirtual

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 State.

Definition at line 72 of file stateproxy.cpp.

◆ genFrameID()

FrameID const & genFrameID ( NodeID const &  ,
uint  chanNo 
)
privatevirtual

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.

Parameters
NodeIDthe unique identification of a specific node
chanNothe number of the output channel of this node
Returns
a complete FrameID which unambiguously denotes this specific frame and can be used for caching

Implements State.

Definition at line 80 of file stateproxy.cpp.

◆ getCurrentImplementation()

virtual State& getCurrentImplementation ( )
inlineprivatevirtual

resolves to the State 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 State.

Definition at line 66 of file stateproxy.hpp.

+ Inheritance diagram for StateProxy:
+ Collaboration diagram for StateProxy:

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