Public Member Functions | |
subGraph (graphType &, const label, const label) | |
Construct from graph and start row and size. More... | |
subGraph (const subGraph< graphType > &) | |
Copy contructor. More... | |
~subGraph () | |
label | size () const |
Returns the number of rows. More... | |
label | sizeOfRow (const label rowI) const |
Returns the size of a given row. More... | |
void | append (const label rowI, const label) |
Append an element to the given row. More... | |
void | appendIfNotIn (const label rowI, const label) |
Append an element to the given row if it does not exist there. More... | |
bool | contains (const label rowI, const label e) const |
check if the element is in the given row (takes linear time) More... | |
label | containsAtPosition (const label rowI, const label e) const |
label | operator() (const label i, const label j) const |
set and get operators More... | |
label & | operator() (const label i, const label j) |
const graphRow< const graphType > | operator[] (const label) const |
graphRow< graphType > | operator[] (const label) |
Private Member Functions | |
void | checkIndex (const label i) const |
check index More... | |
Private Attributes | |
graphType & | data_ |
reference to the graph More... | |
const label | start_ |
starts at row More... | |
const label | size_ |
number of rows in the subGraph More... | |
Friends | |
Ostream & | operator (Ostream &, const subGraph< graphType > &) |
Definition at line 47 of file subGraph.H.
Construct from graph and start row and size.
Definition at line 48 of file subGraphI.H.
Copy contructor.
Definition at line 62 of file subGraphI.H.
|
inline |
Definition at line 73 of file subGraphI.H.
|
inlineprivate |
check index
Definition at line 30 of file subGraphI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
|
inline |
Returns the number of rows.
Definition at line 81 of file subGraphI.H.
|
inline |
Returns the size of a given row.
Definition at line 87 of file subGraphI.H.
Append an element to the given row.
Definition at line 93 of file subGraphI.H.
Append an element to the given row if it does not exist there.
Definition at line 100 of file subGraphI.H.
check if the element is in the given row (takes linear time)
Definition at line 110 of file subGraphI.H.
References Foam::e.
|
inline |
Definition at line 120 of file subGraphI.H.
References Foam::e.
|
inline |
set and get operators
Definition at line 132 of file subGraphI.H.
|
inline |
Definition at line 146 of file subGraphI.H.
|
inline |
Definition at line 158 of file subGraphI.H.
|
inline |
Definition at line 167 of file subGraphI.H.
|
private |
reference to the graph
Definition at line 60 of file subGraph.H.
|
private |
starts at row
Definition at line 63 of file subGraph.H.
|
private |
number of rows in the subGraph
Definition at line 66 of file subGraph.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.