|
paludis
Version 1.4.0
|
#include <fake_repository.hh>
Inheritance diagram for paludis::FakeRepository:Public Member Functions | |
| virtual bool | some_ids_might_support_action (const SupportsActionTestBase &) const |
| virtual bool | some_ids_might_not_be_masked () const |
| virtual const bool | is_unimportant () const |
| virtual const std::shared_ptr < const Set< std::string > > | maybe_expand_licence_nonrecursively (const std::string &) const |
| virtual const std::shared_ptr < const MetadataValueKey < std::string > > | format_key () const |
| virtual const std::shared_ptr < const MetadataValueKey < FSPath > > | location_key () const |
| virtual const std::shared_ptr < const MetadataValueKey < FSPath > > | installed_root_key () const |
| virtual const std::shared_ptr < const MetadataCollectionKey < Map< std::string, std::string > > > | sync_host_key () const |
Public Member Functions inherited from paludis::FakeRepositoryBase | |
| ~FakeRepositoryBase () | |
| void | add_category (const CategoryNamePart &) |
| void | add_package (const QualifiedPackageName &) |
| std::shared_ptr< FakePackageID > | add_version (const QualifiedPackageName &, const VersionSpec &) |
| std::shared_ptr< FakePackageID > | add_version (const std::string &c, const std::string &p, const std::string &v) |
| virtual void | invalidate () |
| const Environment * | environment () const |
| virtual std::shared_ptr< const PackageIDSequence > | package_ids (const QualifiedPackageName &, const RepositoryContentMayExcludes &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual std::shared_ptr< const QualifiedPackageNameSet > | package_names (const CategoryNamePart &, const RepositoryContentMayExcludes &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual std::shared_ptr< const CategoryNamePartSet > | category_names (const RepositoryContentMayExcludes &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual bool | has_package_named (const QualifiedPackageName &, const RepositoryContentMayExcludes &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual bool | has_category_named (const CategoryNamePart &, const RepositoryContentMayExcludes &) const PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual bool | sync (const std::string &, const std::string &, const std::shared_ptr< OutputManager > &) const |
| virtual HookResult | perform_hook (const Hook &hook, const std::shared_ptr< OutputManager > &) |
| virtual void | populate_sets () const |
Public Member Functions inherited from paludis::Repository | |
| virtual | ~Repository () |
| Repository (const Repository &)=delete | |
| Repository & | operator= (const Repository &)=delete |
| const RepositoryName | name () const PALUDIS_ATTRIBUTE((nothrow)) PALUDIS_ATTRIBUTE((warn_unused_result)) |
| virtual std::shared_ptr< const CategoryNamePartSet > | unimportant_category_names (const RepositoryContentMayExcludes &repository_content_may_excludes) const |
| virtual std::shared_ptr< const CategoryNamePartSet > | category_names_containing_package (const PackageNamePart &p, const RepositoryContentMayExcludes &repository_content_may_excludes) const |
| virtual void | regenerate_cache () const |
| virtual void | purge_invalid_cache () const |
| virtual void | can_drop_in_memory_cache () const |
Basic operations | |
| FakeRepository (const FakeRepositoryParams &) | |
| ~FakeRepository () | |
Additional Inherited Members | |
Public Types inherited from paludis::MetadataKeyHolder | |
|
typedef WrappedForwardIterator < MetadataConstIteratorTag, const std::shared_ptr< const MetadataKey > > | MetadataConstIterator |
Public Attributes inherited from paludis::RepositoryCapabilities | |
|
NamedValue < n::destination_interface, RepositoryDestinationInterface * > | destination_interface |
|
NamedValue < n::environment_variable_interface, RepositoryEnvironmentVariableInterface * > | environment_variable_interface |
|
NamedValue < n::manifest_interface, RepositoryManifestInterface * > | manifest_interface |
Protected Member Functions inherited from paludis::FakeRepositoryBase | |
| FakeRepositoryBase (const Environment *const env, const RepositoryName &name, const RepositoryCapabilities &caps) | |
| virtual void | need_keys_added () const |
Fake repository for use in test cases.
| paludis::FakeRepository::FakeRepository | ( | const FakeRepositoryParams & | ) |
|
virtual |
The format_key, if non-zero, holds our repository's format. Repository implementations should not return zero here, but clients should still check.
Implements paludis::Repository.
|
virtual |
The installed_root_key, if non-zero, specifies that we contain installed packages at the specified root.
This key is currently used in various places to determine whether a repository is an 'installed' repository or not.
Implements paludis::Repository.
|
virtual |
Are we unimportant?
In disambiguation, anything gets preferred over packages from unimportant repositories.
Implements paludis::Repository.
|
virtual |
The location_key, if non-zero, holds the file or directory containing our repository's data, the format of which depends on the value of format_key.
Implements paludis::Repository.
|
virtual |
Possibly expand a licence.
May return a null pointer, if we don't define any licence groups, or if the thing being passed in doesn't look like a licence group.
This should not be recursive.
Callers should Environment::expand_licence, not this method.
Implements paludis::Repository.
|
virtual |
Might some of our IDs be not masked?
Used to optimise various Generator and Filter queries.
Implements paludis::Repository.
|
virtual |
Might some of our IDs support a particular action?
Used to optimise various Generator and Filter queries. If a repository doesn't support, say, InstallAction, a query can skip searching it entirely when looking for installable packages.
Implements paludis::Repository.
|
virtual |
The sync_host_key, if present, should have value containing the host against which a sync will be performed for each suffix.
This is used to avoid starting multiple parallel syncs against the same host.
Implements paludis::Repository.
1.8.3.1