mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-13 03:08:49 +07:00
@@ -4176,8 +4176,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] function_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] std::size_t get_arity() const noexcept;
|
||||
[[nodiscard]] argument get_argument(std::size_t position) const noexcept;
|
||||
[[nodiscard]] const argument_list& get_arguments() const noexcept;
|
||||
@@ -4227,8 +4225,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] member_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
template < typename Instance >
|
||||
[[nodiscard]] uvalue get(Instance&& instance) const;
|
||||
|
||||
@@ -4279,8 +4275,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] method_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] std::size_t get_arity() const noexcept;
|
||||
[[nodiscard]] argument get_argument(std::size_t position) const noexcept;
|
||||
[[nodiscard]] const argument_list& get_arguments() const noexcept;
|
||||
@@ -4367,8 +4361,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] pointer_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] uvalue get() const;
|
||||
[[nodiscard]] uresult try_get() const;
|
||||
|
||||
@@ -7152,10 +7144,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& function::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline std::size_t function::get_arity() const noexcept {
|
||||
return state_->arguments.size();
|
||||
}
|
||||
@@ -7751,10 +7739,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& member::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
template < typename Instance >
|
||||
uvalue member::get(Instance&& instance) const {
|
||||
using namespace detail;
|
||||
@@ -8060,10 +8044,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& method::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline std::size_t method::get_arity() const noexcept {
|
||||
return state_->arguments.size();
|
||||
}
|
||||
@@ -9408,10 +9388,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& variable::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline uvalue variable::get() const {
|
||||
return state_->getter();
|
||||
}
|
||||
|
||||
@@ -64,11 +64,6 @@ TEST_CASE("meta/meta_states/function") {
|
||||
CHECK((iadd_f < ilength2_f || ilength2_f < iadd_f));
|
||||
}
|
||||
|
||||
SUBCASE("pointers") {
|
||||
CHECK(ivec2_type.get_function("iadd").get_pointer().as<decltype(&ivec2::iadd)>() == &ivec2::iadd);
|
||||
CHECK(ivec2_type.get_function("ilength2").get_pointer().as<decltype(&ivec2::ilength2)>() == &ivec2::ilength2);
|
||||
}
|
||||
|
||||
SUBCASE("iadd") {
|
||||
const meta::function func = ivec2_type.get_function("iadd");
|
||||
REQUIRE(func);
|
||||
|
||||
@@ -50,11 +50,6 @@ TEST_CASE("meta/meta_states/member") {
|
||||
CHECK((int_member_m < const_int_member_m || const_int_member_m < int_member_m));
|
||||
}
|
||||
|
||||
SUBCASE("pointers") {
|
||||
CHECK(clazz_1_type.get_member("int_member").get_pointer().as<decltype(&clazz_1::int_member)>() == &clazz_1::int_member);
|
||||
CHECK(clazz_1_type.get_member("const_int_member").get_pointer().as<decltype(&clazz_1::const_int_member)>() == &clazz_1::const_int_member);
|
||||
}
|
||||
|
||||
SUBCASE("int") {
|
||||
meta::member vm = clazz_1_type.get_member("int_member");
|
||||
REQUIRE(vm);
|
||||
|
||||
@@ -114,11 +114,6 @@ TEST_CASE("meta/meta_states/method") {
|
||||
CHECK((non_const_method_m < non_const_method_rref_m || non_const_method_rref_m < non_const_method_m));
|
||||
}
|
||||
|
||||
SUBCASE("pointers") {
|
||||
CHECK(ct.get_method("non_const_method").get_pointer().as<decltype(&clazz::non_const_method)>() == &clazz::non_const_method);
|
||||
CHECK(ct.get_method("const_method").get_pointer().as<decltype(&clazz::const_method)>() == &clazz::const_method);
|
||||
}
|
||||
|
||||
SUBCASE("non_const_method") {
|
||||
const meta::method mi = ct.get_method("non_const_method");
|
||||
REQUIRE(mi);
|
||||
|
||||
@@ -80,11 +80,6 @@ TEST_CASE("meta/meta_states/variable") {
|
||||
CHECK((int_variable_v < const_int_variable_v || const_int_variable_v < int_variable_v));
|
||||
}
|
||||
|
||||
SUBCASE("pointers") {
|
||||
CHECK(clazz_1_type.get_variable("int_variable").get_pointer().as<decltype(&clazz_1::int_variable)>() == &clazz_1::int_variable);
|
||||
CHECK(clazz_1_type.get_variable("const_int_variable").get_pointer().as<decltype(&clazz_1::const_int_variable)>() == &clazz_1::const_int_variable);
|
||||
}
|
||||
|
||||
SUBCASE("int") {
|
||||
meta::variable vm = clazz_1_type.get_variable("int_variable");
|
||||
REQUIRE(vm);
|
||||
|
||||
@@ -165,8 +165,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] function_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] std::size_t get_arity() const noexcept;
|
||||
[[nodiscard]] argument get_argument(std::size_t position) const noexcept;
|
||||
[[nodiscard]] const argument_list& get_arguments() const noexcept;
|
||||
@@ -216,8 +214,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] member_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
template < typename Instance >
|
||||
[[nodiscard]] uvalue get(Instance&& instance) const;
|
||||
|
||||
@@ -268,8 +264,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] method_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] std::size_t get_arity() const noexcept;
|
||||
[[nodiscard]] argument get_argument(std::size_t position) const noexcept;
|
||||
[[nodiscard]] const argument_list& get_arguments() const noexcept;
|
||||
@@ -356,8 +350,6 @@ namespace meta_hpp
|
||||
[[nodiscard]] pointer_type get_type() const noexcept;
|
||||
[[nodiscard]] const std::string& get_name() const noexcept;
|
||||
|
||||
[[nodiscard]] const uvalue& get_pointer() const noexcept;
|
||||
|
||||
[[nodiscard]] uvalue get() const;
|
||||
[[nodiscard]] uresult try_get() const;
|
||||
|
||||
|
||||
@@ -147,10 +147,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& function::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline std::size_t function::get_arity() const noexcept {
|
||||
return state_->arguments.size();
|
||||
}
|
||||
|
||||
@@ -224,10 +224,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& member::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
template < typename Instance >
|
||||
uvalue member::get(Instance&& instance) const {
|
||||
using namespace detail;
|
||||
|
||||
@@ -159,10 +159,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& method::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline std::size_t method::get_arity() const noexcept {
|
||||
return state_->arguments.size();
|
||||
}
|
||||
|
||||
@@ -144,10 +144,6 @@ namespace meta_hpp
|
||||
return state_->index.get_name();
|
||||
}
|
||||
|
||||
inline const uvalue& variable::get_pointer() const noexcept {
|
||||
return state_->pointer;
|
||||
}
|
||||
|
||||
inline uvalue variable::get() const {
|
||||
return state_->getter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user