Om
producer.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Language_Producer_
16 
17  #include "om/language/producer.hpp"
18 
19 #else
20 
21  #ifndef Om_Macro_Precompilation_
22 
23  #include <cassert>
24  #include <stdexcept>
25 
26  #endif
27 
28 // MARK: - Om::Language::Producer
29 
30  #define Type_ \
31  Om::Language::Producer
32 
33 // MARK: public (non-static)
34 
35 inline Type_::~Producer() {}
36 
37 inline void Type_::GiveElements(Consumer &) {
38  assert(0);
39  throw std::logic_error("Pure virtual function called.");
40 }
41 
42 inline void Type_::GiveElements(Consumer &) const {
43  assert(0);
44  throw std::logic_error("Pure virtual function called.");
45 }
46 
47 inline std::auto_ptr<Om::Language::Program> Type_::GiveProgram() {
48  assert(0);
49  throw std::logic_error("Pure virtual function called.");
50 }
51 
52 inline std::auto_ptr<Om::Language::Program> Type_::GiveProgram() const {
53  assert(0);
54  throw std::logic_error("Pure virtual function called.");
55 }
56 
57  #undef Type_
58 
59 #endif
Om header file.