Added copy constructor for TableIndex.

This commit is contained in:
Joakim Hove
2016-01-17 16:37:31 +01:00
parent f9d708157e
commit d59b34bcb5
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ namespace Opm {
}
TableIndex::TableIndex(const TableIndex& tableIndex)
: m_index1( tableIndex.m_index1 ),
m_weight1(tableIndex.m_weight1 )
{
}
size_t TableIndex::getIndex1( ) const {
return m_index1;
}

View File

@@ -36,6 +36,7 @@ namespace Opm {
class TableIndex {
public:
TableIndex( size_t index1 , double weight1);
TableIndex( const TableIndex& tableIndex);
size_t getIndex1( ) const;
size_t getIndex2( ) const;
double getWeight1( ) const;