Epetra Package Browser (Single Doxygen Collection) Development
Public Member Functions | Public Attributes
Epetra_CrsGraphData::EntriesInOneRow Struct Reference

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

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

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 111 of file Epetra_CrsGraphData.h.


Member Function Documentation

void Epetra_CrsGraphData::EntriesInOneRow::AddEntry ( const int  col_num)

Add the given column number to this line.

Definition at line 337 of file Epetra_CrsGraphData.cpp.

void Epetra_CrsGraphData::EntriesInOneRow::AddEntries ( const int  n_cols,
const int *  col_nums 
)

Add many entries to one row.

Definition at line 363 of file Epetra_CrsGraphData.cpp.


Member Data Documentation

Storage for the column indices of this row.

This array is always kept sorted.

Definition at line 119 of file Epetra_CrsGraphData.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines