Om
atom.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Language_Atom_
16 
17  #include "om/language/atom.hpp"
18 
19 #else
20 
21  #include "om/language/null.hpp"
22 
23 // MARK: - Om::Language::Atom
24 
25  #define Type_ \
26  Om::Language::Atom
27 
28 // MARK: public (non-static)
29 
30 inline Om::Language::Program & Type_::operator *() {
31  return Null::Get();
32 }
33 
34 inline Om::Language::Program const & Type_::operator *() const {
35  return Null::Get();
36 }
37 
38  #undef Type_
39 
40 // MARK: - Om::Language::
41 
42 inline Om::Language::Atom * Om::Language::new_clone(Atom const & theAtom) {
43  return Copy(theAtom).release();
44 }
45 
46 #endif
Om header file.
An atomic Element defined by a string.
Definition: atom.hpp:33
The Program implementation.
Definition: program.hpp:62
Atom * new_clone(Atom const &)
std::auto_ptr< TheCopyable > Copy(TheCopyable const &)
Om header file.