update : add thread
1 parent a8bd1e2 commit 72af7af53522c8763efd5e2a995eb9ab09f25484
Nomura Kei authored on 26 Jun
Showing 22 changed files
View
33
include/j/lang/iterable.hpp 0 → 100644
/**
* @file iterable.hpp
* @brief J Library Iterable ヘッダファイル。
* @copyright 2001 - 2024 Nomura Kei
* @depends
* j/lang/object.hpp
*/
#ifndef J_LANG_ITERABLE_HPP
#define J_LANG_ITERABLE_HPP
 
#include <memory>
 
#include <j/lang/object.hpp>
#include <j/util/iterator.hpp>
 
namespace j
{
namespace lang
{
 
template <typename T>
class Iterable
{
public:
virtual ~Iterable() = default;
virtual std::unique_ptr<j::util::Iterator<T>> iterator() const = 0;
};
 
} // namespace lang
} // namespace j
 
#endif // J_LANG_ITERABLE_HPP
View
30
include/j/lang/runnable.hpp 0 → 100644
/**
* @file runnable.hpp
* @brief J Library Runnable ヘッダファイル。
* @copyright 2001 - 2024 Nomura Kei
* @depends
* j/lang/object.hpp
*/
#ifndef J_LANG_RUNNABLE_HPP
#define J_LANG_RUNNABLE_HPP
 
#include <j/lang/string.hpp>
 
namespace j
{
namespace lang
{
 
class Runnable
{
public:
// デストラクタ
virtual ~Runnable() noexcept = default;
virtual void run() = 0;
};
 
} // namespace lang
} // namespace j
 
#endif // J_LANG_RUNNABLE_HPP
View
include/j/lang/string.hpp
View
include/j/lang/thread.hpp 0 → 100644
View
include/j/util/array_list.hpp 0 → 100644
View
include/j/util/blocking_queue.hpp 0 → 100644
View
include/j/util/collection.hpp 0 → 100644
View
include/j/util/iterator.hpp 0 → 100644
View
include/j/util/list.hpp 0 → 100644
View
include/j/util/no_such_element_exception.hpp 0 → 100644
View
include/j/util/queue.hpp 0 → 100644
View
modules/j/base/src/no_such_element_exception.cpp 0 → 100644
View
modules/j/base/src/string.cpp
View
modules/j/base/src/thread.cpp 0 → 100644
View
modules/j/base/test/src/ut.cpp
View
modules/j/base/test/src/ut_array_list.cpp 0 → 100644
View
modules/j/base/test/src/ut_string.cpp 0 → 100644
View
modules/j/base/test/src/ut_thread.cpp 0 → 100644
View
modules/j/cppunit/Makefile 100644 → 0
View
modules/j/cppunit/README.md 100644 → 0
View
modules/j/cppunit/src/assert.cpp 100644 → 0
View
modules/j/cppunit/src/cppunit.cpp 100644 → 0