Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Epetra_CrsGraphData::EntriesInOneRow< int_type > Struct Template Reference

Store some data for each row describing which entries of this row are nonzero. More...

Public Member Functions

void AddEntry (const int_type col_num)
 Add the given column number to this line. More...
 
void AddEntries (const int n_cols, const int_type *col_nums)
 Add many entries to one row. More...
 

Public Attributes

std::vector< int_type > entries_
 Storage for the column indices of this row. More...
 

Detailed Description

template<typename int_type>
struct Epetra_CrsGraphData::EntriesInOneRow< int_type >

Store some data for each row describing which entries of this row are nonzero.

Data is stored sorted in the entries std::vector which is kept sorted and without duplicates. The vector of indices per row is dynamically growing upon insertion.

Definition at line 117 of file Epetra_CrsGraphData.h.

Member Function Documentation

template<typename int_type >
template void Epetra_CrsGraphData::EntriesInOneRow< int_type >::AddEntry ( const int_type  col_num)

Add the given column number to this line.

Definition at line 409 of file Epetra_CrsGraphData.cpp.

template<typename int_type >
template void Epetra_CrsGraphData::EntriesInOneRow< int_type >::AddEntries ( const int  n_cols,
const int_type *  col_nums 
)

Add many entries to one row.

Definition at line 436 of file Epetra_CrsGraphData.cpp.

Member Data Documentation

template<typename int_type>
std::vector<int_type> Epetra_CrsGraphData::EntriesInOneRow< int_type >::entries_

Storage for the column indices of this row.

This array is always kept sorted.

Definition at line 125 of file Epetra_CrsGraphData.h.


The documentation for this struct was generated from the following files: