https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
EXTERN_C_END Namespace Reference

Functions

template<typename T >
void appendFVSetupObjects (TheWarehouse &warehouse, const std::string &system_name, const unsigned int system_number, const THREAD_ID tid, std::vector< SetupInterface * > &results)
 

Function Documentation

◆ appendFVSetupObjects()

template<typename T >
void EXTERN_C_END::appendFVSetupObjects ( TheWarehouse warehouse,
const std::string &  system_name,
const unsigned int  system_number,
const THREAD_ID  tid,
std::vector< SetupInterface * > &  results 
)

Definition at line 120 of file NonlinearSystemBase.C.

125{
126 static_assert(std::is_base_of_v<MooseObject, T>);
127 static_assert(std::is_base_of_v<SetupInterface, T>);
128
129 std::vector<T *> objects;
130 warehouse.query()
131 .template condition<AttribSystem>(system_name)
132 .template condition<AttribSysNum>(system_number)
133 .template condition<AttribThread>(tid)
134 .queryInto(objects);
135
136 for (auto * object : objects)
137 results.push_back(object);
138}
std::vector< T * > & queryInto(std::vector< T * > &results, Args &&... args)
queryInto executes the query and stores the results in the given vector.
Query query()
query creates and returns an initialized a query object for querying objects from the warehouse.

Referenced by appendFVSetupObjects().