aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 10:02:41 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 10:02:41 +0000
commit2f7bde898437a912f36b42b94124d95ca03ee407 (patch)
treeb16ee2168c662d15c85ff02f2acbc85f8905efbe /paludis/repositories
parent95086f46d8f5b76f5ea14511e5bede3c27d57b3e (diff)
downloadpaludis-2f7bde898437a912f36b42b94124d95ca03ee407.tar.gz
paludis-2f7bde898437a912f36b42b94124d95ca03ee407.tar.xz
MetadataSetKey -> MetadataCollectionKey. Fixes: ticket:437
Diffstat (limited to 'paludis/repositories')
-rw-r--r--paludis/repositories/cran/cran_package_id.cc10
-rw-r--r--paludis/repositories/cran/cran_package_id.hh6
-rw-r--r--paludis/repositories/cran/keys.cc2
-rw-r--r--paludis/repositories/cran/keys.hh2
-rw-r--r--paludis/repositories/e/e_key.cc8
-rw-r--r--paludis/repositories/e/e_key.hh8
-rw-r--r--paludis/repositories/e/e_repository.cc4
-rw-r--r--paludis/repositories/e/ebuild_id.cc10
-rw-r--r--paludis/repositories/e/ebuild_id.hh8
-rw-r--r--paludis/repositories/e/qa/spec_keys.cc12
-rw-r--r--paludis/repositories/e/vdb_id.cc20
-rw-r--r--paludis/repositories/e/vdb_id.hh10
-rw-r--r--paludis/repositories/fake/fake_package_id.cc30
-rw-r--r--paludis/repositories/fake/fake_package_id.hh22
-rw-r--r--paludis/repositories/gems/gem_specification.cc12
-rw-r--r--paludis/repositories/gems/gem_specification.hh6
-rw-r--r--paludis/repositories/unpackaged/installed_id.cc12
-rw-r--r--paludis/repositories/unpackaged/installed_id.hh6
-rw-r--r--paludis/repositories/unpackaged/unpackaged_id.cc12
-rw-r--r--paludis/repositories/unpackaged/unpackaged_id.hh6
-rw-r--r--paludis/repositories/virtuals/package_id.cc12
-rw-r--r--paludis/repositories/virtuals/package_id.hh6
22 files changed, 112 insertions, 112 deletions
diff --git a/paludis/repositories/cran/cran_package_id.cc b/paludis/repositories/cran/cran_package_id.cc
index b6fe77fa8..6443a4cca 100644
--- a/paludis/repositories/cran/cran_package_id.cc
+++ b/paludis/repositories/cran/cran_package_id.cc
@@ -319,16 +319,16 @@ CRANPackageID::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
CRANPackageID::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
CRANPackageID::iuse_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >();
}
const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >
@@ -510,7 +510,7 @@ CRANPackageID::perform_action(Action & a) const
throw UnsupportedActionError(*this, a);
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
CRANPackageID::contains_key() const
{
return _imp->contains_key;
diff --git a/paludis/repositories/cran/cran_package_id.hh b/paludis/repositories/cran/cran_package_id.hh
index 3738f728a..422cc55aa 100644
--- a/paludis/repositories/cran/cran_package_id.hh
+++ b/paludis/repositories/cran/cran_package_id.hh
@@ -58,8 +58,8 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -73,7 +73,7 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
diff --git a/paludis/repositories/cran/keys.cc b/paludis/repositories/cran/keys.cc
index b5c5f2863..e49fadd56 100644
--- a/paludis/repositories/cran/keys.cc
+++ b/paludis/repositories/cran/keys.cc
@@ -61,7 +61,7 @@ SimpleURIKey::pretty_print_flat(const SimpleURISpecTree::ItemFormatter & f) cons
PackageIDSequenceKey::PackageIDSequenceKey(const Environment * const e,
const std::string & r, const std::string & h, const MetadataKeyType t) :
- MetadataSetKey<PackageIDSequence>(r, h, t),
+ MetadataCollectionKey<PackageIDSequence>(r, h, t),
_env(e),
_v(new PackageIDSequence)
{
diff --git a/paludis/repositories/cran/keys.hh b/paludis/repositories/cran/keys.hh
index 2dbda3ab3..bc23d14cb 100644
--- a/paludis/repositories/cran/keys.hh
+++ b/paludis/repositories/cran/keys.hh
@@ -51,7 +51,7 @@ namespace paludis
};
class PackageIDSequenceKey :
- public MetadataSetKey<PackageIDSequence>
+ public MetadataCollectionKey<PackageIDSequence>
{
private:
const Environment * const _env;
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index 9d1a72ef2..3c86dccc3 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -532,7 +532,7 @@ EIUseKey::EIUseKey(
const Environment * const e,
const tr1::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- MetadataSetKey<IUseFlagSet>(r, h, t),
+ MetadataCollectionKey<IUseFlagSet>(r, h, t),
PrivateImplementationPattern<EIUseKey>(new Implementation<EIUseKey>(id, e, v)),
_imp(PrivateImplementationPattern<EIUseKey>::_imp)
{
@@ -761,7 +761,7 @@ namespace paludis
EKeywordsKey::EKeywordsKey(const Environment * const e, const tr1::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- MetadataSetKey<KeywordNameSet>(r, h, t),
+ MetadataCollectionKey<KeywordNameSet>(r, h, t),
PrivateImplementationPattern<EKeywordsKey>(new Implementation<EKeywordsKey>(id, e, v)),
_imp(PrivateImplementationPattern<EKeywordsKey>::_imp)
{
@@ -834,7 +834,7 @@ namespace paludis
EUseKey::EUseKey(const Environment * const e, const tr1::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- MetadataSetKey<UseFlagNameSet>(r, h, t),
+ MetadataCollectionKey<UseFlagNameSet>(r, h, t),
PrivateImplementationPattern<EUseKey>(new Implementation<EUseKey>(id, e, v)),
_imp(PrivateImplementationPattern<EUseKey>::_imp)
{
@@ -906,7 +906,7 @@ namespace paludis
EInheritedKey::EInheritedKey(const tr1::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- MetadataSetKey<Set<std::string> >(r, h, t),
+ MetadataCollectionKey<Set<std::string> >(r, h, t),
PrivateImplementationPattern<EInheritedKey>(new Implementation<EInheritedKey>(id, v)),
_imp(PrivateImplementationPattern<EInheritedKey>::_imp)
{
diff --git a/paludis/repositories/e/e_key.hh b/paludis/repositories/e/e_key.hh
index 05c774ad9..b6af486d0 100644
--- a/paludis/repositories/e/e_key.hh
+++ b/paludis/repositories/e/e_key.hh
@@ -191,7 +191,7 @@ namespace paludis
};
class EIUseKey :
- public MetadataSetKey<IUseFlagSet>,
+ public MetadataCollectionKey<IUseFlagSet>,
private PrivateImplementationPattern<EIUseKey>
{
private:
@@ -219,7 +219,7 @@ namespace paludis
};
class EKeywordsKey :
- public MetadataSetKey<KeywordNameSet>,
+ public MetadataCollectionKey<KeywordNameSet>,
private PrivateImplementationPattern<EKeywordsKey>
{
private:
@@ -240,7 +240,7 @@ namespace paludis
};
class EUseKey :
- public MetadataSetKey<UseFlagNameSet>,
+ public MetadataCollectionKey<UseFlagNameSet>,
private PrivateImplementationPattern<EUseKey>
{
private:
@@ -261,7 +261,7 @@ namespace paludis
};
class EInheritedKey :
- public MetadataSetKey<Set<std::string> >,
+ public MetadataCollectionKey<Set<std::string> >,
private PrivateImplementationPattern<EInheritedKey>
{
private:
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 90e3611af..b220f5406 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -235,14 +235,14 @@ namespace paludis
tr1::shared_ptr<const MetadataStringKey> format_key;
tr1::shared_ptr<const MetadataStringKey> layout_key;
tr1::shared_ptr<const MetadataFSEntryKey> location_key;
- tr1::shared_ptr<const MetadataSetKey<FSEntrySequence> > profiles_key;
+ tr1::shared_ptr<const MetadataCollectionKey<FSEntrySequence> > profiles_key;
tr1::shared_ptr<const MetadataFSEntryKey> cache_key;
tr1::shared_ptr<const MetadataFSEntryKey> write_cache_key;
tr1::shared_ptr<const MetadataStringKey> append_repository_name_to_write_cache_key;
tr1::shared_ptr<const MetadataStringKey> ignore_deprecated_profiles;
tr1::shared_ptr<const MetadataFSEntryKey> names_cache_key;
tr1::shared_ptr<const MetadataFSEntryKey> distdir_key;
- tr1::shared_ptr<const MetadataSetKey<FSEntrySequence> > eclassdirs_key;
+ tr1::shared_ptr<const MetadataCollectionKey<FSEntrySequence> > eclassdirs_key;
tr1::shared_ptr<const MetadataFSEntryKey> securitydir_key;
tr1::shared_ptr<const MetadataFSEntryKey> setsdir_key;
tr1::shared_ptr<const MetadataFSEntryKey> newsdir_key;
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 94737aa4c..eb7297742 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -469,14 +469,14 @@ EbuildID::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
EbuildID::keywords_key() const
{
need_keys_added();
return _imp->keywords;
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
EbuildID::iuse_key() const
{
need_keys_added();
@@ -582,7 +582,7 @@ EbuildID::binary_origin_key() const
return tr1::shared_ptr<const MetadataStringKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<Set<std::string> > >
+const tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > >
EbuildID::inherited_key() const
{
return _imp->inherited;
@@ -861,10 +861,10 @@ EbuildID::perform_action(Action & a) const
a.accept(b);
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
EbuildID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/e/ebuild_id.hh b/paludis/repositories/e/ebuild_id.hh
index 29dc6ca7c..980b25b2a 100644
--- a/paludis/repositories/e/ebuild_id.hh
+++ b/paludis/repositories/e/ebuild_id.hh
@@ -64,8 +64,8 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -79,11 +79,11 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
- const tr1::shared_ptr<const MetadataSetKey<Set<std::string> > > inherited_key() const;
+ const tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > > inherited_key() const;
const tr1::shared_ptr<const MetadataSpecTreeKey<LicenseSpecTree> > license_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<RestrictSpecTree> > restrict_key() const;
diff --git a/paludis/repositories/e/qa/spec_keys.cc b/paludis/repositories/e/qa/spec_keys.cc
index c83914322..970b3f780 100644
--- a/paludis/repositories/e/qa/spec_keys.cc
+++ b/paludis/repositories/e/qa/spec_keys.cc
@@ -282,27 +282,27 @@ namespace
{
}
- void visit(const MetadataSetKey<IUseFlagSet> &)
+ void visit(const MetadataCollectionKey<IUseFlagSet> &)
{
}
- void visit(const MetadataSetKey<KeywordNameSet> &)
+ void visit(const MetadataCollectionKey<KeywordNameSet> &)
{
}
- void visit(const MetadataSetKey<Set<std::string> > &)
+ void visit(const MetadataCollectionKey<Set<std::string> > &)
{
}
- void visit(const MetadataSetKey<FSEntrySequence> &)
+ void visit(const MetadataCollectionKey<FSEntrySequence> &)
{
}
- void visit(const MetadataSetKey<UseFlagNameSet> &)
+ void visit(const MetadataCollectionKey<UseFlagNameSet> &)
{
}
- void visit(const MetadataSetKey<PackageIDSequence> &)
+ void visit(const MetadataCollectionKey<PackageIDSequence> &)
{
}
diff --git a/paludis/repositories/e/vdb_id.cc b/paludis/repositories/e/vdb_id.cc
index 24e86d423..b7bc794f0 100644
--- a/paludis/repositories/e/vdb_id.cc
+++ b/paludis/repositories/e/vdb_id.cc
@@ -74,9 +74,9 @@ namespace paludis
tr1::shared_ptr<const EAPI> eapi;
tr1::shared_ptr<const MetadataFSEntryKey> fs_location;
- tr1::shared_ptr<const MetadataSetKey<UseFlagNameSet> > use;
- tr1::shared_ptr<const MetadataSetKey<Set<std::string> > > inherited;
- tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse;
+ tr1::shared_ptr<const MetadataCollectionKey<UseFlagNameSet> > use;
+ tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > > inherited;
+ tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse;
tr1::shared_ptr<const MetadataSpecTreeKey<LicenseSpecTree> > license;
tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide;
tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies;
@@ -442,27 +442,27 @@ VDBID::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
VDBID::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<UseFlagNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<UseFlagNameSet> >
VDBID::use_key() const
{
need_keys_added();
return _imp->use;
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
VDBID::iuse_key() const
{
need_keys_added();
return _imp->iuse;
}
-const tr1::shared_ptr<const MetadataSetKey<Set<std::string> > >
+const tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > >
VDBID::inherited_key() const
{
need_keys_added();
@@ -707,10 +707,10 @@ VDBID::perform_action(Action & a) const
a.accept(b);
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
VDBID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/e/vdb_id.hh b/paludis/repositories/e/vdb_id.hh
index c61a5e3f8..621ffe54f 100644
--- a/paludis/repositories/e/vdb_id.hh
+++ b/paludis/repositories/e/vdb_id.hh
@@ -59,8 +59,8 @@ namespace paludis
virtual const tr1::shared_ptr<const EAPI> eapi() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -75,12 +75,12 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
- const tr1::shared_ptr<const MetadataSetKey<UseFlagNameSet> > use_key() const;
- const tr1::shared_ptr<const MetadataSetKey<Set<std::string> > > inherited_key() const;
+ const tr1::shared_ptr<const MetadataCollectionKey<UseFlagNameSet> > use_key() const;
+ const tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > > inherited_key() const;
virtual bool supports_action(const SupportsActionTestBase &) const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual void perform_action(Action &) const;
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index ea502f178..48de5c5f9 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -48,7 +48,7 @@ namespace paludis
{
template <>
template <typename C_>
- struct Implementation<FakeMetadataSetKey<C_> >
+ struct Implementation<FakeMetadataCollectionKey<C_> >
{
tr1::shared_ptr<C_> collection;
const PackageID * const id;
@@ -63,23 +63,23 @@ namespace paludis
}
template <typename C_>
-FakeMetadataSetKey<C_>::FakeMetadataSetKey(
+FakeMetadataCollectionKey<C_>::FakeMetadataCollectionKey(
const std::string & r, const std::string & h, const MetadataKeyType t, const PackageID * const i,
const Environment * const e) :
- MetadataSetKey<C_>(r, h, t),
- PrivateImplementationPattern<FakeMetadataSetKey<C_> >(new Implementation<FakeMetadataSetKey<C_> >(i, e)),
- _imp(PrivateImplementationPattern<FakeMetadataSetKey<C_> >::_imp)
+ MetadataCollectionKey<C_>(r, h, t),
+ PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >(new Implementation<FakeMetadataCollectionKey<C_> >(i, e)),
+ _imp(PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >::_imp)
{
}
template <typename C_>
-FakeMetadataSetKey<C_>::~FakeMetadataSetKey()
+FakeMetadataCollectionKey<C_>::~FakeMetadataCollectionKey()
{
}
template <typename C_>
const tr1::shared_ptr<const C_>
-FakeMetadataSetKey<C_>::value() const
+FakeMetadataCollectionKey<C_>::value() const
{
return _imp->collection;
}
@@ -87,7 +87,7 @@ FakeMetadataSetKey<C_>::value() const
FakeMetadataKeywordSetKey::FakeMetadataKeywordSetKey(const std::string & r,
const std::string & h, const std::string & v, const MetadataKeyType t,
const PackageID * const i, const Environment * const e) :
- FakeMetadataSetKey<KeywordNameSet>(r, h, t, i, e)
+ FakeMetadataCollectionKey<KeywordNameSet>(r, h, t, i, e)
{
set_from_string(v);
}
@@ -102,7 +102,7 @@ FakeMetadataKeywordSetKey::set_from_string(const std::string & s)
FakeMetadataIUseSetKey::FakeMetadataIUseSetKey(const std::string & r,
const std::string & h, const std::string & v, const IUseFlagParseMode m, const MetadataKeyType t,
const PackageID * const i, const Environment * const e) :
- FakeMetadataSetKey<IUseFlagSet>(r, h, t, i, e)
+ FakeMetadataCollectionKey<IUseFlagSet>(r, h, t, i, e)
{
set_from_string(v, m);
}
@@ -421,13 +421,13 @@ FakePackageID::virtual_for_key() const
return _imp->virtual_for;
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
FakePackageID::keywords_key() const
{
return _imp->keywords;
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
FakePackageID::iuse_key() const
{
return _imp->iuse;
@@ -778,10 +778,10 @@ FakePackageID::breaks_portage() const
return (version().has_try_part() || version().has_scm_part());
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
FakePackageID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
@@ -905,6 +905,6 @@ template class FakeMetadataSpecTreeKey<RestrictSpecTree>;
template class FakeMetadataSpecTreeKey<FetchableURISpecTree>;
template class FakeMetadataSpecTreeKey<SimpleURISpecTree>;
-template class FakeMetadataSetKey<KeywordNameSet>;
-template class FakeMetadataSetKey<IUseFlagSet>;
+template class FakeMetadataCollectionKey<KeywordNameSet>;
+template class FakeMetadataCollectionKey<IUseFlagSet>;
diff --git a/paludis/repositories/fake/fake_package_id.hh b/paludis/repositories/fake/fake_package_id.hh
index 1c119d0f9..71a63d886 100644
--- a/paludis/repositories/fake/fake_package_id.hh
+++ b/paludis/repositories/fake/fake_package_id.hh
@@ -31,24 +31,24 @@ namespace paludis
class FakeRepositoryBase;
template <typename C_>
- class PALUDIS_VISIBLE FakeMetadataSetKey :
- public MetadataSetKey<C_>,
- private PrivateImplementationPattern<FakeMetadataSetKey<C_> >
+ class PALUDIS_VISIBLE FakeMetadataCollectionKey :
+ public MetadataCollectionKey<C_>,
+ private PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >
{
protected:
- typename PrivateImplementationPattern<FakeMetadataSetKey<C_> >::ImpPtr & _imp;
+ typename PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >::ImpPtr & _imp;
- FakeMetadataSetKey(const std::string &, const std::string &, const MetadataKeyType,
+ FakeMetadataCollectionKey(const std::string &, const std::string &, const MetadataKeyType,
const PackageID * const, const Environment * const);
public:
- ~FakeMetadataSetKey();
+ ~FakeMetadataCollectionKey();
virtual const tr1::shared_ptr<const C_> value() const PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE FakeMetadataKeywordSetKey :
- public FakeMetadataSetKey<KeywordNameSet>
+ public FakeMetadataCollectionKey<KeywordNameSet>
{
public:
FakeMetadataKeywordSetKey(const std::string &, const std::string &, const std::string &, const MetadataKeyType,
@@ -61,7 +61,7 @@ namespace paludis
};
class PALUDIS_VISIBLE FakeMetadataIUseSetKey :
- public FakeMetadataSetKey<IUseFlagSet>
+ public FakeMetadataCollectionKey<IUseFlagSet>
{
public:
FakeMetadataIUseSetKey(const std::string &, const std::string &, const std::string &, const IUseFlagParseMode,
@@ -172,8 +172,8 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -187,7 +187,7 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
diff --git a/paludis/repositories/gems/gem_specification.cc b/paludis/repositories/gems/gem_specification.cc
index 410062738..f58177de4 100644
--- a/paludis/repositories/gems/gem_specification.cc
+++ b/paludis/repositories/gems/gem_specification.cc
@@ -336,16 +336,16 @@ GemSpecification::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
GemSpecification::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
GemSpecification::iuse_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >();
}
const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >
@@ -432,10 +432,10 @@ GemSpecification::binary_origin_key() const
return tr1::shared_ptr<const MetadataStringKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
GemSpecification::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/gems/gem_specification.hh b/paludis/repositories/gems/gem_specification.hh
index a8015ddba..ceea6496b 100644
--- a/paludis/repositories/gems/gem_specification.hh
+++ b/paludis/repositories/gems/gem_specification.hh
@@ -91,8 +91,8 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -102,7 +102,7 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<SimpleURISpecTree> > homepage_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> short_description_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> long_description_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
diff --git a/paludis/repositories/unpackaged/installed_id.cc b/paludis/repositories/unpackaged/installed_id.cc
index 135a82494..5b13f353d 100644
--- a/paludis/repositories/unpackaged/installed_id.cc
+++ b/paludis/repositories/unpackaged/installed_id.cc
@@ -379,16 +379,16 @@ InstalledUnpackagedID::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
InstalledUnpackagedID::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
InstalledUnpackagedID::iuse_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >();
}
const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >
@@ -397,10 +397,10 @@ InstalledUnpackagedID::provide_key() const
return tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >();
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
InstalledUnpackagedID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/unpackaged/installed_id.hh b/paludis/repositories/unpackaged/installed_id.hh
index e9987dced..496bffca5 100644
--- a/paludis/repositories/unpackaged/installed_id.hh
+++ b/paludis/repositories/unpackaged/installed_id.hh
@@ -58,10 +58,10 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
diff --git a/paludis/repositories/unpackaged/unpackaged_id.cc b/paludis/repositories/unpackaged/unpackaged_id.cc
index 98924c75a..6db6f9feb 100644
--- a/paludis/repositories/unpackaged/unpackaged_id.cc
+++ b/paludis/repositories/unpackaged/unpackaged_id.cc
@@ -156,16 +156,16 @@ UnpackagedID::virtual_for_key() const
return tr1::shared_ptr<const MetadataPackageIDKey>();
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
UnpackagedID::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
UnpackagedID::iuse_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >();
}
const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >
@@ -174,10 +174,10 @@ UnpackagedID::provide_key() const
return tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >();
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
UnpackagedID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/unpackaged/unpackaged_id.hh b/paludis/repositories/unpackaged/unpackaged_id.hh
index 196bfb87e..2790dc94b 100644
--- a/paludis/repositories/unpackaged/unpackaged_id.hh
+++ b/paludis/repositories/unpackaged/unpackaged_id.hh
@@ -56,10 +56,10 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index 9e14535b1..52aae6730 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -232,16 +232,16 @@ VirtualsPackageID::virtual_for_key() const
return _imp->virtual_for;
}
-const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >
VirtualsPackageID::keywords_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> >();
}
-const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >
+const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >
VirtualsPackageID::iuse_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> >();
}
const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> >
@@ -480,10 +480,10 @@ VirtualsPackageID::breaks_portage() const
return (version().has_try_part() || version().has_scm_part());
}
-const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >
+const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >
VirtualsPackageID::contains_key() const
{
- return tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> >();
+ return tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> >();
}
const tr1::shared_ptr<const MetadataPackageIDKey>
diff --git a/paludis/repositories/virtuals/package_id.hh b/paludis/repositories/virtuals/package_id.hh
index f9bca5766..b60bfc0a2 100644
--- a/paludis/repositories/virtuals/package_id.hh
+++ b/paludis/repositories/virtuals/package_id.hh
@@ -79,8 +79,8 @@ namespace paludis
virtual const tr1::shared_ptr<const Repository> repository() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<IUseFlagSet> > iuse_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
@@ -94,7 +94,7 @@ namespace paludis
virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataSetKey<PackageIDSequence> > contains_key() const;
+ virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;