Introduce 'nncc::core::ADT::feature::Reader' interface (#118)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 23 Apr 2018 02:31:12 +0000 (11:31 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 23 Apr 2018 02:31:12 +0000 (11:31 +0900)
This commit introduces 'nncc::core::ADT::feature::Reader' interface
which allows its client to read the content of feature map.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
libs/core/include/nncc/core/ADT/feature/Reader.h [new file with mode: 0644]
libs/core/src/nncc/core/ADT/feature/Feature.cpp [new file with mode: 0644]

diff --git a/libs/core/include/nncc/core/ADT/feature/Reader.h b/libs/core/include/nncc/core/ADT/feature/Reader.h
new file mode 100644 (file)
index 0000000..06fbdfb
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef __NNCC_CORE_ADT_FEATURE_READER_H__
+#define __NNCC_CORE_ADT_FEATURE_READER_H__
+
+#include <cstdint>
+
+namespace nncc
+{
+namespace core
+{
+namespace ADT
+{
+namespace feature
+{
+
+template <typename T> struct Reader
+{
+  virtual ~Reader() = default;
+
+  virtual T at(uint32_t ch, uint32_t row, uint32_t col) const = 0;
+};
+
+} // namespace feature
+} // namespace ADT
+} // namespace core
+} // namespace nncc
+
+#endif // __NNCC_CORE_ADT_FEATURE_READER_H__
diff --git a/libs/core/src/nncc/core/ADT/feature/Feature.cpp b/libs/core/src/nncc/core/ADT/feature/Feature.cpp
new file mode 100644 (file)
index 0000000..53237a6
--- /dev/null
@@ -0,0 +1,5 @@
+#include "nncc/core/ADT/feature/Reader.h"
+
+// DO NOT REMOVE THIS FILE
+//
+// This file is introduced to check the self-completeness of 'Reader.h'