mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Func1] Return demangled C++ class name
This commit is contained in:
parent
5dfbc6e8f2
commit
c496697ee0
@ -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;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user