SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
#include <TaskProvider.h>
Public Member Functions | |
virtual | ~TaskProvider ()=default |
Destructor. More... | |
TaskProvider (std::shared_ptr< TaskFactoryRegistry > task_factory_registry) | |
template<class T > | |
std::shared_ptr< const T > | getTask (const PropertyId &property_id) const |
Template version of getTask() that includes casting the returned pointer to the appropriate type. More... | |
Protected Member Functions | |
virtual std::shared_ptr< const Task > | getTask (const PropertyId &property_id) const |
Requests a Task that will be used to compute the property corresponding to the property_id. More... | |
Private Attributes | |
std::shared_ptr< TaskFactoryRegistry > | m_task_factory_registry |
std::unordered_map< PropertyId, std::shared_ptr< Task > > | m_tasks |
Definition at line 42 of file TaskProvider.h.
|
virtualdefault |
Destructor.
|
inline |
Definition at line 49 of file TaskProvider.h.
|
inline |
Template version of getTask() that includes casting the returned pointer to the appropriate type.
Definition at line 54 of file TaskProvider.h.
|
protectedvirtual |
Requests a Task that will be used to compute the property corresponding to the property_id.
Definition at line 33 of file TaskProvider.cpp.
References SourceXtractor::PropertyId::getTypeId(), std::lock(), m_task_factory_registry, and m_tasks.
|
private |
Definition at line 62 of file TaskProvider.h.
Referenced by getTask().
|
private |
Definition at line 63 of file TaskProvider.h.
Referenced by getTask().