Opm::SparseTable< T > Class Template Reference
Inheritance diagram for Opm::SparseTable< T >:
Detailed Descriptiontemplate<typename T> class Opm::SparseTable< T > A SparseTable stores a table with rows of varying size as efficiently as possible. It is supposed to behave similarly to a vector of vectors. Its behaviour is similar to compressed row sparse matrices. Member Typedef Documentation◆ mutable_row_type
template<typename T >
◆ row_type
template<typename T >
Defining the row type, returned by operator[]. Constructor & Destructor Documentation◆ SparseTable() [1/2]
template<typename T >
Default constructor. Yields an empty SparseTable. ◆ SparseTable() [2/2]
template<typename T >
template<typename DataIter , typename IntegerIter >
A constructor taking all the data for the table and row sizes.
Member Function Documentation◆ allocate()
template<typename T >
template<typename IntegerIter >
Request storage for table of given size.
◆ appendRow()
template<typename T >
template<typename DataIter >
Appends a row to the table. Referenced by Dune::cpgrid::Geometry< 3, cdim >::refineCellifiedPatch(). ◆ assign()
template<typename T >
template<typename DataIter , typename IntegerIter >
Sets the table to contain the given data, organized into rows as indicated by the given row sizes.
◆ begin()
template<typename T >
Iterator access. ◆ clear()
template<typename T >
Makes the table empty(). ◆ data()
template<typename T >
◆ dataSize()
template<typename T >
Returns the number of data elements. ◆ empty()
template<typename T >
True if the table contains no rows. ◆ end()
template<typename T >
References Opm::SparseTable< T >::size(). ◆ operator==()
template<typename T >
Equality. Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator==(). ◆ operator[]() [1/2]
template<typename T >
Returns a mutable row of the table. ◆ operator[]() [2/2]
template<typename T >
Returns a row of the table. References Opm::SparseTable< T >::size(). Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::row(). ◆ print()
template<typename T >
template<class charT , class traits >
References Opm::SparseTable< T >::size(). ◆ reserve()
template<typename T >
Allocate storage for table of expected size. ◆ rowSize()
template<typename T >
Returns the size of a table row. References Opm::SparseTable< T >::size(). Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::rowSize(). ◆ size()
template<typename T >
Returns the number of rows in the table. Referenced by Dune::cpgrid::OrientedEntityTable< 0, 1 >::allocate(), Opm::SparseTable< T >::end(), Opm::SparseTable< T >::operator[](), Opm::SparseTable< T >::print(), and Opm::SparseTable< T >::rowSize(). ◆ swap()
template<typename T >
Swap contents for other SparseTable<T> The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||