7 #ifndef STEP_REGISTRY_HPP_ 8 #define STEP_REGISTRY_HPP_ 12 #include "boost/multi_index_container.hpp" 13 #include "boost/multi_index/ordered_index.hpp" 14 #include "boost/multi_index/member.hpp" 15 #include "boost/range.hpp" 21 namespace detail{
class Inserter; }
31 std::string
const& name,
32 std::string
const& category,
33 std::string
const& comment,
34 std::string
const& description
39 description_(description)
42 std::string
name_, category_, comment_, description_;
46 typedef boost::multi_index_container<
48 boost::multi_index::indexed_by<
49 boost::multi_index::ordered_unique<
50 boost::multi_index::member<Meta, std::string, &Meta::name_>
52 boost::multi_index::ordered_non_unique<
53 boost::multi_index::member<Meta, std::string, &Meta::category_>
67 typedef boost::iterator_range<const_iterator>
range;
69 const_iterator
begin()
const {
return mm_.begin();}
70 const_iterator
end()
const {
return mm_.end();}
79 boost::iterator_range<mmap_t::nth_index<1>::type::const_iterator>
81 mmap_t::nth_index<1>::type
const& ind = mm_.get<1>();
82 return ind.equal_range(cat);
mmap_t::const_iterator const_iterator
Definition: step_registry.hpp:65
boost::iterator_range< const_iterator > range
Definition: step_registry.hpp:67
mmap_t::const_iterator iterator
Definition: step_registry.hpp:66
boost::multi_index_container< Meta, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< Meta, std::string,&Meta::name_ > >, boost::multi_index::ordered_non_unique< boost::multi_index::member< Meta, std::string,&Meta::category_ > > > > mmap_t
Definition: step_registry.hpp:56
cats_t cats_
Definition: step_registry.hpp:87
const_iterator begin() const
Definition: step_registry.hpp:69
Definition: step_registry.cpp:26
mmap_t mm_
Definition: step_registry.hpp:86
cats_t const & categories() const
Definition: step_registry.hpp:77
detail::Vector_set< std::string > cats_t
Definition: step_registry.hpp:64
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
Definition: step_registry.hpp:25
boost::iterator_range< mmap_t::nth_index< 1 >::type::const_iterator > category(std::string const &cat) const
Definition: step_registry.hpp:80
Definition: step_registry.hpp:62
Definition: exception.hpp:23
const_iterator end() const
Definition: step_registry.hpp:70