Arbiter
Dependency manager library that supports decentralization
|
A dependency resolver which contains context about how to evaluate the dependency graph. More...
Public Member Functions | |
ArbiterResolver (ArbiterResolverBehaviors behaviors, ArbiterDependencyList dependencyList, std::shared_ptr< const void > context) | |
ArbiterResolver (const ArbiterResolver &)=delete | |
std::vector< ArbiterSelectedVersion > | availableVersionsSatisfying (const ArbiterProjectIdentifier &project, const ArbiterRequirement &requirement) noexcept(false) |
Computes a list of available versions for the specified project which satisfy the given requirement. More... | |
std::unique_ptr< Arbiter::Base > | clone () const override |
std::ostream & | describe (std::ostream &os) const override |
ArbiterSelectedVersionList | fetchAvailableVersions (const ArbiterProjectIdentifier &project) noexcept(false) |
Fetches the list of available versions for the given project. More... | |
ArbiterDependencyList | fetchDependencies (const ArbiterProjectIdentifier &project, const ArbiterSelectedVersion &version) noexcept(false) |
Fetches the list of dependencies for the given project and version. More... | |
Arbiter::Optional< ArbiterSelectedVersion > | fetchSelectedVersionForMetadata (const Arbiter::SharedUserValue< ArbiterSelectedVersion > &metadata) |
Fetches a selected version for the given metadata string. More... | |
bool | operator!= (const Base &other) const |
ArbiterResolver & | operator= (const ArbiterResolver &)=delete |
bool | operator== (const Arbiter::Base &other) const override |
ArbiterResolvedDependencyGraph | resolve () noexcept(false) |
Attempts to resolve all dependencies. More... | |
Public Attributes | |
std::shared_ptr< const void > | _context |
A dependency resolver which contains context about how to evaluate the dependency graph.
Definition at line 18 of file Resolver.h.
ArbiterResolver::ArbiterResolver | ( | ArbiterResolverBehaviors | behaviors, |
ArbiterDependencyList | dependencyList, | ||
std::shared_ptr< const void > | context | ||
) |
Definition at line 23 of file Resolver.h.
|
delete |
|
noexcept |
Computes a list of available versions for the specified project which satisfy the given requirement.
|
overridevirtual |
Implements Arbiter::Base.
|
overridevirtual |
Implements Arbiter::Base.
|
noexcept |
Fetches the list of available versions for the given project.
Returns the version list or throws an exception.
|
noexcept |
Fetches the list of dependencies for the given project and version.
Returns the dependency list or throws an exception.
Arbiter::Optional<ArbiterSelectedVersion> ArbiterResolver::fetchSelectedVersionForMetadata | ( | const Arbiter::SharedUserValue< ArbiterSelectedVersion > & | metadata | ) |
Fetches a selected version for the given metadata string.
Returns the selected version if found, or else None.
|
inherited |
|
delete |
|
overridevirtual |
Implements Arbiter::Base.
|
noexcept |
Attempts to resolve all dependencies.
std::shared_ptr<const void> ArbiterResolver::_context |
Definition at line 21 of file Resolver.h.