Om
incomplete_operation.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Language_Operation_IncompleteOperation_
16 
18 
19 #else
20 
21  #ifndef Om_Macro_Precompilation_
22 
23  #include <cassert>
24  #include <stdexcept>
25 
26  #endif
27 
28 // MARK: - Om::Language::Operation::IncompleteOperation
29 
30  #define Type_ \
31  Om::Language::Operation::IncompleteOperation
32 
33 // MARK: public (non-static)
34 
35 inline Type_::~IncompleteOperation() {}
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 bool Type_::ParseQuotedElements(
48  Evaluation &,
49  Reader &
50 ) {
51  assert(0);
52  throw std::logic_error("Pure virtual function called.");
53 }
54 
55 inline bool Type_::TakeElement(
56  Evaluation &,
57  Operand &
58 ) {
59  assert(0);
60  throw std::logic_error("Pure virtual function called.");
61 }
62 
63 inline bool Type_::TakeElement(
64  Evaluation &,
65  Operand const &
66 ) {
67  assert(0);
68  throw std::logic_error("Pure virtual function called.");
69 }
70 
71 inline bool Type_::TakeQuotedElements(
72  Evaluation &,
73  Producer &
74 ) {
75  assert(0);
76  throw std::logic_error("Pure virtual function called.");
77 }
78 
79 inline bool Type_::TakeQuotedElements(
80  Evaluation &,
81  Producer const &
82 ) {
83  assert(0);
84  throw std::logic_error("Pure virtual function called.");
85 }
86 
87 // MARK: protected (non-static)
88 
89 inline Type_::IncompleteOperation() {}
90 
91  #undef Type_
92 
93 #endif