| 650 | } |
| 651 | |
| 652 | bool SolutionArray::hasComponent(const string& name) const |
| 653 | { |
| 654 | if (m_extra->count(name)) { |
| 655 | // auxiliary data |
| 656 | return true; |
| 657 | } |
| 658 | if (m_sol->thermo()->speciesIndex(name) != npos) { |
| 659 | // species |
| 660 | return true; |
| 661 | } |
| 662 | if (name == "X" || name == "Y") { |
| 663 | // reserved names |
| 664 | return false; |
| 665 | } |
| 666 | // native state |
| 667 | return (m_sol->thermo()->nativeState().count(name)); |
| 668 | } |
| 669 | |
| 670 | AnyValue SolutionArray::getComponent(const string& name) const |
| 671 | { |
no test coverage detected