tomlplusplus/include/toml++/toml_node_impl.h

56 lines
2.8 KiB
C++

#pragma once
#include "toml_node.h"
TOML_START
{
TOML_INLINE_FUNC_IMPL
node::node(node && other) noexcept
: source_{ std::move(other.source_) }
{
other.source_.begin = {};
other.source_.end = {};
}
TOML_INLINE_FUNC_IMPL
node & node::operator= (node && rhs) noexcept
{
source_ = std::move(rhs.source_);
rhs.source_.begin = {};
rhs.source_.end = {};
return *this;
}
TOML_INLINE_FUNC_IMPL bool node::is_string() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_integer() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_floating_point() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_number() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_boolean() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_date() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_time() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_date_time() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL bool node::is_array_of_tables() const noexcept { return false; }
TOML_INLINE_FUNC_IMPL table* node::as_table() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL array* node::as_array() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<string>* node::as_string() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<int64_t>* node::as_integer() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<double>* node::as_floating_point() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<bool>* node::as_boolean() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<date>* node::as_date() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<time>* node::as_time() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL value<date_time>* node::as_date_time() noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const table* node::as_table() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const array* node::as_array() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<string>* node::as_string() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<int64_t>* node::as_integer() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<double>* node::as_floating_point() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<bool>* node::as_boolean() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<date>* node::as_date() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<time>* node::as_time() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const value<date_time>* node::as_date_time() const noexcept { return nullptr; }
TOML_INLINE_FUNC_IMPL const source_region& node::source() const noexcept { return source_; }
}
TOML_END