OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::FunctionArgument Class Reference

Wrapper for values of varying types. More...

#include <function.h>

+ Collaboration diagram for oofem::FunctionArgument:

Public Types

enum  FunctionArgumentType { FAT_double, FAT_FloatArray, FAT_int, FAT_IntArray }

Public Member Functions

 FunctionArgument (double val)
 FunctionArgument (FloatArray val)
 FunctionArgument (int val)
 FunctionArgument (IntArray val)

Public Attributes

FunctionArgumentType type
 Determines which of the types the instance points towards. More...
double val0
FloatArray val1
int val2
IntArray val3

Detailed Description

Wrapper for values of varying types.

Used in lists of function arguments.

Definition at line 60 of file function.h.

Member Enumeration Documentation


Definition at line 63 of file function.h.

Constructor & Destructor Documentation

oofem::FunctionArgument::FunctionArgument ( double  val)

Definition at line 78 of file function.h.

oofem::FunctionArgument::FunctionArgument ( FloatArray  val)

Definition at line 79 of file function.h.

oofem::FunctionArgument::FunctionArgument ( int  val)

Definition at line 80 of file function.h.

oofem::FunctionArgument::FunctionArgument ( IntArray  val)

Definition at line 81 of file function.h.

Member Data Documentation

FunctionArgumentType oofem::FunctionArgument::type

Determines which of the types the instance points towards.

Definition at line 71 of file function.h.

Referenced by oofem::ScalarFunction::eval(), oofem::CalculatorFunction::evaluate(), and oofem::PythonExpression::getDict().

double oofem::FunctionArgument::val0
FloatArray oofem::FunctionArgument::val1
int oofem::FunctionArgument::val2
IntArray oofem::FunctionArgument::val3

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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:36 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011