Reorganise memory model to make it clear Memory.hpp should be referenced.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
#ifndef ARBUTILS_MEMORY_HPP
|
||||
#define ARBUTILS_MEMORY_HPP
|
||||
|
||||
#include "BorrowedPtr.hpp"
|
||||
#include "OptionalBorrowedPtr.hpp"
|
||||
#include "UniquePtr.hpp"
|
||||
#include "OptionalUniquePtr.hpp"
|
||||
#include "UniquePtrList.hpp"
|
||||
#include "__BorrowedPtr.hpp"
|
||||
#include "__OptionalBorrowedPtr.hpp"
|
||||
#include "__OptionalUniquePtr.hpp"
|
||||
#include "__UniquePtr.hpp"
|
||||
#include "__UniquePtrList.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
template <class T>
|
||||
using OwnedPtr<T> = T*;
|
||||
template <class T> using OwnedPtr<T> = T*;
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_MEMORY_HPP
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ARBUTILS_BORROWEDPTR_HPP
|
||||
#define ARBUTILS_BORROWEDPTR_HPP
|
||||
#ifndef ARBUTILS___BORROWEDPTR_HPP
|
||||
#define ARBUTILS___BORROWEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
|
||||
@@ -98,4 +98,4 @@ namespace std {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_BORROWEDPTR_HPP
|
||||
#endif // ARBUTILS___BORROWEDPTR_HPP
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ARBUTILS_OPTIONALBORROWEDPTR_HPP
|
||||
#define ARBUTILS_OPTIONALBORROWEDPTR_HPP
|
||||
#ifndef ARBUTILS___OPTIONALBORROWEDPTR_HPP
|
||||
#define ARBUTILS___OPTIONALBORROWEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
|
||||
@@ -94,4 +94,4 @@ namespace std {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_OPTIONALBORROWEDPTR_HPP
|
||||
#endif // ARBUTILS___OPTIONALBORROWEDPTR_HPP
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ARBUTILS_SCOPEDPTR_HPP
|
||||
#define ARBUTILS_SCOPEDPTR_HPP
|
||||
#ifndef ARBUTILS___SCOPEDPTR_HPP
|
||||
#define ARBUTILS___SCOPEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
|
||||
@@ -73,4 +73,4 @@ namespace std {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_SCOPEDPTR_HPP
|
||||
#endif // ARBUTILS___SCOPEDPTR_HPP
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ARBUTILS_UNIQUEPTR_HPP
|
||||
#define ARBUTILS_UNIQUEPTR_HPP
|
||||
#ifndef ARBUTILS___UNIQUEPTR_HPP
|
||||
#define ARBUTILS___UNIQUEPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
|
||||
@@ -76,4 +76,4 @@ namespace std {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_UNIQUEPTR_HPP
|
||||
#endif // ARBUTILS___UNIQUEPTR_HPP
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS_UNIQUEPTRLIST_HPP
|
||||
#define ARBUTILS_UNIQUEPTRLIST_HPP
|
||||
#ifndef ARBUTILS___UNIQUEPTRLIST_HPP
|
||||
#define ARBUTILS___UNIQUEPTRLIST_HPP
|
||||
|
||||
#include "BorrowedPtr.hpp"
|
||||
#include "__BorrowedPtr.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief Collection of pointers that is owned by the list. When the list exits scope, the destructor on all
|
||||
@@ -144,4 +144,4 @@ namespace ArbUt {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // ARBUTILS_UNIQUEPTRLIST_HPP
|
||||
#endif // ARBUTILS___UNIQUEPTRLIST_HPP
|
||||
Reference in New Issue
Block a user