children_of
Join two listings on the id one of them carries.
Source and package
- Qualified name
-
libtmux::children _of - Namespace
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/relations.hpp
- template <typename Parent, typename Child> [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] auto children_of(const std::vector <Child>& rows, StringField <Child> foreignHandle _key , StringField <Parent> key);template <typename Parent, typename Child> auto children_of(const std::Handle vector <Child>&&, StringField <Child>, StringHandle Field <Parent>) = delete;Handle -
Description#
A relation predicate has to reach the related rows without running tmux, so the caller lists both kinds once and links them here. The result borrows the rows it was given, exactly as a filtered view does, so it must not outlive the listing it reads.
- Type parameters
- Parameters
-
-
rows(const std::vector <Child> &) # forchildren_of(rows, foreign_key, key) -
foreign_key(StringField <Child>) # forHandle children_of(rows, foreign_key, key) -
key(StringField <Parent>) # forHandle children_of(rows, foreign_key, key) -
const std::vector<Child> &&# forchildren_of(const std::vector<Child> &&, StringFieldHandle<Child>, StringFieldHandle<Parent>) -
StringFieldHandle<Child># forchildren_of(const std::vector<Child> &&, StringFieldHandle<Child>, StringFieldHandle<Parent>) -
StringFieldHandle<Parent># forchildren_of(const std::vector<Child> &&, StringFieldHandle<Child>, StringFieldHandle<Parent>)
-