Peano 4
Loading...
Searching...
No Matches
peano4.output.ActionSet.ActionSet Class Reference
Inheritance diagram for peano4.output.ActionSet.ActionSet:
Collaboration diagram for peano4.output.ActionSet.ActionSet:

Public Member Functions

 __init__ (self, classname, namespace, subdirectory, implementation=None)
 Implementation of an Action Set.
 
 add_operation (self, name, signature)
 signature is a long tuple.
 
 get_cpp_file_name (self)
 
 generate (self, overwrite, directory)
 

Data Fields

 classname
 
 namespace
 
 subdirectory
 
 operations
 
 include_files
 
 typedefs
 
 implementation
 

Private Member Functions

 __generate_includes (self, outputfile)
 
 __get_operation_arguments (self, operation)
 
 __generate_operation (self, outputfile, operation)
 outputfile points to file, operation to an operation object as added by the solver step
 
 __get_full_qualified_class_name (self)
 
 __generate_header (self, overwrite, directory)
 
 __generate_implementation (self, overwrite, directory)
 

Private Attributes

 __class__
 

Detailed Description

Definition at line 13 of file ActionSet.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.output.ActionSet.ActionSet.__init__ ( self,
classname,
namespace,
subdirectory,
implementation = None )

Implementation of an Action Set.

Please consult peano4.solversteps.ActionSet for a description.

implementation Should be of type peano4.solversteps.Mapping or None. If it is None, then the generated stuff will be a sole interface.

Definition at line 14 of file ActionSet.py.

Member Function Documentation

◆ __generate_header()

◆ __generate_implementation()

peano4.output.ActionSet.ActionSet.__generate_implementation ( self,
overwrite,
directory )
private

◆ __generate_includes()

peano4.output.ActionSet.ActionSet.__generate_includes ( self,
outputfile )
private

Definition at line 45 of file ActionSet.py.

References peano4.output.ActionSet.ActionSet.include_files.

◆ __generate_operation()

peano4.output.ActionSet.ActionSet.__generate_operation ( self,
outputfile,
operation )
private

outputfile points to file, operation to an operation object as added by the solver step

Definition at line 62 of file ActionSet.py.

References peano4.output.ActionSet.ActionSet.__get_operation_arguments(), and peano4.output.ActionSet.ActionSet.implementation.

Here is the call graph for this function:

◆ __get_full_qualified_class_name()

◆ __get_operation_arguments()

peano4.output.ActionSet.ActionSet.__get_operation_arguments ( self,
operation )
private

Definition at line 48 of file ActionSet.py.

Referenced by peano4.output.ActionSet.ActionSet.__generate_implementation(), and peano4.output.ActionSet.ActionSet.__generate_operation().

Here is the caller graph for this function:

◆ add_operation()

peano4.output.ActionSet.ActionSet.add_operation ( self,
name,
signature )

signature is a long tuple.

The first entry is the name of the routine, the second entry is the result type. From thereon, one entry gives the name of an attribute, the second one the type.

Definition at line 37 of file ActionSet.py.

References peano4.output.ActionSet.ActionSet.operations.

◆ generate()

◆ get_cpp_file_name()

Field Documentation

◆ __class__

◆ classname

◆ implementation

◆ include_files

peano4.output.ActionSet.ActionSet.include_files

Definition at line 33 of file ActionSet.py.

Referenced by peano4.output.ActionSet.ActionSet.__generate_includes().

◆ namespace

◆ operations

peano4.output.ActionSet.ActionSet.operations

◆ subdirectory

◆ typedefs

peano4.output.ActionSet.ActionSet.typedefs

Definition at line 34 of file ActionSet.py.


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