mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Deprecated the Kinetics::ID() method
The type() method should be used instead.
This commit is contained in:
@@ -110,7 +110,10 @@ public:
|
||||
*/
|
||||
virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const;
|
||||
|
||||
virtual int ID() const {
|
||||
/**
|
||||
* @deprecated use type() instead
|
||||
*/
|
||||
DEPRECATED(virtual int ID() const) {
|
||||
return cAqueousKinetics;
|
||||
}
|
||||
virtual int type() const {
|
||||
|
||||
@@ -65,8 +65,9 @@ public:
|
||||
/**
|
||||
* Identifies the subclass of the Kinetics manager type.
|
||||
* These are listed in mix_defs.h.
|
||||
* @deprecated use type() instead.
|
||||
*/
|
||||
virtual int ID() const {
|
||||
DEPRECATED(virtual int ID() const) {
|
||||
return cEdgeKinetics;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,10 @@ public:
|
||||
/// Destructor.
|
||||
virtual ~GRI_30_Kinetics() {}
|
||||
|
||||
virtual int ID() const {
|
||||
/**
|
||||
* @deprecated use type() instead
|
||||
*/
|
||||
DEPRECATED(virtual int ID() const) {
|
||||
return cGRI_30_Kinetics;
|
||||
}
|
||||
virtual int type() const {
|
||||
|
||||
@@ -133,8 +133,9 @@ public:
|
||||
//! Identifies the subclass of the Kinetics manager type.
|
||||
/*!
|
||||
* These are listed in mix_defs.h.
|
||||
* @deprecated use type() instead
|
||||
*/
|
||||
virtual int ID() const {
|
||||
DEPRECATED(virtual int ID() const) {
|
||||
return cGasKinetics;
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,8 @@ public:
|
||||
virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const;
|
||||
|
||||
//! Return the ID of the kinetics object
|
||||
virtual int ID() const;
|
||||
//! @deprecated use type() instead
|
||||
DEPRECATED(virtual int ID() const);
|
||||
|
||||
//! Retunr the type of the kinetics object
|
||||
virtual int type() const;
|
||||
|
||||
@@ -197,8 +197,9 @@ public:
|
||||
//! Identifies the subclass of the Kinetics manager type.
|
||||
/*!
|
||||
* These are listed in mix_defs.h.
|
||||
* @deprecated use type() instead
|
||||
*/
|
||||
virtual int ID() const;
|
||||
DEPRECATED(virtual int ID() const);
|
||||
|
||||
//! Identifies the kinetics manager type.
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user