Interface for sorting dependent vectors of objects. More...
#include <DependencyResolverInterface.h>
Public Member Functions | |
DependencyResolverInterface () | |
Constructor. More... | |
virtual const std::set< std::string > & | getRequestedItems ()=0 |
Return a set containing the names of items requested by the object. More... | |
virtual const std::set< std::string > & | getSuppliedItems ()=0 |
Return a set containing the names of items owned by the object. More... | |
Static Public Member Functions | |
template<typename T > | |
static void | sort (typename std::vector< T > &vector) |
Given a vector, sort using the getRequested/SuppliedItems sets. More... | |
template<typename T > | |
static void | sortDFS (typename std::vector< T > &vector) |
Given a vector, sort using the depth-first search. More... | |
template<typename T , typename T2 > | |
static void | cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header) |
A helper method for cyclic errors. More... | |
Interface for sorting dependent vectors of objects.
Definition at line 25 of file DependencyResolverInterface.h.
|
inline |
|
static |
A helper method for cyclic errors.
Definition at line 119 of file DependencyResolverInterface.h.
|
pure virtual |
Return a set containing the names of items requested by the object.
Implemented in UserObject, MaterialBase, AuxKernelTempl< ComputeValueType >, AuxKernelTempl< RT >, AuxKernelTempl< RealVectorValue >, AuxKernelTempl< Real >, InitialConditionBase, Marker, ScalarInitialCondition, FVInitialConditionBase, and AuxScalarKernel.
|
pure virtual |
Return a set containing the names of items owned by the object.
Implemented in MaterialBase, UserObject, AuxKernelTempl< ComputeValueType >, AuxKernelTempl< RT >, AuxKernelTempl< RealVectorValue >, AuxKernelTempl< Real >, InitialConditionBase, Marker, ScalarInitialCondition, FVInitialConditionBase, and AuxScalarKernel.
|
static |
Given a vector, sort using the getRequested/SuppliedItems sets.
Definition at line 64 of file DependencyResolverInterface.h.
Referenced by TheWarehouse::prepare().
|
static |
Given a vector, sort using the depth-first search.
Class that represents the dependency as a graph
Definition at line 71 of file DependencyResolverInterface.h.
Referenced by sort().