21 #ifndef MYGSL_FUNCTOR_FACTORY_H 22 #define MYGSL_FUNCTOR_FACTORY_H 29 #include <boost/scoped_ptr.hpp> 68 const std::string & functor_id_);
72 const std::string & functor_id_,
77 const std::string & functor_id_,
82 virtual void tree_dump(std::ostream & out_ = std::clog,
83 const std::string & title_ =
"",
84 const std::string & indent_ =
"",
85 bool inherit_ =
false)
const;
102 boost::scoped_ptr<i_unary_function::factory_register_type> _factory_register_;
108 #endif // MYGSL_FUNCTOR_FACTORY_H
functor_factory()
Default constructor.
construct_flags
construct flags
Definition: functor_factory.h:42
Activate verbosity of the embedded factory.
Definition: functor_factory.h:45
Do not preload factories from system register.
Definition: functor_factory.h:44
virtual void _at_unlock()
Factory of functors.
Definition: functor_factory.h:36
void unlock()
Unlock the factory.
virtual ~functor_factory()
Destructor.
void _basic_construct(uint32_t flags_)
No flags.
Definition: functor_factory.h:43
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
bool is_locked() const
Check lock flag.
void create(unary_function_handle_type &handle_, const std::string &functor_id_)
Create a functor without initialization.
std::map< std::string, unary_function_handle_type > unary_function_dict_type
Alias for dictionary of handles to unary function objects.
Definition: unary_function_utils.h:30
void lock()
Lock the factory.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart dump.
i_unary_function * _allocate(const std::string &functor_id_)