Go to the documentation of this file.
53 template<
class T, label w
idth>
56 template<
class T, label w
idth>
62 template<
class T, label w
idth>
73 template<
class T, label w
idth>
149 friend Ostream& operator<< <T, width>
void clear()
Clear the graph.
void setRow(const label rowI, const FixedList< T, width > &l)
Set row with the list.
void operator=(const FRWGraph< T, width > &)
Assignment operator.
label size() const
Returns the number of rows.
void setSize(const label)
Reset the number of rows.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool contains(const label rowI, const T &e) const
check if the element is in the given row (takes linear time)
const double e
Elementary charge.
label nRows_
number of rows
label containsAtPosition(const label rowI, const T &e) const
const T & operator()(const label i, const label j) const
get and set operators
LongList< T > data_
list containing the data
A 1D vector of objects of type <T> with a fixed size <Size>.
label sizeOfRow(const label rowI) const
Returns the size of a given row (obsolete)
void checkIndex(const label i, const label j) const
check index
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
FRWGraph()
Construct null.
void appendFixedList(const FixedList< T, width > &l)
Append a row at the end of the graph.