aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_id.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-11 20:58:16 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-11 20:58:16 +0000
commit42688dafeb432ecf7698fb38afb86bbd8b6fb5a8 (patch)
tree87836a2d787471a9fb0dbbff989e975ff68d7614 /paludis/package_id.cc
parent638098e0808eaf31a35f0ee8834ba5b528a68b48 (diff)
downloadpaludis-42688dafeb432ecf7698fb38afb86bbd8b6fb5a8.tar.gz
paludis-42688dafeb432ecf7698fb38afb86bbd8b6fb5a8.tar.xz
Use actions rather than repo methods
Diffstat (limited to 'paludis/package_id.cc')
-rw-r--r--paludis/package_id.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/paludis/package_id.cc b/paludis/package_id.cc
index 259907916..37ba5141b 100644
--- a/paludis/package_id.cc
+++ b/paludis/package_id.cc
@@ -64,7 +64,7 @@ PackageID::~PackageID()
}
void
-PackageID::add_key(const tr1::shared_ptr<const MetadataKey> & k) const
+PackageID::add_metadata_key(const tr1::shared_ptr<const MetadataKey> & k) const
{
using namespace tr1::placeholders;
if (_imp->keys.end() != std::find_if(_imp->keys.begin(), _imp->keys.end(),
@@ -74,27 +74,27 @@ PackageID::add_key(const tr1::shared_ptr<const MetadataKey> & k) const
_imp->keys.push_back(k);
}
-PackageID::Iterator
-PackageID::begin() const
+PackageID::MetadataIterator
+PackageID::begin_metadata() const
{
need_keys_added();
- return Iterator(indirect_iterator(_imp->keys.begin()));
+ return MetadataIterator(indirect_iterator(_imp->keys.begin()));
}
-PackageID::Iterator
-PackageID::end() const
+PackageID::MetadataIterator
+PackageID::end_metadata() const
{
need_keys_added();
- return Iterator(indirect_iterator(_imp->keys.end()));
+ return MetadataIterator(indirect_iterator(_imp->keys.end()));
}
-PackageID::Iterator
-PackageID::find(const std::string & s) const
+PackageID::MetadataIterator
+PackageID::find_metadata(const std::string & s) const
{
using namespace tr1::placeholders;
need_keys_added();
- return std::find_if(begin(), end(),
+ return std::find_if(begin_metadata(), end_metadata(),
tr1::bind(std::equal_to<std::string>(), s, tr1::bind(tr1::mem_fn(&MetadataKey::raw_name), _1)));
}