SourceXtractorPlusPlus  0.15
Please provide a description of the project.
JacobianTaskFactory.cpp
Go to the documentation of this file.
1 
17 /*
18  * JacobianTaskFactory.cpp
19  *
20  * Created on: Oct 08, 2018
21  * Author: Alejandro Alvarez Ayllon
22  */
23 
27 
28 namespace SourceXtractor {
29 
31  if (property_id.getTypeId() == typeid(JacobianGroup)) {
32  return std::make_shared<JacobianGroupTask>(property_id.getIndex());
33  }
34  else if (property_id.getTypeId() == typeid(JacobianSource)) {
35  return std::make_shared<JacobianSourceTask>(property_id.getIndex());
36  }
37  return nullptr;
38 }
39 
40 } // end SourceXtractor
Jacobian.h
std::shared_ptr
STL class.
SourceXtractor::JacobianTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition: JacobianTaskFactory.cpp:30
JacobianTaskFactory.h
SourceXtractor::JacobianGroup
Definition: Jacobian.h:56
SourceXtractor::PropertyId::getTypeId
std::type_index getTypeId() const
Definition: PropertyId.h:66
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::JacobianSource
Definition: Jacobian.h:51
SourceXtractor::PropertyId::getIndex
unsigned int getIndex() const
Definition: PropertyId.h:70
JacobianTask.h