Add method PerfData::empty()

This commit is contained in:
Joakim Hove 2021-08-19 10:33:55 +02:00
parent 579aba8d08
commit 8f9e7d8e96
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,10 @@ std::size_t PerfData::size() const {
return this->pressure.size();
}
bool PerfData::empty() const {
return this->pressure.empty();
}
bool PerfData::try_assign(const PerfData& other) {
if (this->size() != other.size())
return false;

View File

@ -34,6 +34,7 @@ private:
public:
PerfData(std::size_t num_perf, bool injector_, std::size_t num_phases);
std::size_t size() const;
bool empty() const;
bool try_assign(const PerfData& other);