-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#125 Move node_id_vector from graph_interface.hpp to a separate header
It allow to leave it in detail namespace while all other graph_interface.hpp content will be moved into core namespace
- Loading branch information
Showing
5 changed files
with
56 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// Copyright (C) 2014-2017 Sebastian Jeckel. | ||
// Copyright (C) 2020-2023 Krylov Yaroslav. | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
// | ||
|
||
#ifndef UREACT_DETAIL_NODE_ID_VECTOR_HPP | ||
#define UREACT_DETAIL_NODE_ID_VECTOR_HPP | ||
|
||
#include <vector> | ||
|
||
#include <ureact/detail/defines.hpp> | ||
#include <ureact/detail/graph_interface.hpp> | ||
|
||
UREACT_BEGIN_NAMESPACE | ||
|
||
namespace detail | ||
{ | ||
|
||
class node_id_vector | ||
{ | ||
public: | ||
using value_type = node_id; | ||
using container_type = std::vector<value_type>; | ||
using iterator = container_type::iterator; | ||
|
||
void add( node_id id ); | ||
void remove( node_id id ); | ||
void clear(); | ||
UREACT_WARN_UNUSED_RESULT bool empty() const; | ||
|
||
UREACT_WARN_UNUSED_RESULT iterator begin(); | ||
UREACT_WARN_UNUSED_RESULT iterator end(); | ||
|
||
private: | ||
container_type m_data; | ||
}; | ||
|
||
} // namespace detail | ||
|
||
UREACT_END_NAMESPACE | ||
|
||
#if UREACT_HEADER_ONLY | ||
# include <ureact/detail/node_id_vector.inl> | ||
#endif | ||
|
||
#endif //UREACT_DETAIL_NODE_ID_VECTOR_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters