[Func1] Return demangled C++ class name

This commit is contained in:
Ingmar Schoegl 2023-06-30 13:39:49 -06:00 committed by Ray Speth
parent 5dfbc6e8f2
commit c496697ee0
2 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,10 @@ public:
return "functor";
}
//! Returns a string describing the type of the function
//! @since New in Cantera 3.0.
string type_name() const;
//! Calls method eval to evaluate the function
doublereal operator()(doublereal t) const;

View File

@ -46,6 +46,11 @@ int Func1::ID() const
return 0;
}
string Func1::type_name() const
{
return demangle(typeid(*this));
}
// Calls method eval to evaluate the function
doublereal Func1::operator()(doublereal t) const
{