aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/accounts_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 08:54:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 08:54:11 +0100
commitdd959fd53fbc5c863ec5e9f3571e3af9ff0d8b1a (patch)
treeba2da539f103634b8ddb52a477bbace3b4a52c57 /paludis/repositories/accounts/accounts_repository.cc
parent4209b95ecc83365718b3dd5556a6866a662e95c5 (diff)
downloadpaludis-dd959fd53fbc5c863ec5e9f3571e3af9ff0d8b1a.tar.gz
paludis-dd959fd53fbc5c863ec5e9f3571e3af9ff0d8b1a.tar.xz
PrivateImplementationPattern -> Pimp, Implementation -> Imp
Diffstat (limited to 'paludis/repositories/accounts/accounts_repository.cc')
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index 2335a9853..a0367bb43 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -22,7 +22,7 @@
#include <paludis/repositories/accounts/accounts_repository_store.hh>
#include <paludis/repositories/accounts/dummy_accounts_handler.hh>
#include <paludis/repositories/accounts/passwd_accounts_handler.hh>
-#include <paludis/util/private_implementation_pattern-impl.hh>
+#include <paludis/util/pimp-impl.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/util/set.hh>
#include <paludis/util/active_object_ptr.hh>
@@ -72,7 +72,7 @@ namespace
namespace paludis
{
template <>
- struct Implementation<AccountsRepository>
+ struct Imp<AccountsRepository>
{
const std::shared_ptr<const AccountsRepositoryParams> params_if_not_installed;
const std::shared_ptr<const InstalledAccountsRepositoryParams> params_if_installed;
@@ -84,7 +84,7 @@ namespace paludis
const ActiveObjectPtr<DeferredConstructionPtr<std::shared_ptr<AccountsRepositoryStore> > > store;
- Implementation(AccountsRepository * const repo, const AccountsRepositoryParams & p) :
+ Imp(AccountsRepository * const repo, const AccountsRepositoryParams & p) :
params_if_not_installed(new AccountsRepositoryParams(p)),
format_key(new LiteralMetadataValueKey<std::string> ("format", "format", mkt_significant, "accounts")),
store(DeferredConstructionPtr<std::shared_ptr<AccountsRepositoryStore> > (
@@ -92,7 +92,7 @@ namespace paludis
{
}
- Implementation(AccountsRepository * const repo, const InstalledAccountsRepositoryParams & p) :
+ Imp(AccountsRepository * const repo, const InstalledAccountsRepositoryParams & p) :
params_if_installed(new InstalledAccountsRepositoryParams(p)),
handler_if_installed(make_handler(p.handler())),
format_key(new LiteralMetadataValueKey<std::string> ("format", "format", mkt_significant, "installed-accounts")),
@@ -106,7 +106,7 @@ namespace paludis
}
AccountsRepository::AccountsRepository(const AccountsRepositoryParams & p) :
- PrivateImplementationPattern<AccountsRepository>(this, p),
+ Pimp<AccountsRepository>(this, p),
Repository(
p.environment(),
p.name(),
@@ -118,13 +118,13 @@ AccountsRepository::AccountsRepository(const AccountsRepositoryParams & p) :
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- _imp(PrivateImplementationPattern<AccountsRepository>::_imp)
+ _imp(Pimp<AccountsRepository>::_imp)
{
_add_metadata_keys();
}
AccountsRepository::AccountsRepository(const InstalledAccountsRepositoryParams & p) :
- PrivateImplementationPattern<AccountsRepository>(this, p),
+ Pimp<AccountsRepository>(this, p),
Repository(
p.environment(),
p.name(),
@@ -136,7 +136,7 @@ AccountsRepository::AccountsRepository(const InstalledAccountsRepositoryParams &
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- _imp(PrivateImplementationPattern<AccountsRepository>::_imp)
+ _imp(Pimp<AccountsRepository>::_imp)
{
_add_metadata_keys();
}
@@ -275,9 +275,9 @@ void
AccountsRepository::invalidate()
{
if (_imp->params_if_not_installed)
- _imp.reset(new Implementation<AccountsRepository>(this, *_imp->params_if_not_installed));
+ _imp.reset(new Imp<AccountsRepository>(this, *_imp->params_if_not_installed));
else
- _imp.reset(new Implementation<AccountsRepository>(this, *_imp->params_if_installed));
+ _imp.reset(new Imp<AccountsRepository>(this, *_imp->params_if_installed));
_add_metadata_keys();
}
@@ -458,5 +458,5 @@ AccountsRepository::accept_keywords_key() const
return make_null_shared_ptr();
}
-template class PrivateImplementationPattern<AccountsRepository>;
+template class Pimp<AccountsRepository>;