17 #ifndef __TESTS_MODULE_HPP__ 18 #define __TESTS_MODULE_HPP__ 64 template <
typename T, ModuleID N>
76 return mesos::modules::ModuleManager::create<T>(moduleName.
get());
87 return mesos::modules::ModuleManager::create<T>(
114 return static_cast<size_t>(moduleId);
120 #endif // __TESTS_MODULE_HPP__ static Try< T * > create(const Parameters ¶meters)
Definition: module.hpp:81
result_type operator()(const argument_type &moduleId) const
Definition: module.hpp:111
Definition: errorbase.hpp:36
Try< Nothing > initModules(const Option< Modules > &modules)
Definition: module.hpp:49
T & get()&
Definition: try.hpp:80
Definition: module.hpp:43
Definition: module.hpp:46
Definition: module.hpp:50
Definition: type_utils.hpp:619
Definition: module.hpp:42
size_t result_type
Definition: module.hpp:107
Definition: module.hpp:55
mesos::internal::tests::ModuleID argument_type
Definition: module.hpp:109
Definition: module.hpp:51
ModuleID
Definition: module.hpp:40
Definition: module.hpp:48
Definition: module.hpp:65
Definition: module.hpp:52
static Try< T * > create()
Definition: module.hpp:70
Definition: module.hpp:53
static Try error(const E &e)
Definition: try.hpp:43
Definition: attributes.hpp:24
bool isError() const
Definition: try.hpp:78
Try< std::string > getModuleName(ModuleID id)
Definition: module.hpp:47
Definition: module.hpp:44
Definition: module.hpp:54
static Try< T * > create(const logging::Flags &flags)
Definition: module.hpp:92
Definition: module.hpp:45