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.Parameter

Synopsis

Documentation

data PassBy Source #

Determines whether a parameter is passed by value or by reference.

Constructors

Val 
Ref 

data ParameterChunk Source #

Chunk representing a parameter.

Constructors

PC 

Fields

Instances

Instances details
CodeIdea ParameterChunk Source #

Finds the code name and CodeChunk of a ParameterChunk.

Instance details

Defined in Language.Drasil.Chunk.Parameter

Idea ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

NamedIdea ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

Methods

term :: Lens' ParameterChunk NP #

MayHaveUnit ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

Quantity ParameterChunk Source #

ParameterChunks have a Quantity.

Instance details

Defined in Language.Drasil.Chunk.Parameter

HasSpace ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

Methods

typ :: Getter ParameterChunk Space #

HasSymbol ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

HasUID ParameterChunk Source #

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

Instance details

Defined in Language.Drasil.Chunk.Parameter

Methods

uid :: Getter ParameterChunk UID #

Eq ParameterChunk Source #

Equal if UIDs are equal.

Instance details

Defined in Language.Drasil.Chunk.Parameter

pcAuto :: CodeIdea c => c -> ParameterChunk Source #

Automatically chooses PassBy based on Space (Vectors and Actors passed by reference).

pcVal :: CodeIdea c => c -> ParameterChunk Source #

Constructs a pass-by-value parameter.