LinearAlgebraObject.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
LinearAlgebraObject
¶ Parent class(es)
This is a common base class for all DOLFIN linear algebra objects. In particular, it provides casting mechanisms between different types.
-
const T &
down_cast
() const¶ Cast object to its derived class, if possible (const version). An error is thrown if the cast is unsuccessful.
-
T &
down_cast
()¶ Cast object to its derived class, if possible (non-const version). An error is thrown if the cast is unsuccessful.
Cast shared pointer object to its derived class, if possible. Caller must check for success (returns null if cast fails).
-
const LinearAlgebraObject *
instance
() const¶ Return concrete instance / unwrap (const version)
-
LinearAlgebraObject *
instance
()¶ Return concrete instance / unwrap (non-const version)
Return concrete shared ptr instance / unwrap (const version)
Return concrete shared ptr instance / unwrap (non-const version)
-
MPI_Comm
mpi_comm
() const = 0¶ Return MPI communicator
-
Y &
as_type
(X &x)¶ Cast object to its derived class, if possible (non-const version). An error is thrown if the cast is unsuccessful.
Cast shared pointer object to its derived class, if possible. Caller must check for success (returns null if cast fails).
-
bool
has_type
(const X &x)¶ Check whether the object matches a specific type
-
const T &