mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-15 11:52:08 +07:00
dummy info and registry files
This commit is contained in:
11
headers/meta.hpp/meta_all.hpp
Normal file
11
headers/meta.hpp/meta_all.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "meta_fwd.hpp"
|
||||
#include "meta_infos.hpp"
|
||||
#include "meta_registry.hpp"
|
||||
54
headers/meta.hpp/meta_fwd.hpp
Normal file
54
headers/meta.hpp/meta_fwd.hpp
Normal file
@@ -0,0 +1,54 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <any>
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <stdexcept>
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class class_info;
|
||||
class ctor_info;
|
||||
class data_info;
|
||||
class enum_info;
|
||||
class evalue_info;
|
||||
class function_info;
|
||||
class member_info;
|
||||
class method_info;
|
||||
class namespace_info;
|
||||
}
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Class > class class_;
|
||||
template < typename... Args > class ctor_;
|
||||
class data_;
|
||||
template < typename Enum > class enum_;
|
||||
template < typename Enum > class evalue_;
|
||||
template < typename Function > class function_;
|
||||
template < typename Member > class member_;
|
||||
template < typename Method > class method_;
|
||||
class namespace_;
|
||||
}
|
||||
19
headers/meta.hpp/meta_infos.hpp
Normal file
19
headers/meta.hpp/meta_infos.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "meta_fwd.hpp"
|
||||
|
||||
#include "meta_infos/class_info.hpp"
|
||||
#include "meta_infos/ctor_info.hpp"
|
||||
#include "meta_infos/data_info.hpp"
|
||||
#include "meta_infos/enum_info.hpp"
|
||||
#include "meta_infos/evalue_info.hpp"
|
||||
#include "meta_infos/function_info.hpp"
|
||||
#include "meta_infos/member_info.hpp"
|
||||
#include "meta_infos/method_info.hpp"
|
||||
#include "meta_infos/namespace_info.hpp"
|
||||
13
headers/meta.hpp/meta_infos/class_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/class_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class class_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/ctor_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/ctor_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class ctor_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/data_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/data_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class data_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/enum_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/enum_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class enum_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/evalue_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/evalue_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class evalue_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/function_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/function_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class function_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/member_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/member_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class member_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/method_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/method_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class method_info final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_infos/namespace_info.hpp
Normal file
13
headers/meta.hpp/meta_infos/namespace_info.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class namespace_info final {
|
||||
};
|
||||
}
|
||||
37
headers/meta.hpp/meta_registry.hpp
Normal file
37
headers/meta.hpp/meta_registry.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "meta_fwd.hpp"
|
||||
#include "meta_infos.hpp"
|
||||
|
||||
#include "meta_registry/class_.hpp"
|
||||
#include "meta_registry/ctor_.hpp"
|
||||
#include "meta_registry/data_.hpp"
|
||||
#include "meta_registry/enum_.hpp"
|
||||
#include "meta_registry/evalue_.hpp"
|
||||
#include "meta_registry/function_.hpp"
|
||||
#include "meta_registry/member_.hpp"
|
||||
#include "meta_registry/method_.hpp"
|
||||
#include "meta_registry/namespace_.hpp"
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class registry final {
|
||||
public:
|
||||
registry() = default;
|
||||
|
||||
class_info get_class_by_name(std::string_view name) const noexcept;
|
||||
data_info get_data_by_name(std::string_view name) const noexcept;
|
||||
enum_info get_enum_by_name(std::string_view name) const noexcept;
|
||||
evalue_info get_evalue_by_name(std::string_view name) const noexcept;
|
||||
function_info get_function_by_name(std::string_view name) const noexcept;
|
||||
member_info get_member_by_name(std::string_view name) const noexcept;
|
||||
method_info get_method_by_name(std::string_view name) const noexcept;
|
||||
namespace_info get_namespace_by_name(std::string_view name) const noexcept;
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/class_.hpp
Normal file
14
headers/meta.hpp/meta_registry/class_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Class >
|
||||
class class_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/ctor_.hpp
Normal file
14
headers/meta.hpp/meta_registry/ctor_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename... Args >
|
||||
class ctor_ final {
|
||||
};
|
||||
}
|
||||
@@ -5,3 +5,9 @@
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class data_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/enum_.hpp
Normal file
14
headers/meta.hpp/meta_registry/enum_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Enum >
|
||||
class enum_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/evalue_.hpp
Normal file
14
headers/meta.hpp/meta_registry/evalue_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Enum >
|
||||
class evalue_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/function_.hpp
Normal file
14
headers/meta.hpp/meta_registry/function_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Function >
|
||||
class function_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/member_.hpp
Normal file
14
headers/meta.hpp/meta_registry/member_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Member >
|
||||
class member_ final {
|
||||
};
|
||||
}
|
||||
14
headers/meta.hpp/meta_registry/method_.hpp
Normal file
14
headers/meta.hpp/meta_registry/method_.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
template < typename Method >
|
||||
class method_ final {
|
||||
};
|
||||
}
|
||||
13
headers/meta.hpp/meta_registry/namespace_.hpp
Normal file
13
headers/meta.hpp/meta_registry/namespace_.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "https://github.com/blackmatov/meta.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2021, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
class namespace_ final {
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user