dummy info and registry files

This commit is contained in:
BlackMATov
2021-08-02 21:19:52 +07:00
parent 77d018264a
commit 9ffdb59894
25 changed files with 384 additions and 1 deletions

View 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"

View 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_;
}

View 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"

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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;
};
}

View 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 {
};
}

View 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 {
};
}

View File

@@ -5,3 +5,9 @@
******************************************************************************/
#pragma once
namespace meta_hpp
{
class data_ final {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}

View 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 {
};
}