Skip to content
Snippets Groups Projects
Select Git revision
  • fb482639da98f0fbb8acefa603b401d2b368b194
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

ASTNodeFunctionExpressionBuilder.hpp

Blame
  • Stephane Del Pino's avatar
    Stéphane Del Pino authored
    Also allow treatment of function dealing with string type
    fb482639
    History
    ASTNodeFunctionExpressionBuilder.hpp 1.28 KiB
    #ifndef AST_NODE_FUNCTION_EXPRESSION_BUILDER_HPP
    #define AST_NODE_FUNCTION_EXPRESSION_BUILDER_HPP
    
    #include <ASTNode.hpp>
    #include <node_processor/INodeProcessor.hpp>
    
    class FunctionProcessor;
    class FunctionDescriptor;
    
    class ASTNodeFunctionExpressionBuilder
    {
     private:
      template <typename SymbolType>
      PUGS_INLINE std::unique_ptr<INodeProcessor> _getArgumentProcessor(SymbolType& parameter_symbol,
                                                                        ASTNode& argument_node);
    
      PUGS_INLINE
      void _storeArgumentProcessor(ASTNode& parameter_variable,
                                   ASTNode& argument_node,
                                   FunctionProcessor& function_processor);
    
      PUGS_INLINE
      void _buildArgumentProcessors(FunctionDescriptor& function_descriptor,
                                    ASTNode& node,
                                    FunctionProcessor& function_processor);
    
      PUGS_INLINE
      std::unique_ptr<INodeProcessor> _getFunctionProcessor(const ASTNodeDataType expression_value_type,
                                                            const ASTNodeDataType return_value_type,
                                                            ASTNode& node);
    
     public:
      ASTNodeFunctionExpressionBuilder(ASTNode& node);
    };
    
    #endif   // AST_NODE_FUNCTION_EXPRESSION_BUILDER_HPP