110 lines
4.5 KiB
Groff
110 lines
4.5 KiB
Groff
|
|
.TH "serif::utils::dependencies::DependencyContext< ResourceTs >" 3 "Version v0.0.1a" "SERiF" \" -*- nroff -*-
|
||
|
|
.ad l
|
||
|
|
.nh
|
||
|
|
.SH NAME
|
||
|
|
serif::utils::dependencies::DependencyContext< ResourceTs >
|
||
|
|
.SH SYNOPSIS
|
||
|
|
.br
|
||
|
|
.PP
|
||
|
|
.PP
|
||
|
|
\fR#include <dependency_context\&.hpp>\fP
|
||
|
|
.SS "Public Types"
|
||
|
|
|
||
|
|
.in +1c
|
||
|
|
.ti -1c
|
||
|
|
.RI "using \fBResources\fP = \fBtypes::TypeList\fP<ResourceTs\&.\&.\&.>"
|
||
|
|
.br
|
||
|
|
.ti -1c
|
||
|
|
.RI "using \fBKeys\fP = \fBKeyList\fP<typename ResourceTs::Key\&.\&.\&.>"
|
||
|
|
.br
|
||
|
|
.ti -1c
|
||
|
|
.RI "using \fBBindings\fP = \fBdependencies::Bindings\fP<\fBBinding\fP<typename ResourceTs::Key, typename ResourceTs::Target>\&.\&.\&.>"
|
||
|
|
.br
|
||
|
|
.ti -1c
|
||
|
|
.RI "using \fBResourceBindings\fP = \fBdependencies::Bindings\fP<\fBBinding\fP<typename ResourceTs::Key, ResourceTs>\&.\&.\&.>"
|
||
|
|
.br
|
||
|
|
.in -1c
|
||
|
|
.SS "Public Member Functions"
|
||
|
|
|
||
|
|
.in +1c
|
||
|
|
.ti -1c
|
||
|
|
.RI "\fBexplicit\fP (sizeof\&.\&.\&.(ResourceTs) !=0) \fBDependencyContext\fP(ResourceTs\&.\&.\&. resources)"
|
||
|
|
.br
|
||
|
|
.RI "Each resource explicitly chooses owned or borrowed storage\&. "
|
||
|
|
.ti -1c
|
||
|
|
.RI "template<typename KeyT>
|
||
|
|
.br
|
||
|
|
requires BindingsWithBinding<\fBBindings\fP, KeyT>const auto & \fBget\fP () const"
|
||
|
|
.br
|
||
|
|
.RI "Retrieve a resource by role even when several roles have the same target type\&. "
|
||
|
|
.ti -1c
|
||
|
|
.RI "template<typename KeyT>
|
||
|
|
.br
|
||
|
|
requires BindingsWithBinding<\fBBindings\fP, KeyT>const auto & \fBresource\fP () const"
|
||
|
|
.br
|
||
|
|
.RI "Access the value together with the policy used to track it\&. "
|
||
|
|
.ti -1c
|
||
|
|
.RI "template<IsKeyList KeysT>
|
||
|
|
.br
|
||
|
|
requires SatisfiesKeyList<\fBBindings\fP, KeysT>auto \fBselect\fP (KeysT) const &"
|
||
|
|
.br
|
||
|
|
.RI "Select declared roles without copying their objects or tracking policies\&. "
|
||
|
|
.ti -1c
|
||
|
|
.RI "template<IsKeyList KeysT> auto \fBselect\fP (KeysT) const &&=delete"
|
||
|
|
.br
|
||
|
|
.RI "A view cannot safely borrow a temporary context\&. "
|
||
|
|
.in -1c
|
||
|
|
.SS "Private Attributes"
|
||
|
|
|
||
|
|
.in +1c
|
||
|
|
.ti -1c
|
||
|
|
.RI "std::tuple< ResourceTs\&.\&.\&. > \fBm_resources\fP"
|
||
|
|
.br
|
||
|
|
.in -1c
|
||
|
|
.SH "Member Typedef Documentation"
|
||
|
|
.PP
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> using \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::Bindings = \fBdependencies::Bindings\fP<\fBBinding\fP<typename ResourceTs::Key, typename ResourceTs::Target>\&.\&.\&.>"
|
||
|
|
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> using \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::Keys = \fBKeyList\fP<typename ResourceTs::Key\&.\&.\&.>"
|
||
|
|
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> using \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::ResourceBindings = \fBdependencies::Bindings\fP<\fBBinding\fP<typename ResourceTs::Key, ResourceTs>\&.\&.\&.>"
|
||
|
|
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> using \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::Resources = \fBtypes::TypeList\fP<ResourceTs\&.\&.\&.>"
|
||
|
|
|
||
|
|
.SH "Member Function Documentation"
|
||
|
|
.PP
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::explicit (sizeof\&.\&.\&.(ResourceTs) ! = \fR0\fP)\fR [inline]\fP"
|
||
|
|
|
||
|
|
.PP
|
||
|
|
Each resource explicitly chooses owned or borrowed storage\&.
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> template<typename KeyT>
|
||
|
|
.br
|
||
|
|
requires BindingsWithBinding<\fBBindings\fP, KeyT>const auto & \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::get () const\fR [inline]\fP, \fR [nodiscard]\fP"
|
||
|
|
|
||
|
|
.PP
|
||
|
|
Retrieve a resource by role even when several roles have the same target type\&.
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> template<typename KeyT>
|
||
|
|
.br
|
||
|
|
requires BindingsWithBinding<\fBBindings\fP, KeyT>const auto & \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::resource () const\fR [inline]\fP, \fR [nodiscard]\fP"
|
||
|
|
|
||
|
|
.PP
|
||
|
|
Access the value together with the policy used to track it\&.
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> template<IsKeyList KeysT>
|
||
|
|
.br
|
||
|
|
requires SatisfiesKeyList<\fBBindings\fP, KeysT>auto \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::select (KeysT ) const &\fR [inline]\fP, \fR [nodiscard]\fP"
|
||
|
|
|
||
|
|
.PP
|
||
|
|
Select declared roles without copying their objects or tracking policies\&.
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> template<IsKeyList KeysT> auto \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::select (KeysT ) const &&\fR [delete]\fP"
|
||
|
|
|
||
|
|
.PP
|
||
|
|
A view cannot safely borrow a temporary context\&.
|
||
|
|
.SH "Member Data Documentation"
|
||
|
|
.PP
|
||
|
|
.SS "template<IsResource\&.\&.\&. ResourceTs> std::tuple<ResourceTs\&.\&.\&.> \fBserif::utils::dependencies::DependencyContext\fP< ResourceTs >::m_resources\fR [private]\fP"
|
||
|
|
|
||
|
|
|
||
|
|
.SH "Author"
|
||
|
|
.PP
|
||
|
|
Generated automatically by Doxygen for SERiF from the source code\&.
|