diff options
| -rw-r--r-- | include/ocl/allocator_op.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/basic_hash.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/crc_hash.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/equiv.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/io.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/option.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/print.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/smart_ptr.hpp | 2 | ||||
| -rw-r--r-- | include/ocl/tracked_ptr.hpp | 2 |
9 files changed, 18 insertions, 0 deletions
diff --git a/include/ocl/allocator_op.hpp b/include/ocl/allocator_op.hpp index 4263c95..c4eea41 100644 --- a/include/ocl/allocator_op.hpp +++ b/include/ocl/allocator_op.hpp @@ -11,6 +11,7 @@ namespace ocl { + /// @note these are guidelines on allocating a resource template <typename type> struct global_new_op final @@ -74,6 +75,7 @@ namespace ocl template <typename type> using allocator = allocator_op<type, global_new_op<type>, global_array_delete_op<type>>; + } // namespace ocl #endif // ifndef __OCL_CORE_ALLOC diff --git a/include/ocl/basic_hash.hpp b/include/ocl/basic_hash.hpp index 705ed7e..6edfe0b 100644 --- a/include/ocl/basic_hash.hpp +++ b/include/ocl/basic_hash.hpp @@ -11,6 +11,7 @@ /// @brief OCL equivalence namespace. namespace ocl { + /// \brief Hash helper. template <class T> struct basic_hash @@ -38,6 +39,7 @@ namespace ocl return false; } }; + } // namespace ocl #endif diff --git a/include/ocl/crc_hash.hpp b/include/ocl/crc_hash.hpp index 848f0e5..4fe1582 100644 --- a/include/ocl/crc_hash.hpp +++ b/include/ocl/crc_hash.hpp @@ -16,6 +16,7 @@ namespace ocl { + /// @brief Crc32 implementation in C++ /// @author Amlal El Mahrouss (amlal@nekernel.org) @@ -88,6 +89,7 @@ namespace ocl template <typename K, typename V> using hash_map = std::unordered_map<K, V, std::hash<ocl::crc_hash_trait>>; + } // namespace ocl inline void diff --git a/include/ocl/equiv.hpp b/include/ocl/equiv.hpp index 60fbf44..a06d6b0 100644 --- a/include/ocl/equiv.hpp +++ b/include/ocl/equiv.hpp @@ -11,6 +11,7 @@ /// @brief OCL equivalence namespace. namespace ocl { + template <typename T> struct is_real final { @@ -44,6 +45,7 @@ namespace ocl { static constexpr auto value = true; }; + } // namespace ocl #endif diff --git a/include/ocl/io.hpp b/include/ocl/io.hpp index ad04ecd..7057e5f 100644 --- a/include/ocl/io.hpp +++ b/include/ocl/io.hpp @@ -21,6 +21,7 @@ namespace ocl::io { + class void_stream final { void_stream() = default; @@ -32,6 +33,7 @@ namespace ocl::io inline void_stream void_cout; inline void_stream void_cin; + } // namespace ocl::io #endif diff --git a/include/ocl/option.hpp b/include/ocl/option.hpp index 61c4b5f..04618e9 100644 --- a/include/ocl/option.hpp +++ b/include/ocl/option.hpp @@ -11,6 +11,7 @@ namespace ocl { + enum struct return_type : int { invalid = 0, @@ -147,6 +148,7 @@ namespace ocl { return return_type::invalid; } + } // namespace ocl #endif /* ifndef __OCL_CORE_OPTION */ diff --git a/include/ocl/print.hpp b/include/ocl/print.hpp index 657ca32..fd1a0ea 100644 --- a/include/ocl/print.hpp +++ b/include/ocl/print.hpp @@ -11,6 +11,7 @@ namespace ocl::io { + template <typename T> inline void print(T fmt) noexcept { @@ -75,6 +76,7 @@ namespace ocl::io print(fmt...); lf(); } + } // namespace ocl::io #endif // ifndef __OCL_CORE_PRINT diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp index a001147..92c63fe 100644 --- a/include/ocl/smart_ptr.hpp +++ b/include/ocl/smart_ptr.hpp @@ -13,6 +13,7 @@ namespace ocl { + template <class Type, class Del = std::default_delete<Type>> using unique_ptr = std::unique_ptr<Type, Del>; @@ -25,6 +26,7 @@ namespace ocl { return shared_ptr<Type>{object, boost::null_deleter{}}; } + } // namespace ocl #endif // ifndef __OCL_SMART_PTR diff --git a/include/ocl/tracked_ptr.hpp b/include/ocl/tracked_ptr.hpp index 878de41..30f0913 100644 --- a/include/ocl/tracked_ptr.hpp +++ b/include/ocl/tracked_ptr.hpp @@ -13,6 +13,7 @@ namespace ocl { + template <typename Type> class tracked_allocator { @@ -230,6 +231,7 @@ namespace ocl detail::throw_tracked_error(); } } + } // namespace ocl #endif // ifndef __OCL_TRACKED_PTR |
