AbstractGenerator ClassEncog Machine Learning Framework for .Net
Abstract class that forms the foundation of most code generators. This class allows for includes and code indentation.
Inheritance Hierarchy

System Object
  Encog.App.Generate.Generators AbstractGenerator
    Encog.App.Generate.Generators.CS GenerateCS
    Encog.App.Generate.Generators.Java GenerateEncogJava
    Encog.App.Generate.Generators.JS GenerateEncogJavaScript

Namespace: Encog.App.Generate.Generators
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax

public abstract class AbstractGenerator : IProgramGenerator, 
	ILanguageSpecificGenerator

The AbstractGenerator type exposes the following members.

Constructors

  NameDescription
Protected methodAbstractGenerator
Initializes a new instance of the AbstractGenerator class
Top
Methods

  NameDescription
Public methodAddBreak
Add a line break;
Public methodAddInclude
Add an include.
Public methodAddLine
Add a line of code, indent proper.
Public methodAddToBeginning
Add to the beginning of the file. This is good for includes.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerate
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIndentLine
Indent a line. The line after dis one will be indented.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnIndentLine
Unindent and then add this line.
Public methodWriteContents
Write the contents to the specified file.
Top
Fields

  NameDescription
Public fieldStatic memberINDENT_SPACES
Default number of indent spaces.
Top
Properties

  NameDescription
Public propertyContents
Get the contents.
Public propertyIncludes
The includes.
Top
See Also