libpqxx
The C++ client library for PostgreSQL
row_ref-row.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_ROW_REF_ROW_HXX
2 #define PQXX_INTERNAL_GATES_ROW_REF_ROW_HXX
3 
5 
6 namespace pqxx::internal::gate
7 {
8 class PQXX_PRIVATE row_ref_row final : callgate<row_ref>
9 {
10  friend class pqxx::row;
11 
12  explicit constexpr row_ref_row(reference x) noexcept : super(x) {}
13 
14  template<typename Tuple, std::size_t... indexes>
15  void
16  extract_fields(Tuple &t, std::index_sequence<indexes...> seq, ctx c) const
17  {
18  return home().extract_fields<Tuple, indexes...>(t, seq, c);
19  }
20 };
21 } // namespace pqxx::internal::gate
22 #endif
Base class for call gates.
Definition: callgate.hxx:55
Definition: row_ref-row.hxx:9
Lightweight reference to one row in a result.
Definition: row.hxx:57
Reference to one row in a result.
Definition: row.hxx:415
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
conversion_context const & ctx
Convenience alias: const reference to a pqxx::conversion_context.
Definition: strconv.hxx:201