Epetra Package Browser (Single Doxygen Collection) Development
Public Member Functions | Public Attributes
Epetra_CrsGraphData::EntriesInOneRow< int_type > Struct Template 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_type col_num)
 Add the given column number to this line.
void AddEntries (const int n_cols, const int_type *col_nums)
 Add many entries to one row.

Public Attributes

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

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 408 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 435 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines