Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
nm::InlineGenerator Class Referenceabstract

Abstract base class for code generators. More...

#include <inlinegenerator.hpp>

Inheritance diagram for nm::InlineGenerator:
nm::glsl::GlslGenerator

Classes

struct  InputRemap
 
struct  OutputRemap
 

Public Member Functions

void generateFromLinks (const std::vector< InputRemap > &inputRemaps, const std::vector< OutputRemap > &outputRemaps, std::ostream &out)
 
void generateModule (const Module &module, const std::vector< InputRemap > &inputRemaps, const std::vector< OutputRemap > &outputRemaps, std::ostream &out)
 
std::string getUniqueId ()
 
virtual std::unique_ptr
< ModuleGenerator
getModuleGenerator (const Module &module)
 

Protected Member Functions

virtual void genTypeKeyword (const SignalType &signalType, std::ostream &out)=0
 
virtual void genDeclaration (const Declaration &variable, std::ostream &out)
 
virtual void genAssignment (const Assignment &assignment, std::ostream &out)
 
virtual void genVariable (const Variable &variable, std::ostream &out)
 
virtual void genValue (const SignalValue &value, std::ostream &out)
 
virtual void genFunctionCall (FunctionCall &functionCall, std::ostream &out)
 

Friends

struct Assignment
 
struct Variable
 
struct Expression
 
struct Value
 
struct Declaration
 
struct FunctionCall
 

Detailed Description

Abstract base class for code generators.


The documentation for this class was generated from the following files: