Public Member Functions | |
graphRow (graphType &, const label) | |
Construct from graph and row number. More... | |
graphRow (const graphRow< graphType > &) | |
Copy contructor. More... | |
~graphRow () | |
label | size () const |
Returns the number of rows. More... | |
void | setSize (const label size) |
Reset the number of rows. More... | |
void | clear () |
Clear the graph. More... | |
void | append (const label) |
Append an element to the given row. More... | |
void | appendIfNotIn (const label) |
Append an element to the given row if it does not exist there. More... | |
bool | contains (const label e) const |
check if the element is in the given row (takes linear time) More... | |
label | containsAtPosition (const label e) const |
label | operator[] (const label) const |
set and get operators More... | |
label & | operator[] (const label) |
void | operator= (const graphRow< graphType > &) |
Assignment operator. More... | |
template<class listType > | |
void | operator= (const listType &) |
Private Member Functions | |
void | checkIndex (const label i) const |
check index More... | |
Private Attributes | |
graphType & | data_ |
reference to the graph More... | |
const label | rowI_ |
row number More... | |
Friends | |
Ostream & | operator (Ostream &, const graphRow< graphType > &) |
Definition at line 48 of file graphRow.H.
Construct from graph and row number.
Definition at line 47 of file graphRowI.H.
Copy contructor.
Definition at line 56 of file graphRowI.H.
|
inline |
Definition at line 66 of file graphRowI.H.
|
inlineprivate |
check index
Definition at line 30 of file graphRowI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
|
inline |
Returns the number of rows.
Definition at line 74 of file graphRowI.H.
|
inline |
Reset the number of rows.
Definition at line 80 of file graphRowI.H.
References s().
|
inline |
Clear the graph.
Definition at line 86 of file graphRowI.H.
|
inline |
Append an element to the given row.
Definition at line 92 of file graphRowI.H.
|
inline |
Append an element to the given row if it does not exist there.
Definition at line 98 of file graphRowI.H.
|
inline |
check if the element is in the given row (takes linear time)
Definition at line 104 of file graphRowI.H.
References Foam::e.
Referenced by voronoiMeshExtractor::createAddressing().
|
inline |
Definition at line 111 of file graphRowI.H.
References Foam::e.
|
inline |
set and get operators
Definition at line 121 of file graphRowI.H.
|
inline |
Definition at line 127 of file graphRowI.H.
Assignment operator.
Definition at line 134 of file graphRowI.H.
|
inline |
Definition at line 145 of file graphRowI.H.
|
private |
reference to the graph
Definition at line 61 of file graphRow.H.
|
private |
row number
Definition at line 64 of file graphRow.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.