Go to the documentation of this file.
142 const label nColumnsInRow
149 const label nColumnsInRow,
179 const label newNumRows,
184 template<
class ListType>
196 template<
class ListType>
206 template<
class ListType>
207 inline void setRow(
const label rowI,
const ListType& l);
216 template<
class GraphType>
220 const GraphType& origGraph
223 template<
class GraphType>
278 #define forAllRow(graph, rowI, index) \
279 for(Foam::label index=0;index<(graph).sizeOfRow(rowI);++index)
void checkIndex(const label i, const label j) const
check index
void setRow(const label rowI, const ListType &l)
Set row with the list.
void mergeGraphs(const List< VRWGraph > &graphParts)
rowElement(const label i, const label j)
void appendIfNotIn(const label rowI, const label)
Append an element to the given row if it does not exist there.
bool contains(const label rowI, const label e) const
check if the element is in the given row (takes linear time)
label size_
number of elements in the row
void operator=(const VRWGraph &)
Assignment operator.
const typedef graphRow< const VRWGraph > constRow
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void optimizeMemoryUsage()
optimize memory usage
labelLongList data_
list containing data
friend Ostream & operator<<(Ostream &, const VRWGraph &)
label size() const
Returns the number of rows.
void setSize(const label)
Reset the number of rows.
void setSizeAndColumnWidth(const label newNumRows, const label rcWidth)
label sizeOfRow(const label rowI) const
Returns the number of elements in the given row.
const double e
Elementary charge.
LongList< rowElement > rows_
number of rows
This class is a modifier for VRWGraph which allows for multi-threaded execution of most time-consuimg...
constRow operator[](const label i) const
label containsAtPosition(const label rowI, const label e) const
VRWGraph()
Construct null.
void reverseAddressing(const label nRows, const GraphType &origGraph)
label operator()(const label i, const label j) const
get and set operators
void appendList(const ListType &l)
Append a list as a row at the end of the graph.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void clear()
Clear the graph.
void append(const label rowI, const label)
Append an element to the given row.
label start_
starting element of the row
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void setRowSize(const label rowI, const label newSize)
Reset the size of the given row.
void setSizeAndRowSize(const ListType &)
Set the number of rows and the size of each row.