SimpleTable improvements:

- Added constructor without DeckItem
 - Added addRow( ) method
 - Added random access get( ) methd.
This commit is contained in:
Joakim Hove
2015-12-31 09:36:53 +01:00
parent 874a5320e7
commit a2b64a83eb
7 changed files with 153 additions and 1 deletions

View File

@@ -217,6 +217,14 @@ namespace Opm {
}
}
std::vector<double>::const_iterator TableColumn::begin() const {
return m_values.begin();
}
std::vector<double>::const_iterator TableColumn::end() const {
return m_values.end();
}
bool TableColumn::hasDefault( ) const {
if (m_defaultCount > 0)
@@ -303,6 +311,10 @@ namespace Opm {
}
std::vector<double> TableColumn::vectorCopy() const {
return std::vector<double>( begin() , end());
}
}