9 #ifndef __NOMAD400_ATTRIBUTEFACTORY__
10 #define __NOMAD400_ATTRIBUTEFACTORY__
12 #include "../Param/TypeAttribute.hpp"
14 #include "../nomad_nsbegin.hpp"
20 template <
typename T,
typename ... ARGS> std::shared_ptr<Attribute>
Create(std::string Name, T initValue,
bool algoCompatibilityCheck,
bool restartAttribute,
bool uniqueEntry, ARGS && ... infoArgs )
22 return std::make_shared<TypeAttribute<T>>(Name, initValue, algoCompatibilityCheck,
23 restartAttribute, uniqueEntry, std::forward<ARGS>(infoArgs)...);
29 #include "../nomad_nsend.hpp"
30 #endif // __NOMAD400_ATTRIBUTEFACTORY__
std::shared_ptr< Attribute > Create(std::string Name, T initValue, bool algoCompatibilityCheck, bool restartAttribute, bool uniqueEntry, ARGS &&...infoArgs)