mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2026-03-22 12:55:37 +07:00
private info ctors
This commit is contained in:
@@ -26,10 +26,6 @@ namespace meta_hpp
|
||||
|
||||
class_info& operator=(class_info&&) = default;
|
||||
class_info& operator=(const class_info&) = default;
|
||||
|
||||
class_info(family_id fid, std::string id)
|
||||
: fid_(std::move(fid))
|
||||
, id_(std::move(id)) {}
|
||||
public:
|
||||
const family_id& fid() const noexcept {
|
||||
return fid_;
|
||||
@@ -119,6 +115,10 @@ namespace meta_hpp
|
||||
private:
|
||||
template < typename Class >
|
||||
friend class class_;
|
||||
|
||||
class_info(family_id fid, std::string id)
|
||||
: fid_{std::move(fid)}
|
||||
, id_{std::move(id)} {}
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
@@ -20,10 +20,6 @@ namespace meta_hpp
|
||||
|
||||
data_info& operator=(data_info&&) = default;
|
||||
data_info& operator=(const data_info&) = default;
|
||||
|
||||
data_info(std::string id, value value)
|
||||
: id_(std::move(id))
|
||||
, value_(std::move(value)) {}
|
||||
public:
|
||||
const std::string& id() const noexcept {
|
||||
return id_;
|
||||
@@ -50,6 +46,10 @@ namespace meta_hpp
|
||||
}
|
||||
private:
|
||||
friend class data_;
|
||||
|
||||
data_info(std::string id, value value)
|
||||
: id_{std::move(id)}
|
||||
, value_{std::move(value)} {}
|
||||
private:
|
||||
std::string id_;
|
||||
value value_;
|
||||
|
||||
@@ -67,10 +67,6 @@ namespace meta_hpp
|
||||
|
||||
field_info& operator=(field_info&&) = default;
|
||||
field_info& operator=(const field_info&) = default;
|
||||
|
||||
field_info(family_id fid, std::string id)
|
||||
: fid_(std::move(fid))
|
||||
, id_(std::move(id)) {}
|
||||
public:
|
||||
const family_id& fid() const noexcept {
|
||||
return fid_;
|
||||
@@ -108,6 +104,10 @@ namespace meta_hpp
|
||||
private:
|
||||
template < auto Field >
|
||||
friend class field_;
|
||||
|
||||
field_info(family_id fid, std::string id)
|
||||
: fid_{std::move(fid)}
|
||||
, id_{std::move(id)} {}
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
@@ -74,10 +74,6 @@ namespace meta_hpp
|
||||
|
||||
function_info& operator=(function_info&&) = default;
|
||||
function_info& operator=(const function_info&) = default;
|
||||
|
||||
function_info(family_id fid, std::string id)
|
||||
: fid_(std::move(fid))
|
||||
, id_(std::move(id)) {}
|
||||
public:
|
||||
const family_id& fid() const noexcept {
|
||||
return fid_;
|
||||
@@ -113,6 +109,10 @@ namespace meta_hpp
|
||||
private:
|
||||
template < auto Function >
|
||||
friend class function_;
|
||||
|
||||
function_info(family_id fid, std::string id)
|
||||
: fid_{std::move(fid)}
|
||||
, id_{std::move(id)} {}
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
@@ -131,10 +131,6 @@ namespace meta_hpp
|
||||
|
||||
method_info& operator=(method_info&&) = default;
|
||||
method_info& operator=(const method_info&) = default;
|
||||
|
||||
method_info(family_id fid, std::string id)
|
||||
: fid_(std::move(fid))
|
||||
, id_(std::move(id)) {}
|
||||
public:
|
||||
const family_id& fid() const noexcept {
|
||||
return fid_;
|
||||
@@ -175,6 +171,10 @@ namespace meta_hpp
|
||||
private:
|
||||
template < auto Method >
|
||||
friend class method_;
|
||||
|
||||
method_info(family_id fid, std::string id)
|
||||
: fid_{std::move(fid)}
|
||||
, id_{std::move(id)} {}
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
@@ -25,9 +25,6 @@ namespace meta_hpp
|
||||
|
||||
namespace_info& operator=(namespace_info&&) = default;
|
||||
namespace_info& operator=(const namespace_info&) = default;
|
||||
|
||||
namespace_info(std::string id)
|
||||
: id_(std::move(id)) {}
|
||||
public:
|
||||
const std::string& id() const noexcept {
|
||||
return id_;
|
||||
@@ -97,6 +94,9 @@ namespace meta_hpp
|
||||
}
|
||||
private:
|
||||
friend class namespace_;
|
||||
|
||||
namespace_info(std::string id)
|
||||
: id_{std::move(id)} {}
|
||||
private:
|
||||
std::string id_;
|
||||
std::map<std::string, class_info, std::less<>> classes_;
|
||||
|
||||
@@ -62,10 +62,6 @@ namespace meta_hpp
|
||||
|
||||
variable_info& operator=(variable_info&&) = default;
|
||||
variable_info& operator=(const variable_info&) = default;
|
||||
|
||||
variable_info(family_id fid, std::string id)
|
||||
: fid_(std::move(fid))
|
||||
, id_(std::move(id)) {}
|
||||
public:
|
||||
const family_id& fid() const noexcept {
|
||||
return fid_;
|
||||
@@ -103,6 +99,10 @@ namespace meta_hpp
|
||||
private:
|
||||
template < auto Variable >
|
||||
friend class variable_;
|
||||
|
||||
variable_info(family_id fid, std::string id)
|
||||
: fid_{std::move(fid)}
|
||||
, id_{std::move(id)} {}
|
||||
private:
|
||||
family_id fid_;
|
||||
std::string id_;
|
||||
|
||||
Reference in New Issue
Block a user