Switch from Nz prefix to namespace Nz

What a huge commit


Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
Lynix
2015-09-25 19:20:05 +02:00
parent c214251ecf
commit df8da275c4
609 changed files with 68265 additions and 66534 deletions

View File

@@ -11,47 +11,50 @@
// Inspiré du code de la SFML par Laurent Gomila
struct NzFunctor
namespace Nz
{
virtual ~NzFunctor() {}
struct Functor
{
virtual ~Functor() {}
virtual void Run() = 0;
};
virtual void Run() = 0;
};
template<typename F>
struct NzFunctorWithoutArgs : NzFunctor
{
NzFunctorWithoutArgs(F func);
template<typename F>
struct FunctorWithoutArgs : Functor
{
FunctorWithoutArgs(F func);
void Run();
void Run();
private:
F m_func;
};
private:
F m_func;
};
template<typename F, typename... Args>
struct NzFunctorWithArgs : NzFunctor
{
NzFunctorWithArgs(F func, Args&&... args);
template<typename F, typename... Args>
struct FunctorWithArgs : Functor
{
FunctorWithArgs(F func, Args&&... args);
void Run();
void Run();
private:
F m_func;
std::tuple<Args...> m_args;
};
private:
F m_func;
std::tuple<Args...> m_args;
};
template<typename C>
struct NzMemberWithoutArgs : NzFunctor
{
NzMemberWithoutArgs(void (C::*func)(), C* object);
template<typename C>
struct MemberWithoutArgs : Functor
{
MemberWithoutArgs(void (C::*func)(), C* object);
void Run();
void Run();
private:
void (C::*m_func)();
C* m_object;
};
private:
void (C::*m_func)();
C* m_object;
};
}
#include <Nazara/Core/Functor.inl>