aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choices_key.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-25 08:24:02 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-25 09:02:24 +0100
commit7547462975c726ad00c1e9006b0574c30967e01d (patch)
tree41658391325e47df6cd45a54d289f9d270084fdf /paludis/repositories/e/e_choices_key.hh
parent89128c990d4dd0e1625dc07123811e67486b43b1 (diff)
downloadpaludis-7547462975c726ad00c1e9006b0574c30967e01d.tar.gz
paludis-7547462975c726ad00c1e9006b0574c30967e01d.tar.xz
Allow choice descriptions to be loaded later
Diffstat (limited to 'paludis/repositories/e/e_choices_key.hh')
-rw-r--r--paludis/repositories/e/e_choices_key.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_choices_key.hh b/paludis/repositories/e/e_choices_key.hh
index 795e15268..2daf04789 100644
--- a/paludis/repositories/e/e_choices_key.hh
+++ b/paludis/repositories/e/e_choices_key.hh
@@ -24,6 +24,7 @@
#include <paludis/choice-fwd.hh>
#include <paludis/repositories/e/e_choice_value.hh>
#include <paludis/util/map-fwd.hh>
+#include <functional>
namespace paludis
{
@@ -39,8 +40,8 @@ namespace paludis
private:
Pimp<EChoicesKey> _imp;
- void populate_iuse() const;
- void populate_myoptions() const;
+ void populate_iuse(const std::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > &) const;
+ void populate_myoptions(const std::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > &) const;
public:
EChoicesKey(
@@ -50,7 +51,7 @@ namespace paludis
const std::string &,
const MetadataKeyType,
const std::shared_ptr<const ERepository> & maybe_profile,
- const std::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > & maybe_descriptions);
+ const std::function<std::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > ()> & maybe_descriptions_fn);
~EChoicesKey();