drasil-code-0.1.9.0: A framework for code and document generation for scientific software - Code SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.Chunk.CodeDefinition

Synopsis

Documentation

data CodeDefinition Source #

A chunk for pairing a mathematical definition with a CodeChunk.

Instances

Instances details
CodeIdea CodeDefinition Source #

Finds the code name of a CodeDefinition. Function CodeDefinitions are named with the function prefix to distinguish them from the corresponding variable version.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

DefiningCodeExpr CodeDefinition Source #

Finds the defining expression of a CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

Idea CodeDefinition Source #

Finds the idea contained in the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

NamedIdea CodeDefinition Source #

Finds the term (NP) of the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

Methods

term :: Lens' CodeDefinition NP #

MayHaveUnit CodeDefinition Source #

Finds the units of the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

Quantity CodeDefinition Source #

CodeDefinitions have a Quantity.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

HasSpace CodeDefinition Source #

Finds the Space of the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

Methods

typ :: Getter CodeDefinition Space #

HasSymbol CodeDefinition Source #

Finds the Stage dependent Symbol of the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

HasUID CodeDefinition Source #

Finds the UID of the CodeChunk used to make the CodeDefinition.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

Methods

uid :: Getter CodeDefinition UID #

Eq CodeDefinition Source #

Equal if UIDs are equal.

Instance details

Defined in Language.Drasil.Chunk.CodeDefinition

data DefinitionType Source #

The definition may be specialized to use ODEs.

Constructors

Definition 
ODE 

qtoc :: (Quantity (q Expr), MayHaveUnit (q Expr), DefiningExpr q) => q Expr -> CodeDefinition Source #

Constructs a CodeDefinition where the underlying CodeChunk is for a function.

qtov :: CanGenCode e => QDefinition e -> CodeDefinition Source #

Constructs a CodeDefinition where the underlying CodeChunk is for a variable.

odeDef :: ODEInfo -> CodeDefinition Source #

Constructs a CodeDefinition for an ODE.