There is no code that uses nncc_foundation.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
+++ /dev/null
-file(GLOB_RECURSE HEADERS "include/*.h")
-file(GLOB_RECURSE SOURCES "src/*.cpp")
-file(GLOB_RECURSE TESTS "src/*.test.cpp")
-list(REMOVE_ITEM SOURCES ${TESTS})
-
-# NOTE STATIC is deliberately used here to permit the use of 'nncc_foundation' without installation
-add_nncc_library(nncc_foundation STATIC ${HEADERS} ${SOURCES})
-set_target_properties(nncc_foundation PROPERTIES POSITION_INDEPENDENT_CODE ON)
-set_target_properties(nncc_foundation PROPERTIES LINKER_LANGUAGE CXX)
-target_include_directories(nncc_foundation PUBLIC include)
-
-add_nncc_test(nncc_foundation_test ${TESTS})
-nncc_target_link_libraries(nncc_foundation_test nncc_foundation)
+++ /dev/null
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __NNCC_FOUNDATION_MEMORY_H__
-#define __NNCC_FOUNDATION_MEMORY_H__
-
-#include <memory>
-
-namespace nncc
-{
-namespace foundation
-{
-
-template <typename T, typename... Args> std::unique_ptr<T> make_unique(Args &&... args)
-{
- // NOTE std::make_unique is missing in C++11 standard
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
-
-} // namespace foundation
-} // namespace nncc
-
-#endif // __NNCC_FOUNDATION_MEMORY_H__
+++ /dev/null
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __NNCC_FOUNDATION_MATH_FLOAT_H__
-#define __NNCC_FOUNDATION_MATH_FLOAT_H__
-
-namespace nncc
-{
-namespace foundation
-{
-namespace math
-{
-
-bool relative_epsilon_equal(float lhs, float rhs, unsigned tolerance = 1);
-bool absolute_epsilon_equal(float lhs, float rhs, float tolerance = 0.001);
-
-} // namespace math
-} // namespace foundation
-} // namespace nncc
-
-#endif // __NNCC_FOUNDATION_MATH_FLOAT_H__
+++ /dev/null
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <nncc/foundation/Memory.h>
-
-#include <gtest/gtest.h>
-
-class Tracker
-{
-public:
- Tracker(bool &allocated, bool &freed) : _freed{freed} { allocated = true; }
-
-public:
- ~Tracker() { _freed = true; }
-
-private:
- bool &_freed;
-};
-
-TEST(FOUNDATION_MEMORY, unique_ptr)
-{
- bool allocated = false;
- bool freed = false;
-
- {
- auto o = nncc::foundation::make_unique<Tracker>(allocated, freed);
-
- ASSERT_TRUE(allocated);
- ASSERT_FALSE(freed);
- }
-
- ASSERT_TRUE(freed);
-}