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,37 +11,40 @@
#include <Nazara/Core/RefCounted.hpp>
#include <type_traits>
template<typename T>
class NzObjectRef
namespace Nz
{
static_assert(std::is_base_of<NzRefCounted, T>::value, "ObjectRef shall only be used with RefCounted-derived type");
template<typename T>
class ObjectRef
{
static_assert(std::is_base_of<RefCounted, T>::value, "ObjectRef shall only be used with RefCounted-derived type");
public:
NzObjectRef();
NzObjectRef(T* object);
NzObjectRef(const NzObjectRef& ref);
template<typename U> NzObjectRef(const NzObjectRef<U>& ref);
NzObjectRef(NzObjectRef&& ref) noexcept;
~NzObjectRef();
public:
ObjectRef();
ObjectRef(T* object);
ObjectRef(const ObjectRef& ref);
template<typename U> ObjectRef(const ObjectRef<U>& ref);
ObjectRef(ObjectRef&& ref) noexcept;
~ObjectRef();
T* Get() const;
bool IsValid() const;
T* Release();
bool Reset(T* object = nullptr);
NzObjectRef& Swap(NzObjectRef& ref);
T* Get() const;
bool IsValid() const;
T* Release();
bool Reset(T* object = nullptr);
ObjectRef& Swap(ObjectRef& ref);
operator bool() const;
operator T*() const;
T* operator->() const;
operator bool() const;
operator T*() const;
T* operator->() const;
NzObjectRef& operator=(T* object);
NzObjectRef& operator=(const NzObjectRef& ref);
template<typename U> NzObjectRef& operator=(const NzObjectRef<U>& ref);
NzObjectRef& operator=(NzObjectRef&& ref) noexcept;
ObjectRef& operator=(T* object);
ObjectRef& operator=(const ObjectRef& ref);
template<typename U> ObjectRef& operator=(const ObjectRef<U>& ref);
ObjectRef& operator=(ObjectRef&& ref) noexcept;
private:
T* m_object;
};
private:
T* m_object;
};
}
#include <Nazara/Core/ObjectRef.inl>