diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-05 21:40:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-05 21:40:44 -0300 |
| commit | 5174fc25698cff33b03b5746bf1742e417988f7d (patch) | |
| tree | 232a3acdd9b458de481dbd5cbde889505168c8e8 /include/Types.h | |
| parent | 85ed897de3676af866cc619dc700025820c02201 (diff) | |
| download | RNT-5174fc25698cff33b03b5746bf1742e417988f7d.tar.gz RNT-5174fc25698cff33b03b5746bf1742e417988f7d.zip | |
Project C interface, reroute FOL plan enums & format
Diffstat (limited to 'include/Types.h')
| -rw-r--r-- | include/Types.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/include/Types.h b/include/Types.h index edf4297..6956e09 100644 --- a/include/Types.h +++ b/include/Types.h @@ -118,8 +118,7 @@ enum AUTH_METHOD { PLAIN_TEXT }; -namespace nt -{ +namespace nt { /** @brief A single named value in a tuple, produced by the cursor layer. */ struct Attribute { std::string name; @@ -133,9 +132,9 @@ namespace nt * one attribute at a time. Returns nullptr when all attributes are exhausted. */ class Tuple { - public: - explicit Tuple(std::vector<Attribute> attributes) - : attributes_(std::move(attributes)) {} + public: + explicit Tuple(std::vector<Attribute> attributes) : attributes_(std::move(attributes)) { + } /** @brief Returns the next attribute, or nullptr when exhausted. */ const Attribute* Next() { @@ -144,13 +143,17 @@ namespace nt return nullptr; } - void Reset() { position_ = 0; } + void Reset() { + position_ = 0; + } /** @brief Direct read-only access to all attributes without affecting position. */ - const std::vector<Attribute>& attrs() const { return attributes_; } + const std::vector<Attribute>& attrs() const { + return attributes_; + } - private: + private: std::vector<Attribute> attributes_; size_t position_ = 0; }; -} +} // namespace nt |
