Struct Variable¶
Defined in File Variable.hpp
Inheritance Relationships¶
Base Type¶
public rdf4cpp::Node(Struct Node)
Struct Documentation¶
-
struct Variable : public rdf4cpp::Node¶
Public Functions
-
Variable() noexcept¶
-
explicit Variable(storage::identifier::NodeBackendHandle handle) noexcept¶
-
explicit Variable(std::string_view name, bool anonymous = false, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
Variable to_node_storage(storage::DynNodeStoragePtr node_storage) const¶
-
Variable try_get_in_node_storage(storage::DynNodeStoragePtr node_storage) const noexcept¶
-
bool is_anonymous() const¶
-
FetchOrSerializeResult fetch_or_serialize_name(std::string_view &out, writer::BufWriterParts writer) const noexcept¶
-
bool serialize(writer::BufWriterParts writer) const noexcept¶
See Node::serialize
-
explicit operator std::string() const¶
-
bool is_blank_node() const = delete¶
-
bool is_literal() const = delete¶
-
bool is_variable() const = delete¶
-
bool is_iri() const = delete¶
Public Static Functions
-
static Variable make_named(std::string_view name, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
static Variable make_anonymous(std::string_view name, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
static Variable make_unchecked(std::string_view name, bool anonymous = false, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
static Variable find_named(std::string_view name, storage::DynNodeStoragePtr node_storage = storage::default_node_storage) noexcept¶
searches for a named Variable in the specified node storage and returns it. returns a null Variable, if not found.
- Parameters:
name –
node_storage –
- Returns:
-
static Variable find_anonymous(std::string_view name, storage::DynNodeStoragePtr node_storage = storage::default_node_storage) noexcept¶
searches for an anonymous Variable in the specified node storage and returns it. returns a null Variable, if not found.
- Parameters:
name –
node_storage –
- Returns:
-
Variable() noexcept¶