|
47 | 47 | <span class="m-breadcrumb"><a href="namespacepsl.html">psl</a>::<wbr/></span><span class="m-breadcrumb"><a href="namespacepsl_1_1ecs.html">ecs</a>::<wbr/></span><span class="m-breadcrumb"><a href="namespacepsl_1_1ecs_1_1details.html">details</a>::<wbr/></span>dependency_pack <span class="m-thin">class</span> |
48 | 48 | </h1> |
49 | 49 | <p>describes a set of dependencies for a given system</p> |
| 50 | + |
| 51 | + <nav class="m-block m-default"> |
| 52 | + <h3>content</h3> |
| 53 | + <ul> |
| 54 | + <li><a href="#member-functions">member functions</a></li> |
| 55 | + </ul> |
| 56 | + </nav> |
50 | 57 | <p>systems can have various dependencies, for example a movement system could have dependencies on both a psl::ecs::components::transform component and a psl::ecs::components::renderable component. This dependency will output a set of <a href="structpsl_1_1ecs_1_1entity__t.html" class="m-doc">psl::<wbr />ecs::<wbr />entity_t</a>'s that have all required psl::ecs::components present. Certain systems could have sets of dependencies, for example the render system requires knowing about both all <code>psl::ecs::components::renderable</code> that have a <code>psl::ecs::components::transform</code>, but also needs to know all <code>psl::ecs::components::camera's</code>. So that system would require several <a href="classpsl_1_1ecs_1_1details_1_1dependency__pack.html" class="m-doc">dependency_<wbr />pack</a>'s.</p> |
| 58 | + <section id="member-functions"> |
| 59 | + <h2><a href="#member-functions">member-functions</a></h2> |
| 60 | + <dl class="m-doc"> |
| 61 | + <table style="width:100%"> |
| 62 | + <tr> |
| 63 | + |
| 64 | + <div class="m-entry-container hoverable" id="abee73dc3b3039447554d9f998afe829d"> |
| 65 | + <div class="m-entry-row flex" id="brief"> |
| 66 | + <button class="hiddenbutton" onclick="expandable_node(this.parentNode)"><i class="arrow right"></i></button> |
| 67 | + <div class="m-entry header"> |
| 68 | + <span class="m-doc-wrap-bumper">align_of_first_binding </div> |
| 69 | + <div class="m-entry">used in conjunction with size_per_element to determine the overall alignment of a packed array so we can safely allocate memory for it.</div> |
| 70 | + <div class="m-entry modifiers"><span><span class="m-label m-flat m-const"> const</span> <span class="m-label m-flat m-public">public</span> |
| 71 | + <span class="m-label m-flat m-noexcept">noexcept</span></span></div> |
| 72 | + </div> |
| 73 | + <div class="m-entry-row flex collapsed" id="expanded"> |
| 74 | + <div class="m-entry-row flex"> |
| 75 | + <button class="hiddenbutton" onclick="expandable_node(this.parentNode.parentNode)"><i class="arrow down"></i></button> |
| 76 | + <div class="m-entry header" style="width: auto;max-width: unset;">align_of_first_binding</div> |
| 77 | + <div class="m-entry modifiers"><span><span class="m-label m-flat m-const"> const</span> <span class="m-label m-flat m-public">public</span> |
| 78 | + <span class="m-label m-flat m-noexcept">noexcept</span></span></div> |
| 79 | + </div> |
| 80 | + <div class="m-entry-row"> |
| 81 | + </div> |
| 82 | + <div class="m-entry-row"> |
| 83 | + <div class="m-entry header" style="margin-left:1rem;width:6rem;color:#9b9b9b;">returns</div> |
| 84 | + <div class="m-entry">size_t</div> |
| 85 | + </div> |
| 86 | + <div class="m-entry-row"> |
| 87 | + <div class="m-entry header" style="margin-left:1rem;width:6rem;color:#9b9b9b;">description</div> |
| 88 | + <div class="m-entry">used in conjunction with size_per_element to determine the overall alignment of a packed array so we can safely allocate memory for it.</div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + </tr> |
| 93 | + </table> |
| 94 | + </dl> |
| 95 | + </section> |
51 | 96 | </div> |
52 | 97 | </div> |
53 | 98 | </div> |
|
0 commit comments