return all types by value in public api

This commit is contained in:
BlackMATov
2023-02-08 15:25:34 +07:00
parent 178a4486cf
commit 02a3438ec6
21 changed files with 70 additions and 70 deletions

View File

@@ -77,7 +77,7 @@ namespace meta_hpp::detail
return ref_type_;
}
[[nodiscard]] const any_type& get_raw_type() const noexcept {
[[nodiscard]] any_type get_raw_type() const noexcept {
return raw_type_;
}

View File

@@ -82,7 +82,7 @@ namespace meta_hpp::detail
return ref_type_;
}
[[nodiscard]] const any_type& get_raw_type() const noexcept {
[[nodiscard]] any_type get_raw_type() const noexcept {
return raw_type_;
}

View File

@@ -15,7 +15,7 @@ namespace meta_hpp
{
class argument_index final {
public:
[[nodiscard]] const any_type& get_type() const noexcept;
[[nodiscard]] any_type get_type() const noexcept;
[[nodiscard]] std::size_t get_position() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
@@ -32,7 +32,7 @@ namespace meta_hpp
class constructor_index final {
public:
[[nodiscard]] const constructor_type& get_type() const noexcept;
[[nodiscard]] constructor_type get_type() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
[[nodiscard]] std::strong_ordering operator<=>(const constructor_index&) const = default;
@@ -47,7 +47,7 @@ namespace meta_hpp
class destructor_index final {
public:
[[nodiscard]] const destructor_type& get_type() const noexcept;
[[nodiscard]] destructor_type get_type() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
[[nodiscard]] std::strong_ordering operator<=>(const destructor_index&) const = default;
@@ -62,7 +62,7 @@ namespace meta_hpp
class evalue_index final {
public:
[[nodiscard]] const enum_type& get_type() const noexcept;
[[nodiscard]] enum_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
@@ -79,7 +79,7 @@ namespace meta_hpp
class function_index final {
public:
[[nodiscard]] const function_type& get_type() const noexcept;
[[nodiscard]] function_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
@@ -96,7 +96,7 @@ namespace meta_hpp
class member_index final {
public:
[[nodiscard]] const member_type& get_type() const noexcept;
[[nodiscard]] member_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
@@ -113,10 +113,10 @@ namespace meta_hpp
class method_index final {
public:
[[nodiscard]] std::size_t get_hash() const noexcept;
[[nodiscard]] const method_type& get_type() const noexcept;
[[nodiscard]] method_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;
[[nodiscard]] std::strong_ordering operator<=>(const method_index&) const = default;
private:
@@ -145,7 +145,7 @@ namespace meta_hpp
class variable_index final {
public:
[[nodiscard]] const pointer_type& get_type() const noexcept;
[[nodiscard]] pointer_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] std::size_t get_hash() const noexcept;

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, position_{position} {}
inline const any_type& argument_index::get_type() const noexcept {
inline any_type argument_index::get_type() const noexcept {
return type_;
}

View File

@@ -16,7 +16,7 @@ namespace meta_hpp
inline constructor_index::constructor_index(constructor_type type)
: type_{type} {}
inline const constructor_type& constructor_index::get_type() const noexcept {
inline constructor_type constructor_index::get_type() const noexcept {
return type_;
}

View File

@@ -16,7 +16,7 @@ namespace meta_hpp
inline destructor_index::destructor_index(destructor_type type)
: type_{type} {}
inline const destructor_type& destructor_index::get_type() const noexcept {
inline destructor_type destructor_index::get_type() const noexcept {
return type_;
}

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, name_{std::move(name)} {}
inline const enum_type& evalue_index::get_type() const noexcept {
inline enum_type evalue_index::get_type() const noexcept {
return type_;
}

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, name_{std::move(name)} {}
inline const function_type& function_index::get_type() const noexcept {
inline function_type function_index::get_type() const noexcept {
return type_;
}

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, name_{std::move(name)} {}
inline const member_type& member_index::get_type() const noexcept {
inline member_type member_index::get_type() const noexcept {
return type_;
}

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, name_{std::move(name)} {}
inline const method_type& method_index::get_type() const noexcept {
inline method_type method_index::get_type() const noexcept {
return type_;
}

View File

@@ -17,7 +17,7 @@ namespace meta_hpp
: type_{type}
, name_{std::move(name)} {}
inline const pointer_type& variable_index::get_type() const noexcept {
inline pointer_type variable_index::get_type() const noexcept {
return type_;
}

View File

@@ -127,7 +127,7 @@ namespace meta_hpp
[[nodiscard]] const argument_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const any_type& get_type() const noexcept;
[[nodiscard]] any_type get_type() const noexcept;
[[nodiscard]] std::size_t get_position() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
@@ -151,7 +151,7 @@ namespace meta_hpp
[[nodiscard]] const constructor_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const constructor_type& get_type() const noexcept;
[[nodiscard]] constructor_type get_type() const noexcept;
template < typename... Args >
[[nodiscard]] uvalue create(Args&&... args) const;
@@ -187,7 +187,7 @@ namespace meta_hpp
[[nodiscard]] const destructor_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const destructor_type& get_type() const noexcept;
[[nodiscard]] destructor_type get_type() const noexcept;
template < typename Arg >
bool destroy(Arg&& arg) const;
@@ -213,7 +213,7 @@ namespace meta_hpp
[[nodiscard]] const evalue_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const enum_type& get_type() const noexcept;
[[nodiscard]] enum_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] const uvalue& get_value() const noexcept;
@@ -244,7 +244,7 @@ namespace meta_hpp
[[nodiscard]] const function_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const function_type& get_type() const noexcept;
[[nodiscard]] function_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
template < typename... Args >
@@ -281,7 +281,7 @@ namespace meta_hpp
[[nodiscard]] const member_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const member_type& get_type() const noexcept;
[[nodiscard]] member_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
template < typename Instance >
@@ -330,7 +330,7 @@ namespace meta_hpp
[[nodiscard]] const method_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const method_type& get_type() const noexcept;
[[nodiscard]] method_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
template < typename Instance, typename... Args >
@@ -403,7 +403,7 @@ namespace meta_hpp
[[nodiscard]] const variable_index& get_index() const noexcept;
[[nodiscard]] const metadata_map& get_metadata() const noexcept;
[[nodiscard]] const pointer_type& get_type() const noexcept;
[[nodiscard]] pointer_type get_type() const noexcept;
[[nodiscard]] const std::string& get_name() const noexcept;
[[nodiscard]] uvalue get() const;

View File

@@ -44,7 +44,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const any_type& argument::get_type() const noexcept {
inline any_type argument::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -171,7 +171,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const constructor_type& constructor::get_type() const noexcept {
inline constructor_type constructor::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -85,7 +85,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const destructor_type& destructor::get_type() const noexcept {
inline destructor_type destructor::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -47,7 +47,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const enum_type& evalue::get_type() const noexcept {
inline enum_type evalue::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -151,7 +151,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const function_type& function::get_type() const noexcept {
inline function_type function::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -180,7 +180,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const member_type& member::get_type() const noexcept {
inline member_type member::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -165,7 +165,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const method_type& method::get_type() const noexcept {
inline method_type method::get_type() const noexcept {
return state_->index.get_type();
}

View File

@@ -129,7 +129,7 @@ namespace meta_hpp
return state_->metadata;
}
inline const pointer_type& variable::get_type() const noexcept {
inline pointer_type variable::get_type() const noexcept {
return state_->index.get_type();
}