Lumiera  0.pre.03
»edit your freedom«
stateproxy.hpp
Go to the documentation of this file.
1 /*
2  STATEPROXY.hpp - Encapsulation of the state corresponding to a render calculation
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
36 #ifndef ENGINE_STATEPROXY_H
37 #define ENGINE_STATEPROXY_H
38 
39 
40 #include "steam/state.hpp"
41 
42 
43 namespace steam {
44 namespace engine {
45 
46 
47 
48  class StateProxy
49  : public proc_interface::State
50  {
51 
52  private: /* === top-level implementation of the State interface === */
53 
55 
56  void releaseBuffer (BuffHandle& bh);
57 
58  BuffHandle fetch (FrameID const& fID);
59 
60  void is_calculated (BuffHandle const& bh);
61 
62  FrameID const& genFrameID (NodeID const&, uint chanNo);
63 
65 
66  virtual State& getCurrentImplementation () { return *this; }
67 
68  };
69 
70 
71 
72 }} // namespace steam::engine
73 #endif
Abstraction to access the state of a currently ongoing render/calculation process, as it is tied to the supporting facilities of the vault layer.
Definition: state.hpp:59
Identification tuple for addressing frames unambiguously.
Definition: frameid.hpp:78
Obsolete, to be rewritten /////TICKET #826.
Access point to an ongoing render&#39;s processing state.
BuffHandle allocateBuffer(const lumiera::StreamType *)
Definition: stateproxy.cpp:48
Steam-Layer implementation namespace root.
void is_calculated(BuffHandle const &bh)
declare the data contained in the Buffer to be ready.
Definition: stateproxy.cpp:72
FrameID const & genFrameID(NodeID const &, uint chanNo)
generate (or calculate) an ID denoting a media data frame appearing at the given position in the rend...
Definition: stateproxy.cpp:80
void releaseBuffer(BuffHandle &bh)
resign control of the buffer denoted by the handle
Definition: stateproxy.cpp:56
BuffTableStorage & getBuffTableStorage()
necessary for creating a local BuffTableChunk
Definition: stateproxy.cpp:88
Handle for a buffer for processing data, abstracting away the actual implementation.
Definition: buffhandle.hpp:115
virtual State & getCurrentImplementation()
resolves to the State object currently "in charge".
Definition: stateproxy.hpp:66
Identification tuple for denoting render nodes unambiguously.
Definition: frameid.hpp:51
BuffHandle fetch(FrameID const &fID)
try to fetch an existing buffer containing the denoted frame from a cache or similar backing system (...
Definition: stateproxy.cpp:64