Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
compositemodulegenerator.hpp
1 #ifndef NM_COMPOSITEMODULEGENERATOR_H
2 #define NM_COMPOSITEMODULEGENERATOR_H
3 
4 #include <nmlib/codegeneration/modulegenerator.hpp>
5 #include <nmlib/codegeneration/unlinkedvaluedefaultsgenerator.hpp>
6 
7 namespace nm {
8 
14 {
15 public:
16  CompositeModuleGenerator(const Module& module);
17 
18  // DefaultsGenerator interface
19 public:
20  void generateDefaults(InlineGenerator &gen, std::ostream &out) override;
21 
22  // BodyGenerator interface
23 public:
24  void generateBody(InlineGenerator &gen, std::ostream &out) override;
25 
26 private:
27  const Module& m_module;
28 
29 };
30 
31 } // namespace nm
32 
33 #endif // NM_COMPOSITEMODULEGENERATOR_H
An instantiated ModuleType. A node in a function graph.
Definition: module.hpp:40
The ModuleGenerator class.
Definition: modulegenerator.hpp:13
Abstract base class for code generators.
Definition: inlinegenerator.hpp:34
Generator for modules having composite module types.
Definition: compositemodulegenerator.hpp:13