Commit 96f7acfa authored by Dominik Charousset's avatar Dominik Charousset

Move everything to the new namespace caf

parent be771f52
This diff is collapsed.
......@@ -25,7 +25,7 @@ DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
PROJECT_NAME = libcppa
PROJECT_NAME = libcaf
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or
......@@ -565,7 +565,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = @CMAKE_HOME_DIRECTORY@/cppa/ @CMAKE_HOME_DIRECTORY@/cppa/util @CMAKE_HOME_DIRECTORY@/cppa/intrusive @CMAKE_HOME_DIRECTORY@/cppa/io @CMAKE_HOME_DIRECTORY@/cppa/opencl
INPUT = @CMAKE_HOME_DIRECTORY@/caf/ @CMAKE_HOME_DIRECTORY@/caf/util @CMAKE_HOME_DIRECTORY@/caf/intrusive @CMAKE_HOME_DIRECTORY@/caf/io @CMAKE_HOME_DIRECTORY@/caf/opencl
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
......@@ -1245,7 +1245,7 @@ INCLUDE_FILE_PATTERNS =
# undefined via #undef or recursively expanded use the := operator
# instead of the = operator.
PREDEFINED = CPPA_DOCUMENTATION
PREDEFINED = CAF_DOCUMENTATION
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
# this tag can be used to specify a list of macro names that should be expanded.
......
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ABSTRACT_ACTOR_HPP
#define CPPA_ABSTRACT_ACTOR_HPP
#ifndef CAF_ABSTRACT_ACTOR_HPP
#define CAF_ABSTRACT_ACTOR_HPP
#include <set>
#include <mutex>
......@@ -28,17 +28,17 @@
#include <cstdint>
#include <type_traits>
#include "cppa/node_id.hpp"
#include "cppa/fwd.hpp"
#include "cppa/attachable.hpp"
#include "cppa/message_id.hpp"
#include "cppa/exit_reason.hpp"
#include "cppa/intrusive_ptr.hpp"
#include "cppa/abstract_channel.hpp"
#include "caf/node_id.hpp"
#include "caf/fwd.hpp"
#include "caf/attachable.hpp"
#include "caf/message_id.hpp"
#include "caf/exit_reason.hpp"
#include "caf/intrusive_ptr.hpp"
#include "caf/abstract_channel.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
class actor_addr;
class serializer;
......@@ -267,6 +267,6 @@ bool abstract_actor::attach_functor(F&& f) {
return attach(attachable_ptr{new impl(std::forward<F>(f))});
}
} // namespace cppa
} // namespace caf
#endif // CPPA_ABSTRACT_ACTOR_HPP
#endif // CAF_ABSTRACT_ACTOR_HPP
......@@ -16,15 +16,15 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ABSTRACT_CHANNEL_HPP
#define CPPA_ABSTRACT_CHANNEL_HPP
#ifndef CAF_ABSTRACT_CHANNEL_HPP
#define CAF_ABSTRACT_CHANNEL_HPP
#include "cppa/fwd.hpp"
#include "cppa/node_id.hpp"
#include "cppa/message_id.hpp"
#include "cppa/ref_counted.hpp"
#include "caf/fwd.hpp"
#include "caf/node_id.hpp"
#include "caf/message_id.hpp"
#include "caf/ref_counted.hpp"
namespace cppa {
namespace caf {
/**
* @brief Interface for all message receivers.
......@@ -80,6 +80,6 @@ inline node_id abstract_channel::node() const {
return m_node;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_ABSTRACT_CHANNEL_HPP
#endif // CAF_ABSTRACT_CHANNEL_HPP
......@@ -16,28 +16,27 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ABSTRACT_GROUP_HPP
#define CPPA_ABSTRACT_GROUP_HPP
#ifndef CAF_ABSTRACT_GROUP_HPP
#define CAF_ABSTRACT_GROUP_HPP
#include <string>
#include <memory>
#include "cppa/channel.hpp"
#include "cppa/attachable.hpp"
#include "cppa/ref_counted.hpp"
#include "cppa/abstract_channel.hpp"
#include "caf/channel.hpp"
#include "caf/attachable.hpp"
#include "caf/ref_counted.hpp"
#include "caf/abstract_channel.hpp"
namespace cppa {
namespace caf {
namespace detail {
class group_manager;
class peer_connection;
} // namespace detail
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
class group;
class serializer;
......@@ -162,6 +161,6 @@ class abstract_group : public abstract_channel {
*/
using abstract_group_ptr = intrusive_ptr<abstract_group>;
} // namespace cppa
} // namespace caf
#endif // CPPA_ABSTRACT_GROUP_HPP
#endif // CAF_ABSTRACT_GROUP_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACCEPT_HANDLE_HPP
#define CPPA_ACCEPT_HANDLE_HPP
#ifndef CAF_ACCEPT_HANDLE_HPP
#define CAF_ACCEPT_HANDLE_HPP
#include "cppa/io_handle.hpp"
#include "caf/io_handle.hpp"
namespace cppa {
namespace caf {
/**
* @brief Generic handle type for managing incoming connections.
......@@ -42,6 +42,6 @@ class accept_handle : public io_handle<accept_handle> {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_ACCEPT_HANDLE_HPP
#endif // CAF_ACCEPT_HANDLE_HPP
......@@ -16,23 +16,23 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_HPP
#define CPPA_ACTOR_HPP
#ifndef CAF_ACTOR_HPP
#define CAF_ACTOR_HPP
#include <cstddef>
#include <cstdint>
#include <utility>
#include <type_traits>
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/fwd.hpp"
#include "cppa/abstract_actor.hpp"
#include "caf/fwd.hpp"
#include "caf/abstract_actor.hpp"
#include "cppa/detail/comparable.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/comparable.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
struct invalid_actor_t {
constexpr invalid_actor_t() {}
......@@ -162,17 +162,17 @@ class actor : detail::comparable<actor>,
};
} // namespace cppa
} // namespace caf
// allow actor to be used in hash maps
namespace std {
template<>
struct hash<cppa::actor> {
inline size_t operator()(const cppa::actor& ref) const {
struct hash<caf::actor> {
inline size_t operator()(const caf::actor& ref) const {
return ref ? static_cast<size_t>(ref->id()) : 0;
}
};
} // namespace std
#endif // CPPA_ACTOR_HPP
#endif // CAF_ACTOR_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_ADDR_HPP
#define CPPA_ACTOR_ADDR_HPP
#ifndef CAF_ACTOR_ADDR_HPP
#define CAF_ACTOR_ADDR_HPP
#include <cstddef>
#include <cstdint>
#include <functional>
#include <type_traits>
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/fwd.hpp"
#include "cppa/abstract_actor.hpp"
#include "caf/fwd.hpp"
#include "caf/abstract_actor.hpp"
#include "cppa/detail/comparable.hpp"
#include "caf/detail/comparable.hpp"
namespace cppa {
namespace caf {
struct invalid_actor_addr_t {
constexpr invalid_actor_addr_t() {}
......@@ -107,17 +107,17 @@ class actor_addr : detail::comparable<actor_addr>,
};
} // namespace cppa
} // namespace caf
// allow actor_addr to be used in hash maps
namespace std {
template<>
struct hash<cppa::actor_addr> {
inline size_t operator()(const cppa::actor_addr& ref) const {
struct hash<caf::actor_addr> {
inline size_t operator()(const caf::actor_addr& ref) const {
return static_cast<size_t>(ref.id());
}
};
} // namespace std
#endif // CPPA_ACTOR_ADDR_HPP
#endif // CAF_ACTOR_ADDR_HPP
......@@ -16,16 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_CAST_HPP
#define CPPA_ACTOR_CAST_HPP
#ifndef CAF_ACTOR_CAST_HPP
#define CAF_ACTOR_CAST_HPP
namespace cppa {
namespace caf {
template<typename T, typename U>
T actor_cast(const U& what) {
return what.get();
}
} // namespace cppa
} // namespace caf
#endif // CPPA_ACTOR_CAST_HPP
#endif // CAF_ACTOR_CAST_HPP
......@@ -16,24 +16,23 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_COMPANION_HPP
#define CPPA_ACTOR_COMPANION_HPP
#ifndef CAF_ACTOR_COMPANION_HPP
#define CAF_ACTOR_COMPANION_HPP
#include <memory>
#include <functional>
#include "cppa/local_actor.hpp"
#include "cppa/mailbox_based.hpp"
#include "cppa/mailbox_element.hpp"
#include "cppa/behavior_stack_based.hpp"
#include "caf/local_actor.hpp"
#include "caf/mailbox_based.hpp"
#include "caf/mailbox_element.hpp"
#include "caf/behavior_stack_based.hpp"
#include "cppa/mixin/sync_sender.hpp"
#include "caf/mixin/sync_sender.hpp"
#include "cppa/detail/memory.hpp"
#include "cppa/detail/shared_spinlock.hpp"
#include "caf/detail/memory.hpp"
#include "caf/detail/shared_spinlock.hpp"
namespace cppa {
namespace caf {
/**
* @brief An co-existing forwarding all messages through a user-defined
......@@ -83,6 +82,6 @@ class actor_companion : public extend<local_actor, actor_companion>::
*/
using actor_companion_ptr = intrusive_ptr<actor_companion>;
} // namespace cppa
} // namespace caf
#endif // CPPA_ACTOR_COMPANION_HPP
#endif // CAF_ACTOR_COMPANION_HPP
......@@ -16,17 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_NAMESPACE_HPP
#define CPPA_ACTOR_NAMESPACE_HPP
#ifndef CAF_ACTOR_NAMESPACE_HPP
#define CAF_ACTOR_NAMESPACE_HPP
#include <map>
#include <utility>
#include <functional>
#include "cppa/node_id.hpp"
#include "cppa/actor_proxy.hpp"
#include "caf/node_id.hpp"
#include "caf/actor_proxy.hpp"
namespace cppa {
namespace caf {
class serializer;
class deserializer;
......@@ -117,6 +117,6 @@ class actor_namespace {
};
} // namespace cppa
} // namespace caf
#endif
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_OSTREAM_HPP
#define CPPA_ACTOR_OSTREAM_HPP
#ifndef CAF_ACTOR_OSTREAM_HPP
#define CAF_ACTOR_OSTREAM_HPP
#include "cppa/actor.hpp"
#include "cppa/message.hpp"
#include "cppa/to_string.hpp"
#include "caf/actor.hpp"
#include "caf/message.hpp"
#include "caf/to_string.hpp"
namespace cppa {
namespace caf {
class local_actor;
class scoped_actor;
......@@ -51,7 +51,7 @@ class actor_ostream {
}
inline actor_ostream& operator<<(const message& arg) {
return write(cppa::to_string(arg));
return write(caf::to_string(arg));
}
// disambiguate between conversion to string and to message
......@@ -80,12 +80,12 @@ inline actor_ostream aout(actor self) {
return actor_ostream{self};
}
} // namespace cppa
} // namespace caf
namespace std {
// provide convenience overlaods for aout; implemented in logging.cpp
cppa::actor_ostream& endl(cppa::actor_ostream& o);
cppa::actor_ostream& flush(cppa::actor_ostream& o);
caf::actor_ostream& endl(caf::actor_ostream& o);
caf::actor_ostream& flush(caf::actor_ostream& o);
} // namespace std
#endif // CPPA_ACTOR_OSTREAM_HPP
#endif // CAF_ACTOR_OSTREAM_HPP
......@@ -16,17 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ACTOR_PROXY_HPP
#define CPPA_ACTOR_PROXY_HPP
#ifndef CAF_ACTOR_PROXY_HPP
#define CAF_ACTOR_PROXY_HPP
#include <atomic>
#include <cstdint>
#include "cppa/abstract_actor.hpp"
#include "caf/abstract_actor.hpp"
#include "cppa/detail/shared_spinlock.hpp"
#include "caf/detail/shared_spinlock.hpp"
namespace cppa {
namespace caf {
class actor_proxy;
......@@ -117,6 +117,6 @@ class actor_proxy : public abstract_actor {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_ACTOR_PROXY_HPP
#endif // CAF_ACTOR_PROXY_HPP
This diff is collapsed.
......@@ -16,23 +16,23 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ANNOUNCE_HPP
#define CPPA_ANNOUNCE_HPP
#ifndef CAF_ANNOUNCE_HPP
#define CAF_ANNOUNCE_HPP
#include <memory>
#include <typeinfo>
#include "cppa/string_algorithms.hpp"
#include "caf/string_algorithms.hpp"
#include "cppa/config.hpp"
#include "cppa/uniform_type_info.hpp"
#include "caf/config.hpp"
#include "caf/uniform_type_info.hpp"
#include "cppa/detail/abstract_uniform_type_info.hpp"
#include "caf/detail/abstract_uniform_type_info.hpp"
#include "cppa/detail/safe_equal.hpp"
#include "cppa/detail/default_uniform_type_info.hpp"
#include "caf/detail/safe_equal.hpp"
#include "caf/detail/default_uniform_type_info.hpp"
namespace cppa {
namespace caf {
/**
* @addtogroup TypeSystem
......@@ -164,6 +164,6 @@ inline const uniform_type_info* announce(const Ts&... args) {
* @}
*/
} // namespace cppa
} // namespace caf
#endif // CPPA_ANNOUNCE_HPP
#endif // CAF_ANNOUNCE_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ANYTHING_HPP
#define CPPA_ANYTHING_HPP
#ifndef CAF_ANYTHING_HPP
#define CAF_ANYTHING_HPP
#include <type_traits>
namespace cppa {
namespace caf {
/**
* @brief Acts as wildcard expression in patterns.
......@@ -51,6 +51,6 @@ struct is_anything {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_ANYTHING_HPP
#endif // CAF_ANYTHING_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ATOM_HPP
#define CPPA_ATOM_HPP
#ifndef CAF_ATOM_HPP
#define CAF_ATOM_HPP
#include <string>
#include "cppa/detail/atom_val.hpp"
#include "caf/detail/atom_val.hpp"
namespace cppa {
namespace caf {
/**
* @brief The value type of atoms.
......@@ -54,6 +54,6 @@ constexpr atom_value atom(char const (&str)[Size]) {
return static_cast<atom_value>(detail::atom_val(str, 0xF));
}
} // namespace cppa
} // namespace caf
#endif // CPPA_ATOM_HPP
#endif // CAF_ATOM_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ATTACHABLE_HPP
#define CPPA_ATTACHABLE_HPP
#ifndef CAF_ATTACHABLE_HPP
#define CAF_ATTACHABLE_HPP
#include <memory>
#include <cstdint>
#include <typeinfo>
namespace cppa {
namespace caf {
/**
* @brief Callback utility class.
......@@ -83,6 +83,6 @@ class attachable {
*/
using attachable_ptr = std::unique_ptr<attachable>;
} // namespace cppa
} // namespace caf
#endif // CPPA_ATTACHABLE_HPP
#endif // CAF_ATTACHABLE_HPP
......@@ -16,13 +16,13 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_AWAIT_ALL_ACTORS_DONE_HPP
#define CPPA_AWAIT_ALL_ACTORS_DONE_HPP
#ifndef CAF_AWAIT_ALL_ACTORS_DONE_HPP
#define CAF_AWAIT_ALL_ACTORS_DONE_HPP
#include "cppa/detail/singletons.hpp"
#include "cppa/detail/actor_registry.hpp"
#include "caf/detail/singletons.hpp"
#include "caf/detail/actor_registry.hpp"
namespace cppa {
namespace caf {
/**
* @brief Blocks execution of this actor until all
......@@ -34,6 +34,6 @@ inline void await_all_actors_done() {
detail::singletons::get_actor_registry()->await_running_count_equal(0);
}
} // namespace cppa
} // namespace caf
#endif // CPPA_AWAIT_ALL_ACTORS_DONE_HPP
#endif // CAF_AWAIT_ALL_ACTORS_DONE_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_BEHAVIOR_HPP
#define CPPA_BEHAVIOR_HPP
#ifndef CAF_BEHAVIOR_HPP
#define CAF_BEHAVIOR_HPP
#include <functional>
#include <type_traits>
#include "cppa/none.hpp"
#include "caf/none.hpp"
#include "cppa/duration.hpp"
#include "cppa/match_expr.hpp"
#include "cppa/timeout_definition.hpp"
#include "caf/duration.hpp"
#include "caf/match_expr.hpp"
#include "caf/timeout_definition.hpp"
#include "cppa/detail/type_list.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_list.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
class message_handler;
......@@ -150,6 +150,6 @@ inline auto behavior::as_behavior_impl() const -> const impl_ptr& {
return m_impl;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_BEHAVIOR_HPP
#endif // CAF_BEHAVIOR_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_BEHAVIOR_POLICY_HPP
#define CPPA_BEHAVIOR_POLICY_HPP
#ifndef CAF_BEHAVIOR_POLICY_HPP
#define CAF_BEHAVIOR_POLICY_HPP
namespace cppa {
namespace caf {
template<bool DiscardBehavior>
struct behavior_policy {
......@@ -50,6 +50,6 @@ constexpr discard_behavior_t discard_behavior = discard_behavior_t{};
*/
constexpr keep_behavior_t keep_behavior = keep_behavior_t{};
} // namespace cppa
} // namespace caf
#endif // CPPA_BEHAVIOR_POLICY_HPP
#endif // CAF_BEHAVIOR_POLICY_HPP
......@@ -16,19 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CAF_BEHAVIOR_STACK_BASED_HPP
#define CAF_BEHAVIOR_STACK_BASED_HPP
#ifndef CPPA_BEHAVIOR_STACK_BASED_HPP
#define CPPA_BEHAVIOR_STACK_BASED_HPP
#include "caf/message_id.hpp"
#include "caf/single_timeout.hpp"
#include "caf/typed_behavior.hpp"
#include "caf/behavior_policy.hpp"
#include "caf/response_handle.hpp"
#include "cppa/message_id.hpp"
#include "cppa/single_timeout.hpp"
#include "cppa/typed_behavior.hpp"
#include "cppa/behavior_policy.hpp"
#include "cppa/response_handle.hpp"
#include "caf/detail/behavior_stack.hpp"
#include "cppa/detail/behavior_stack.hpp"
namespace cppa {
namespace caf {
template<class Base, class Subtype, class BehaviorType>
class behavior_stack_based_impl : public single_timeout<Base, Subtype> {
......@@ -95,7 +94,7 @@ class behavior_stack_based_impl : public single_timeout<Base, Subtype> {
}
inline behavior& get_behavior() {
CPPA_REQUIRE(m_bhvr_stack.empty() == false);
CAF_REQUIRE(m_bhvr_stack.empty() == false);
return m_bhvr_stack.back();
}
......@@ -162,7 +161,6 @@ class behavior_stack_based_impl : public single_timeout<Base, Subtype> {
};
/**
* @brief Mixin for actors using a stack-based message processing.
* @note This mixin implicitly includes {@link single_timeout}.
......@@ -188,6 +186,6 @@ class behavior_stack_based {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_BEHAVIOR_STACK_BASED_HPP
#endif // CAF_BEHAVIOR_STACK_BASED_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_BINARY_DESERIALIZER_HPP
#define CPPA_BINARY_DESERIALIZER_HPP
#ifndef CAF_BINARY_DESERIALIZER_HPP
#define CAF_BINARY_DESERIALIZER_HPP
#include "cppa/deserializer.hpp"
#include "caf/deserializer.hpp"
namespace cppa {
namespace caf {
/**
* @brief Implements the deserializer interface with
......@@ -69,6 +69,6 @@ inline binary_deserializer& operator>>(binary_deserializer& lhs, T& rhs) {
return lhs;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_BINARY_DESERIALIZER_HPP
#endif // CAF_BINARY_DESERIALIZER_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_BINARY_SERIALIZER_HPP
#define CPPA_BINARY_SERIALIZER_HPP
#ifndef CAF_BINARY_SERIALIZER_HPP
#define CAF_BINARY_SERIALIZER_HPP
#include <utility>
#include <sstream>
......@@ -25,13 +25,13 @@
#include <functional>
#include <type_traits>
#include "cppa/serializer.hpp"
#include "cppa/primitive_variant.hpp"
#include "caf/serializer.hpp"
#include "caf/primitive_variant.hpp"
#include "cppa/detail/ieee_754.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/ieee_754.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
/**
* @brief Implements the serializer interface with
......@@ -88,6 +88,6 @@ binary_serializer& operator<<(binary_serializer& bs, const T& value) {
return bs;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_BINARY_SERIALIZER_HPP
#endif // CAF_BINARY_SERIALIZER_HPP
......@@ -16,23 +16,23 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_BLOCKING_UNTYPED_ACTOR_HPP
#define CPPA_BLOCKING_UNTYPED_ACTOR_HPP
#ifndef CAF_BLOCKING_UNTYPED_ACTOR_HPP
#define CAF_BLOCKING_UNTYPED_ACTOR_HPP
#include "cppa/none.hpp"
#include "caf/none.hpp"
#include "cppa/on.hpp"
#include "cppa/extend.hpp"
#include "cppa/behavior.hpp"
#include "cppa/local_actor.hpp"
#include "cppa/typed_actor.hpp"
#include "cppa/mailbox_element.hpp"
#include "cppa/response_handle.hpp"
#include "caf/on.hpp"
#include "caf/extend.hpp"
#include "caf/behavior.hpp"
#include "caf/local_actor.hpp"
#include "caf/typed_actor.hpp"
#include "caf/mailbox_element.hpp"
#include "caf/response_handle.hpp"
#include "cppa/mixin/sync_sender.hpp"
#include "cppa/mixin/mailbox_based.hpp"
#include "caf/mixin/sync_sender.hpp"
#include "caf/mixin/mailbox_based.hpp"
namespace cppa {
namespace caf {
/**
* @brief A thread-mapped or context-switching actor using a blocking
......@@ -289,6 +289,6 @@ class blocking_actor::functor_based : public blocking_actor {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_BLOCKING_UNTYPED_ACTOR_HPP
#endif // CAF_BLOCKING_UNTYPED_ACTOR_HPP
......@@ -16,20 +16,20 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_CHANNEL_HPP
#define CPPA_CHANNEL_HPP
#ifndef CAF_CHANNEL_HPP
#define CAF_CHANNEL_HPP
#include <cstddef>
#include <type_traits>
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/fwd.hpp"
#include "cppa/abstract_channel.hpp"
#include "caf/fwd.hpp"
#include "caf/abstract_channel.hpp"
#include "cppa/detail/comparable.hpp"
#include "caf/detail/comparable.hpp"
namespace cppa {
namespace caf {
class actor;
class group;
......@@ -93,6 +93,6 @@ class channel : detail::comparable<channel>,
};
} // namespace cppa
} // namespace caf
#endif // CPPA_CHANNEL_HPP
#endif // CAF_CHANNEL_HPP
......@@ -16,39 +16,38 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_CONFIG_HPP
#define CPPA_CONFIG_HPP
#ifndef CAF_CONFIG_HPP
#define CAF_CONFIG_HPP
// Config pararameters defined by the build system (usually CMake):
//
// CPPA_DEBUG_MODE:
// CAF_ENABLE_RUNTIME_CHECKS:
// - check requirements at runtime
//
// CPPA_LOG_LEVEL:
// CAF_LOG_LEVEL:
// - denotes the amount of logging, ranging from error messages only (0)
// to complete traces (4)
//
// CPPA_OPENCL:
// CAF_OPENCL:
// - enables optional OpenCL module
/**
* @brief Denotes the libcppa version in the format {MAJOR}{MINOR}{PATCH},
* @brief Denotes the libcaf version in the format {MAJOR}{MINOR}{PATCH},
* whereas each number is a two-digit decimal number without
* leading zeros (e.g. 900 is version 0.9.0).
*/
#define CPPA_VERSION 1000
#define CAF_VERSION 1000
#define CPPA_MAJOR_VERSION (CPPA_VERSION / 100000)
#define CPPA_MINOR_VERSION ((CPPA_VERSION / 100) % 1000)
#define CPPA_PATCH_VERSION (CPPA_VERSION % 100)
#define CAF_MAJOR_VERSION (CAF_VERSION / 100000)
#define CAF_MINOR_VERSION ((CAF_VERSION / 100) % 1000)
#define CAF_PATCH_VERSION (CAF_VERSION % 100)
// sets CPPA_DEPRECATED, CPPA_ANNOTATE_FALLTHROUGH,
// CPPA_PUSH_WARNINGS and CPPA_POP_WARNINGS
// sets CAF_DEPRECATED, CAF_ANNOTATE_FALLTHROUGH,
// CAF_PUSH_WARNINGS and CAF_POP_WARNINGS
#if defined(__clang__)
# define CPPA_CLANG
# define CPPA_DEPRECATED __attribute__((__deprecated__))
# define CPPA_PUSH_WARNINGS \
# define CAF_CLANG
# define CAF_DEPRECATED __attribute__((__deprecated__))
# define CAF_PUSH_WARNINGS \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wall\"") \
_Pragma("clang diagnostic ignored \"-Wextra\"") \
......@@ -65,42 +64,42 @@
_Pragma("clang diagnostic ignored \"-Wcast-align\"") \
_Pragma("clang diagnostic ignored \"-Wundef\"") \
_Pragma("clang diagnostic ignored \"-Wnested-anon-types\"")
# define CPPA_POP_WARNINGS \
# define CAF_POP_WARNINGS \
_Pragma("clang diagnostic pop")
# define CPPA_ANNOTATE_FALLTHROUGH [[clang::fallthrough]]
# define CAF_ANNOTATE_FALLTHROUGH [[clang::fallthrough]]
#elif defined(__GNUC__)
# define CPPA_GCC
# define CPPA_DEPRECATED __attribute__((__deprecated__))
# define CPPA_PUSH_WARNINGS
# define CPPA_POP_WARNINGS
# define CPPA_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_GCC
# define CAF_DEPRECATED __attribute__((__deprecated__))
# define CAF_PUSH_WARNINGS
# define CAF_POP_WARNINGS
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
#elif defined(_MSC_VER)
# define CPPA_MSVC
# define CPPA_DEPRECATED __declspec(deprecated)
# define CPPA_PUSH_WARNINGS
# define CPPA_POP_WARNINGS
# define CPPA_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_MSVC
# define CAF_DEPRECATED __declspec(deprecated)
# define CAF_PUSH_WARNINGS
# define CAF_POP_WARNINGS
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
#else
# define CPPA_DEPRECATED
# define CPPA_PUSH_WARNINGS
# define CPPA_POP_WARNINGS
# define CPPA_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_DEPRECATED
# define CAF_PUSH_WARNINGS
# define CAF_POP_WARNINGS
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
#endif
// detect OS
#if defined(__APPLE__)
# define CPPA_MACOS
# define CAF_MACOS
# ifndef _GLIBCXX_HAS_GTHREADS
# define _GLIBCXX_HAS_GTHREADS
# endif
#elif defined(__linux__)
# define CPPA_LINUX
# define CAF_LINUX
# include <linux/version.h>
# if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,16)
# define CPPA_POLL_IMPL
# define CAF_POLL_IMPL
# endif
#elif defined(WIN32) || defined(_WIN32)
# define CPPA_WINDOWS
# define CAF_WINDOWS
#else
# error Platform and/or compiler not supportet
#endif
......@@ -109,43 +108,42 @@
#include <cstdio>
#include <cstdlib>
// import backtrace and backtrace_symbols_fd into cppa::detail
#ifdef CPPA_WINDOWS
#include "cppa/detail/execinfo_windows.hpp"
// import backtrace and backtrace_symbols_fd into caf::detail
#ifdef CAF_WINDOWS
#include "caf/detail/execinfo_windows.hpp"
#else
#include <execinfo.h>
namespace cppa {
namespace caf {
namespace detail {
using ::backtrace;
using ::backtrace_symbols_fd;
} // namespace detail
} // namespace cppa
} // namespace caf
#endif
//
#ifdef CPPA_DEBUG_MODE
# define CPPA_REQUIRE__(stmt, file, line) \
#ifdef CAF_ENABLE_RUNTIME_CHECKS
# define CAF_REQUIRE__(stmt, file, line) \
printf("%s:%u: requirement failed '%s'\n", file, line, stmt); \
{ \
void* array[10]; \
auto cppa_bt_size = ::cppa::detail::backtrace(array, 10); \
::cppa::detail::backtrace_symbols_fd(array, cppa_bt_size, 2); \
auto caf_bt_size = ::caf::detail::backtrace(array, 10); \
::caf::detail::backtrace_symbols_fd(array, caf_bt_size, 2); \
} \
abort()
# define CPPA_REQUIRE(stmt) \
# define CAF_REQUIRE(stmt) \
if (static_cast<bool>(stmt) == false) { \
CPPA_REQUIRE__(#stmt, __FILE__, __LINE__); \
CAF_REQUIRE__(#stmt, __FILE__, __LINE__); \
}((void) 0)
#else
# define CPPA_REQUIRE(unused) static_cast<void>(0)
# define CAF_REQUIRE(unused) static_cast<void>(0)
#endif
#define CPPA_CRITICAL__(error, file, line) { \
#define CAF_CRITICAL__(error, file, line) { \
printf("%s:%u: critical error: '%s'\n", file, line, error); \
exit(7); \
} ((void) 0)
#define CPPA_CRITICAL(error) CPPA_CRITICAL__(error, __FILE__, __LINE__)
#define CAF_CRITICAL(error) CAF_CRITICAL__(error, __FILE__, __LINE__)
#endif // CPPA_CONFIG_HPP
#endif // CAF_CONFIG_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_CONNECTION_HANDLE_HPP
#define CPPA_CONNECTION_HANDLE_HPP
#ifndef CAF_CONNECTION_HANDLE_HPP
#define CAF_CONNECTION_HANDLE_HPP
#include "cppa/io_handle.hpp"
#include "caf/io_handle.hpp"
namespace cppa {
namespace caf {
/**
* @brief Generic handle type for identifying connections.
......@@ -44,6 +44,6 @@ class connection_handle : public io_handle<connection_handle> {
constexpr connection_handle invalid_connection_handle = connection_handle{};
} // namespace cppa
} // namespace caf
#endif // CPPA_CONNECTION_HANDLE_HPP
#endif // CAF_CONNECTION_HANDLE_HPP
......@@ -21,12 +21,12 @@
#include <functional>
#include "cppa/on.hpp"
#include "cppa/behavior.hpp"
#include "cppa/message_id.hpp"
#include "cppa/message_handler.hpp"
#include "caf/on.hpp"
#include "caf/behavior.hpp"
#include "caf/message_id.hpp"
#include "caf/message_handler.hpp"
namespace cppa {
namespace caf {
class local_actor;
......@@ -72,6 +72,6 @@ class continue_helper {
};
} // namespace cppa
} // namespace caf
#endif // CONTINUE_HELPER_HPP
......@@ -16,16 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DESERIALIZER_HPP
#define CPPA_DESERIALIZER_HPP
#ifndef CAF_DESERIALIZER_HPP
#define CAF_DESERIALIZER_HPP
#include <string>
#include <cstddef>
#include "cppa/primitive_variant.hpp"
#include "cppa/uniform_type_info.hpp"
#include "caf/primitive_variant.hpp"
#include "caf/uniform_type_info.hpp"
namespace cppa {
namespace caf {
class object;
class actor_namespace;
......@@ -123,6 +123,6 @@ class deserializer {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_DESERIALIZER_HPP
#endif // CAF_DESERIALIZER_HPP
......@@ -16,19 +16,19 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
#define CPPA_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
#ifndef CAF_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
#define CAF_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
#include "cppa/message.hpp"
#include "cppa/deserializer.hpp"
#include "cppa/uniform_type_info.hpp"
#include "caf/message.hpp"
#include "caf/deserializer.hpp"
#include "caf/uniform_type_info.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
#include "cppa/detail/to_uniform_name.hpp"
#include "cppa/detail/uniform_type_info_map.hpp"
#include "caf/detail/to_uniform_name.hpp"
#include "caf/detail/uniform_type_info_map.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -108,6 +108,6 @@ class abstract_uniform_type_info : public uniform_type_info {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
#endif // CAF_DETAIL_ABSTRACT_UNIFORM_TYPE_INFO_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_ACTOR_REGISTRY_HPP
#define CPPA_DETAIL_ACTOR_REGISTRY_HPP
#ifndef CAF_DETAIL_ACTOR_REGISTRY_HPP
#define CAF_DETAIL_ACTOR_REGISTRY_HPP
#include <map>
#include <mutex>
......@@ -26,13 +26,13 @@
#include <cstdint>
#include <condition_variable>
#include "cppa/attachable.hpp"
#include "cppa/abstract_actor.hpp"
#include "cppa/detail/shared_spinlock.hpp"
#include "caf/attachable.hpp"
#include "caf/abstract_actor.hpp"
#include "caf/detail/shared_spinlock.hpp"
#include "cppa/detail/singleton_mixin.hpp"
#include "caf/detail/singleton_mixin.hpp"
namespace cppa {
namespace caf {
namespace detail {
class singletons;
......@@ -98,6 +98,6 @@ class actor_registry : public singleton_mixin<actor_registry> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_ACTOR_REGISTRY_HPP
#endif // CAF_DETAIL_ACTOR_REGISTRY_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_APPLY_ARGS_HPP
#define CPPA_DETAIL_APPLY_ARGS_HPP
#ifndef CAF_DETAIL_APPLY_ARGS_HPP
#define CAF_DETAIL_APPLY_ARGS_HPP
#include "cppa/detail/int_list.hpp"
#include "caf/detail/int_list.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename F, long... Is, class Tuple>
......@@ -51,6 +51,6 @@ inline auto apply_args_suffxied(F& f, detail::int_list<Is...>, Tuple& tup,
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_APPLY_ARGS_HPP
#endif // CAF_DETAIL_APPLY_ARGS_HPP
......@@ -16,15 +16,15 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_ARG_MATCH_T_HPP
#define CPPA_DETAIL_ARG_MATCH_T_HPP
#ifndef CAF_DETAIL_ARG_MATCH_T_HPP
#define CAF_DETAIL_ARG_MATCH_T_HPP
namespace cppa {
namespace caf {
namespace detail {
struct arg_match_t {};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_ARG_MATCH_T_HPP
#endif // CAF_DETAIL_ARG_MATCH_T_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_ATOM_VAL_HPP
#define CPPA_DETAIL_ATOM_VAL_HPP
#ifndef CAF_DETAIL_ATOM_VAL_HPP
#define CAF_DETAIL_ATOM_VAL_HPP
namespace cppa {
namespace caf {
namespace detail {
namespace {
......@@ -55,6 +55,6 @@ constexpr uint64_t atom_val(const char* cstr, uint64_t interim = 0) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_ATOM_VAL_HPP
#endif // CAF_DETAIL_ATOM_VAL_HPP
......@@ -16,41 +16,40 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_BEHAVIOR_IMPL_HPP
#define CPPA_DETAIL_BEHAVIOR_IMPL_HPP
#ifndef CAF_DETAIL_BEHAVIOR_IMPL_HPP
#define CAF_DETAIL_BEHAVIOR_IMPL_HPP
#include <tuple>
#include <type_traits>
#include "cppa/none.hpp"
#include "cppa/variant.hpp"
#include "cppa/optional.hpp"
#include "cppa/intrusive_ptr.hpp"
#include "caf/none.hpp"
#include "caf/variant.hpp"
#include "caf/optional.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/atom.hpp"
#include "cppa/message.hpp"
#include "cppa/duration.hpp"
#include "cppa/ref_counted.hpp"
#include "cppa/skip_message.hpp"
#include "cppa/timeout_definition.hpp"
#include "caf/atom.hpp"
#include "caf/message.hpp"
#include "caf/duration.hpp"
#include "caf/ref_counted.hpp"
#include "caf/skip_message.hpp"
#include "caf/timeout_definition.hpp"
#include "cppa/detail/int_list.hpp"
#include "cppa/detail/apply_args.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/int_list.hpp"
#include "caf/detail/apply_args.hpp"
#include "caf/detail/type_traits.hpp"
// <backward_compatibility version="0.9">
#include "cppa/cow_tuple.hpp"
// </backward_compatibility>
namespace cppa {
namespace caf {
class message_handler;
using bhvr_invoke_result = optional<message>;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
template<class T>
......@@ -122,7 +121,7 @@ struct optional_message_visitor : static_visitor<bhvr_invoke_result> {
// <backward_compatibility version="0.9">
template<typename... Ts>
inline bhvr_invoke_result operator()(cow_tuple<Ts...>& value) const {
return static_cast<message>(value);
return static_cast<message>(std::move(value));
}
// </backward_compatibility>
......@@ -157,7 +156,7 @@ class behavior_impl : public ref_counted {
virtual pointer copy(const generic_timeout_definition& tdef) const = 0;
inline pointer or_else(const pointer& other) {
CPPA_REQUIRE(other != nullptr);
CAF_REQUIRE(other != nullptr);
struct combinator : behavior_impl {
pointer first;
pointer second;
......@@ -263,6 +262,6 @@ using behavior_impl_ptr = intrusive_ptr<behavior_impl>;
// behavior_impl_ptr extract(const message_handler&);
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_BEHAVIOR_IMPL_HPP
#endif // CAF_DETAIL_BEHAVIOR_IMPL_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_BEHAVIOR_STACK_HPP
#define CPPA_DETAIL_BEHAVIOR_STACK_HPP
#ifndef CAF_DETAIL_BEHAVIOR_STACK_HPP
#define CAF_DETAIL_BEHAVIOR_STACK_HPP
#include <vector>
#include <memory>
#include <utility>
#include <algorithm>
#include "cppa/optional.hpp"
#include "caf/optional.hpp"
#include "cppa/config.hpp"
#include "cppa/behavior.hpp"
#include "cppa/message_id.hpp"
#include "cppa/mailbox_element.hpp"
#include "caf/config.hpp"
#include "caf/behavior.hpp"
#include "caf/message_id.hpp"
#include "caf/mailbox_element.hpp"
namespace cppa {
namespace caf {
namespace detail {
struct behavior_stack_mover;
......@@ -65,12 +65,12 @@ class behavior_stack {
inline bool empty() const { return m_elements.empty(); }
inline behavior& back() {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_elements.back().first;
}
inline message_id back_id() {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_elements.back().second;
}
......@@ -112,6 +112,6 @@ class behavior_stack {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_BEHAVIOR_STACK_HPP
#endif // CAF_DETAIL_BEHAVIOR_STACK_HPP
......@@ -16,13 +16,13 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_BOXED_HPP
#define CPPA_DETAIL_BOXED_HPP
#ifndef CAF_DETAIL_BOXED_HPP
#define CAF_DETAIL_BOXED_HPP
#include "cppa/anything.hpp"
#include "cppa/detail/wrapped.hpp"
#include "caf/anything.hpp"
#include "caf/detail/wrapped.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename T>
......@@ -74,6 +74,6 @@ struct is_boxed<detail::wrapped<T>(*)()> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_BOXED_HPP
#endif // CAF_DETAIL_BOXED_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_COMPARABLE_HPP
#define CPPA_COMPARABLE_HPP
#ifndef CAF_COMPARABLE_HPP
#define CAF_COMPARABLE_HPP
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -114,6 +114,6 @@ class comparable<Subclass, Subclass> {
};
} // namespace details
} // namespace cppa
} // namespace caf
#endif // CPPA_COMPARABLE_HPP
#endif // CAF_COMPARABLE_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_DECORATED_TUPLE_HPP
#define CPPA_DETAIL_DECORATED_TUPLE_HPP
#ifndef CAF_DETAIL_DECORATED_TUPLE_HPP
#define CAF_DETAIL_DECORATED_TUPLE_HPP
#include <vector>
#include <algorithm>
#include "cppa/config.hpp"
#include "cppa/ref_counted.hpp"
#include "cppa/uniform_type_info.hpp"
#include "caf/config.hpp"
#include "caf/ref_counted.hpp"
#include "caf/uniform_type_info.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
#include "cppa/detail/tuple_vals.hpp"
#include "cppa/detail/message_data.hpp"
#include "caf/detail/tuple_vals.hpp"
#include "caf/detail/message_data.hpp"
namespace cppa {
namespace caf {
namespace detail {
class decorated_tuple : public message_data {
......@@ -105,6 +105,6 @@ class decorated_tuple : public message_data {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_DECORATED_TUPLE_HPP
#endif // CAF_DETAIL_DECORATED_TUPLE_HPP
......@@ -16,24 +16,24 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
#define CPPA_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
#ifndef CAF_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
#define CAF_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
#include <memory>
#include "cppa/unit.hpp"
#include "cppa/actor.hpp"
#include "cppa/anything.hpp"
#include "cppa/serializer.hpp"
#include "cppa/typed_actor.hpp"
#include "cppa/deserializer.hpp"
#include "caf/unit.hpp"
#include "caf/actor.hpp"
#include "caf/anything.hpp"
#include "caf/serializer.hpp"
#include "caf/typed_actor.hpp"
#include "caf/deserializer.hpp"
#include "cppa/detail/type_traits.hpp"
#include "cppa/detail/abstract_uniform_type_info.hpp"
#include "caf/detail/type_traits.hpp"
#include "caf/detail/abstract_uniform_type_info.hpp"
#include "cppa/detail/types_array.hpp"
#include "caf/detail/types_array.hpp"
namespace cppa {
namespace caf {
namespace detail {
using uniform_type_info_ptr = uniform_type_info_ptr;
......@@ -565,6 +565,6 @@ class default_uniform_type_info<typed_actor<
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
#endif // CAF_DETAIL_DEFAULT_UNIFORM_TYPE_INFO_IMPL_HPP
......@@ -16,13 +16,13 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_DEMANGLE_HPP
#define CPPA_DETAIL_DEMANGLE_HPP
#ifndef CAF_DETAIL_DEMANGLE_HPP
#define CAF_DETAIL_DEMANGLE_HPP
#include <string>
#include <typeinfo>
namespace cppa {
namespace caf {
namespace detail {
std::string demangle(const char* typeid_name);
......@@ -34,6 +34,6 @@ inline std::string demangle() {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_DEMANGLE_HPP
#endif // CAF_DETAIL_DEMANGLE_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_DISABLABLE_DELETE_HPP
#define CPPA_DETAIL_DISABLABLE_DELETE_HPP
#ifndef CAF_DETAIL_DISABLABLE_DELETE_HPP
#define CAF_DETAIL_DISABLABLE_DELETE_HPP
namespace cppa {
namespace caf {
namespace detail {
class disablable_delete {
......@@ -44,6 +44,6 @@ class disablable_delete {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_DISABLABLE_DELETE_HPP
#endif // CAF_DETAIL_DISABLABLE_DELETE_HPP
......@@ -43,16 +43,16 @@
* DEALINGS IN THE SOFTWARE. *
\******************************************************************************/
#ifndef CPPA_DETAIL_EXECINFO_WINDOWS_HPP
#define CPPA_DETAIL_EXECINFO_WINDOWS_HPP
#ifndef CAF_DETAIL_EXECINFO_WINDOWS_HPP
#define CAF_DETAIL_EXECINFO_WINDOWS_HPP
namespace cppa {
namespace caf {
namespace detail {
int backtrace(void** buffer, int size);
void backtrace_symbols_fd(void* const* buffer, int size, int fd);
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_EXECINFO_WINDOWS_HPP
#endif // CAF_DETAIL_EXECINFO_WINDOWS_HPP
......@@ -16,18 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_GET_MAC_ADDRESSES_HPP
#define CPPA_DETAIL_GET_MAC_ADDRESSES_HPP
#ifndef CAF_DETAIL_GET_MAC_ADDRESSES_HPP
#define CAF_DETAIL_GET_MAC_ADDRESSES_HPP
#include <string>
#include <vector>
namespace cppa {
namespace caf {
namespace detail {
std::vector<std::string> get_mac_addresses();
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_GET_MAC_ADDRESSES_HPP
#endif // CAF_DETAIL_GET_MAC_ADDRESSES_HPP
......@@ -16,17 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_GET_ROOT_UUID_HPP
#define CPPA_DETAIL_GET_ROOT_UUID_HPP
#ifndef CAF_DETAIL_GET_ROOT_UUID_HPP
#define CAF_DETAIL_GET_ROOT_UUID_HPP
#include <string>
namespace cppa {
namespace caf {
namespace detail {
std::string get_root_uuid();
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_GET_ROOT_UUID_HPP
#endif // CAF_DETAIL_GET_ROOT_UUID_HPP
......@@ -16,19 +16,19 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_GROUP_MANAGER_HPP
#define CPPA_DETAIL_GROUP_MANAGER_HPP
#ifndef CAF_DETAIL_GROUP_MANAGER_HPP
#define CAF_DETAIL_GROUP_MANAGER_HPP
#include <map>
#include <mutex>
#include <thread>
#include "cppa/abstract_group.hpp"
#include "cppa/detail/shared_spinlock.hpp"
#include "caf/abstract_group.hpp"
#include "caf/detail/shared_spinlock.hpp"
#include "cppa/detail/singleton_mixin.hpp"
#include "caf/detail/singleton_mixin.hpp"
namespace cppa {
namespace caf {
namespace detail {
class group_manager : public singleton_mixin<group_manager> {
......@@ -61,6 +61,6 @@ class group_manager : public singleton_mixin<group_manager> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_GROUP_MANAGER_HPP
#endif // CAF_DETAIL_GROUP_MANAGER_HPP
......@@ -20,13 +20,13 @@
* Based on http://beej.us/guide/bgnet/examples/pack2.c *
\******************************************************************************/
#ifndef CPPA_DETAIL_IEEE_754_HPP
#define CPPA_DETAIL_IEEE_754_HPP
#ifndef CAF_DETAIL_IEEE_754_HPP
#define CAF_DETAIL_IEEE_754_HPP
#include <cmath>
#include <cstdint>
namespace cppa {
namespace caf {
namespace detail {
template<typename T>
......@@ -133,6 +133,6 @@ typename ieee_754_trait<T>::float_type unpack754(T i) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_IEEE_754_HPP
#endif // CAF_DETAIL_IEEE_754_HPP
......@@ -16,19 +16,19 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_IMPLICIT_CONVERSIONS_HPP
#define CPPA_DETAIL_IMPLICIT_CONVERSIONS_HPP
#ifndef CAF_DETAIL_IMPLICIT_CONVERSIONS_HPP
#define CAF_DETAIL_IMPLICIT_CONVERSIONS_HPP
#include <string>
#include <type_traits>
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
class local_actor;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
template<typename T>
......@@ -77,6 +77,6 @@ struct strip_and_convert {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_IMPLICIT_CONVERSIONS_HPP
#endif // CAF_DETAIL_IMPLICIT_CONVERSIONS_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_INT_LIST_HPP
#define CPPA_DETAIL_INT_LIST_HPP
#ifndef CAF_DETAIL_INT_LIST_HPP
#define CAF_DETAIL_INT_LIST_HPP
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -103,6 +103,6 @@ constexpr auto get_right_indices(const T&)
*/
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_INT_LIST_HPP
#endif // CAF_DETAIL_INT_LIST_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_LEFT_OR_RIGHT_HPP
#define CPPA_LEFT_OR_RIGHT_HPP
#ifndef CAF_LEFT_OR_RIGHT_HPP
#define CAF_LEFT_OR_RIGHT_HPP
#include "cppa/unit.hpp"
#include "caf/unit.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -67,6 +67,6 @@ struct if_not_left<unit_t, Right> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_LEFT_OR_RIGHT_HPP
#endif // CAF_LEFT_OR_RIGHT_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_LIFTED_FUN_HPP
#define CPPA_DETAIL_LIFTED_FUN_HPP
#ifndef CAF_DETAIL_LIFTED_FUN_HPP
#define CAF_DETAIL_LIFTED_FUN_HPP
#include "cppa/none.hpp"
#include "cppa/optional.hpp"
#include "caf/none.hpp"
#include "caf/optional.hpp"
#include "cppa/skip_message.hpp"
#include "caf/skip_message.hpp"
#include "cppa/detail/int_list.hpp"
#include "cppa/detail/type_list.hpp"
#include "cppa/detail/tuple_zip.hpp"
#include "cppa/detail/apply_args.hpp"
#include "cppa/detail/type_traits.hpp"
#include "cppa/detail/left_or_right.hpp"
#include "caf/detail/int_list.hpp"
#include "caf/detail/type_list.hpp"
#include "caf/detail/tuple_zip.hpp"
#include "caf/detail/apply_args.hpp"
#include "caf/detail/type_traits.hpp"
#include "caf/detail/left_or_right.hpp"
namespace cppa {
namespace caf {
namespace detail {
class lifted_fun_zipper {
......@@ -210,6 +210,6 @@ struct get_lifted_fun<F, ListOfProjections, type_list<Ts...>> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_LIFTED_FUN_HPP
#endif // CAF_DETAIL_LIFTED_FUN_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_LIMITED_VECTOR_HPP
#define CPPA_DETAIL_LIMITED_VECTOR_HPP
#ifndef CAF_DETAIL_LIMITED_VECTOR_HPP
#define CAF_DETAIL_LIMITED_VECTOR_HPP
#include <cstddef>
#include <iterator>
......@@ -26,9 +26,9 @@
#include <type_traits>
#include <initializer_list>
#include "cppa/config.hpp"
#include "caf/config.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -79,12 +79,12 @@ class limited_vector {
}
void resize(size_type s) {
CPPA_REQUIRE(s <= MaxSize);
CAF_REQUIRE(s <= MaxSize);
m_size = s;
}
limited_vector(std::initializer_list<T> init) : m_size(init.size()) {
CPPA_REQUIRE(init.size() <= MaxSize);
CAF_REQUIRE(init.size() <= MaxSize);
std::copy(init.begin(), init.end(), begin());
}
......@@ -98,7 +98,7 @@ class limited_vector {
// dummy SFINAE argument
typename std::iterator_traits<InputIterator>::pointer = 0) {
auto dist = std::distance(first, last);
CPPA_REQUIRE(dist >= 0);
CAF_REQUIRE(dist >= 0);
resize(static_cast<size_t>(dist));
std::copy(first, last, begin());
}
......@@ -128,22 +128,22 @@ class limited_vector {
}
inline void push_back(const_reference what) {
CPPA_REQUIRE(!full());
CAF_REQUIRE(!full());
m_data[m_size++] = what;
}
inline void pop_back() {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
--m_size;
}
inline reference at(size_type pos) {
CPPA_REQUIRE(pos < m_size);
CAF_REQUIRE(pos < m_size);
return m_data[pos];
}
inline const_reference at(size_type pos) const {
CPPA_REQUIRE(pos < m_size);
CAF_REQUIRE(pos < m_size);
return m_data[pos];
}
......@@ -204,22 +204,22 @@ class limited_vector {
}
inline reference front() {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_data[0];
}
inline const_reference front() const {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_data[0];
}
inline reference back() {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_data[m_size - 1];
}
inline const_reference back() const {
CPPA_REQUIRE(!empty());
CAF_REQUIRE(!empty());
return m_data[m_size - 1];
}
......@@ -238,7 +238,7 @@ class limited_vector {
*/
template<class InputIterator>
inline void insert(iterator pos, InputIterator first, InputIterator last) {
CPPA_REQUIRE(first <= last);
CAF_REQUIRE(first <= last);
auto num_elements = static_cast<size_t>(std::distance(first, last));
if ((size() + num_elements) > MaxSize) {
throw std::length_error("limited_vector::insert: too much elements");
......@@ -260,6 +260,6 @@ class limited_vector {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_LIMITED_VECTOR_HPP
#endif // CAF_DETAIL_LIMITED_VECTOR_HPP
......@@ -16,18 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_MAKE_COUNTED_HPP
#define CPPA_DETAIL_MAKE_COUNTED_HPP
#ifndef CAF_DETAIL_MAKE_COUNTED_HPP
#define CAF_DETAIL_MAKE_COUNTED_HPP
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/ref_counted.hpp"
#include "caf/ref_counted.hpp"
#include "cppa/mixin/memory_cached.hpp"
#include "caf/mixin/memory_cached.hpp"
#include "cppa/detail/memory.hpp"
#include "caf/detail/memory.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename T, typename... Ts>
......@@ -45,6 +45,6 @@ make_counted(Ts&&... args) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_MAKE_COUNTED_HPP
#endif // CAF_DETAIL_MAKE_COUNTED_HPP
......@@ -16,17 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_MATCHES_HPP
#define CPPA_DETAIL_MATCHES_HPP
#ifndef CAF_DETAIL_MATCHES_HPP
#define CAF_DETAIL_MATCHES_HPP
#include <numeric>
#include "cppa/message.hpp"
#include "cppa/wildcard_position.hpp"
#include "caf/message.hpp"
#include "caf/wildcard_position.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<wildcard_position, class Tuple, typename...>
......@@ -247,6 +247,6 @@ struct select_matcher<Tuple, detail::type_list<Ts...>> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_MATCHES_HPP
#endif // CAF_DETAIL_MATCHES_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_MEMORY_HPP
#define CPPA_DETAIL_MEMORY_HPP
#ifndef CAF_DETAIL_MEMORY_HPP
#define CAF_DETAIL_MEMORY_HPP
#include <new>
#include <vector>
......@@ -26,14 +26,14 @@
#include <typeinfo>
#include <iostream>
#include "cppa/config.hpp"
#include "cppa/ref_counted.hpp"
#include "caf/config.hpp"
#include "caf/ref_counted.hpp"
namespace cppa {
namespace caf {
class mailbox_element;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
namespace {
......@@ -86,7 +86,7 @@ class instance_wrapper;
template<typename T>
class basic_memory_cache;
#ifdef CPPA_DISABLE_MEM_MANAGEMENT
#ifdef CAF_DISABLE_MEM_MANAGEMENT
class memory {
......@@ -109,7 +109,7 @@ class memory {
};
#else // CPPA_DISABLE_MEM_MANAGEMENT
#else // CAF_DISABLE_MEM_MANAGEMENT
template<typename T>
class basic_memory_cache : public memory_cache {
......@@ -167,9 +167,9 @@ class basic_memory_cache : public memory_cache {
void* downcast(memory_managed* ptr) { return static_cast<T*>(ptr); }
void release_instance(void* vptr) override {
CPPA_REQUIRE(vptr != nullptr);
CAF_REQUIRE(vptr != nullptr);
auto ptr = reinterpret_cast<T*>(vptr);
CPPA_REQUIRE(ptr->outer_memory != nullptr);
CAF_REQUIRE(ptr->outer_memory != nullptr);
auto wptr = static_cast<wrapper*>(ptr->outer_memory);
wptr->destroy();
wptr->deallocate();
......@@ -230,9 +230,9 @@ class memory {
};
#endif // CPPA_DISABLE_MEM_MANAGEMENT
#endif // CAF_DISABLE_MEM_MANAGEMENT
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_MEMORY_HPP
#endif // CAF_DETAIL_MEMORY_HPP
......@@ -16,24 +16,24 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_ABSTRACT_TUPLE_HPP
#define CPPA_ABSTRACT_TUPLE_HPP
#ifndef CAF_ABSTRACT_TUPLE_HPP
#define CAF_ABSTRACT_TUPLE_HPP
#include <string>
#include <iterator>
#include <typeinfo>
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/config.hpp"
#include "cppa/ref_counted.hpp"
#include "cppa/uniform_type_info.hpp"
#include "caf/config.hpp"
#include "caf/ref_counted.hpp"
#include "caf/uniform_type_info.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
#include "cppa/detail/message_iterator.hpp"
#include "caf/detail/message_iterator.hpp"
namespace cppa {
namespace caf {
namespace detail {
class message_data : public ref_counted {
......@@ -166,6 +166,6 @@ constexpr types_only_eq_type types_only_eq;
std::string get_tuple_type_names(const detail::message_data&);
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_ABSTRACT_TUPLE_HPP
#endif // CAF_ABSTRACT_TUPLE_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TUPLE_ITERATOR_HPP
#define CPPA_DETAIL_TUPLE_ITERATOR_HPP
#ifndef CAF_DETAIL_TUPLE_ITERATOR_HPP
#define CAF_DETAIL_TUPLE_ITERATOR_HPP
#include <cstddef>
#include "cppa/config.hpp"
#include "caf/config.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<class Tuple>
......@@ -42,7 +42,7 @@ class message_iterator {
message_iterator& operator=(const message_iterator&) = default;
inline bool operator==(const message_iterator& other) const {
CPPA_REQUIRE(other.m_tuple == other.m_tuple);
CAF_REQUIRE(other.m_tuple == other.m_tuple);
return other.m_pos == m_pos;
}
......@@ -56,7 +56,7 @@ class message_iterator {
}
inline message_iterator& operator--() {
CPPA_REQUIRE(m_pos > 0);
CAF_REQUIRE(m_pos > 0);
--m_pos;
return *this;
}
......@@ -71,12 +71,12 @@ class message_iterator {
}
inline message_iterator operator-(size_t offset) {
CPPA_REQUIRE(m_pos >= offset);
CAF_REQUIRE(m_pos >= offset);
return {m_tuple, m_pos - offset};
}
inline message_iterator& operator-=(size_t offset) {
CPPA_REQUIRE(m_pos >= offset);
CAF_REQUIRE(m_pos >= offset);
m_pos -= offset;
return *this;
}
......@@ -94,6 +94,6 @@ class message_iterator {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TUPLE_ITERATOR_HPP
#endif // CAF_DETAIL_TUPLE_ITERATOR_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_PRODUCER_CONSUMER_LIST_HPP
#define CPPA_PRODUCER_CONSUMER_LIST_HPP
#ifndef CAF_PRODUCER_CONSUMER_LIST_HPP
#define CAF_PRODUCER_CONSUMER_LIST_HPP
#include "cppa/config.hpp"
#include "caf/config.hpp"
#define CPPA_CACHE_LINE_SIZE 64
#define CAF_CACHE_LINE_SIZE 64
#include <chrono>
#include <thread>
......@@ -65,7 +65,7 @@ inline void sleep_for(const chrono::duration<Rep, Period>& rt) {
} // namespace std::this_thread::<anonymous>
#endif
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -101,7 +101,7 @@ class producer_consumer_list {
static constexpr size_type payload_size =
sizeof(pointer) + sizeof(std::atomic<node*>);
static constexpr size_type cline_size = CPPA_CACHE_LINE_SIZE;
static constexpr size_type cline_size = CAF_CACHE_LINE_SIZE;
static constexpr size_type pad_size =
(cline_size * ((payload_size / cline_size) + 1)) - payload_size;
......@@ -113,16 +113,16 @@ class producer_consumer_list {
private:
static_assert(sizeof(node*) < CPPA_CACHE_LINE_SIZE,
"sizeof(node*) >= CPPA_CACHE_LINE_SIZE");
static_assert(sizeof(node*) < CAF_CACHE_LINE_SIZE,
"sizeof(node*) >= CAF_CACHE_LINE_SIZE");
// for one consumer at a time
std::atomic<node*> m_first;
char m_pad1[CPPA_CACHE_LINE_SIZE - sizeof(node*)];
char m_pad1[CAF_CACHE_LINE_SIZE - sizeof(node*)];
// for one producers at a time
std::atomic<node*> m_last;
char m_pad2[CPPA_CACHE_LINE_SIZE - sizeof(node*)];
char m_pad2[CAF_CACHE_LINE_SIZE - sizeof(node*)];
// shared among producers
std::atomic<bool> m_consumer_lock;
......@@ -196,6 +196,6 @@ class producer_consumer_list {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_PRODUCER_CONSUMER_LIST_HPP
#endif // CAF_PRODUCER_CONSUMER_LIST_HPP
......@@ -3,15 +3,15 @@
#include <type_traits>
#include "cppa/duration.hpp"
#include "cppa/blocking_actor.hpp"
#include "cppa/mailbox_element.hpp"
#include "caf/duration.hpp"
#include "caf/blocking_actor.hpp"
#include "caf/mailbox_element.hpp"
#include "cppa/detail/logging.hpp"
#include "caf/detail/logging.hpp"
#include "cppa/policy/scheduling_policy.hpp"
#include "caf/policy/scheduling_policy.hpp"
namespace cppa {
namespace caf {
namespace detail {
// 'imports' all member functions from policies to the actor,
......@@ -28,7 +28,7 @@ class proper_actor_base
template<typename... Ts>
proper_actor_base(Ts&&... args) : super(std::forward<Ts>(args)...) {
CPPA_REQUIRE(this->m_hidden == true);
CAF_REQUIRE(this->m_hidden == true);
}
// grant access to the actor's mailbox
......@@ -42,15 +42,15 @@ class proper_actor_base
message_id mid,
message msg,
execution_unit* eu) override {
CPPA_PUSH_AID(dptr()->id());
CPPA_LOG_DEBUG(CPPA_TARG(sender, to_string)
<< ", " << CPPA_MARG(mid, integer_value) << ", "
<< CPPA_TARG(msg, to_string));
CAF_PUSH_AID(dptr()->id());
CAF_LOG_DEBUG(CAF_TARG(sender, to_string)
<< ", " << CAF_MARG(mid, integer_value) << ", "
<< CAF_TARG(msg, to_string));
scheduling_policy().enqueue(dptr(), sender, mid, msg, eu);
}
inline void launch(bool is_hidden, execution_unit* host) {
CPPA_LOG_TRACE("");
CAF_LOG_TRACE("");
this->hidden(is_hidden);
this->scheduling_policy().launch(this, host);
}
......@@ -128,7 +128,7 @@ class proper_actor_base
inline bool hidden() const { return this->m_hidden; }
void cleanup(uint32_t reason) override {
CPPA_LOG_TRACE(CPPA_ARG(reason));
CAF_LOG_TRACE(CAF_ARG(reason));
if (!hidden()) detail::singletons::get_actor_registry()->dec_running();
super::cleanup(reason);
}
......@@ -196,18 +196,18 @@ class proper_actor
// required by event_based_resume::mixin::resume
bool invoke_message(unique_mailbox_element_pointer& ptr) {
CPPA_LOG_TRACE("");
CAF_LOG_TRACE("");
auto bhvr = this->bhvr_stack().back();
auto mid = this->bhvr_stack().back_id();
return this->invoke_policy().invoke_message(this, ptr, bhvr, mid);
}
bool invoke_message_from_cache() {
CPPA_LOG_TRACE("");
CAF_LOG_TRACE("");
auto bhvr = this->bhvr_stack().back();
auto mid = this->bhvr_stack().back_id();
auto e = this->cache_end();
CPPA_LOG_DEBUG(std::distance(this->cache_begin(), e)
CAF_LOG_DEBUG(std::distance(this->cache_begin(), e)
<< " elements in cache");
for (auto i = this->cache_begin(); i != e; ++i) {
auto im = this->invoke_policy().invoke_message(this, *i, bhvr, mid);
......@@ -304,7 +304,7 @@ class proper_actor<
// timeout handling
uint32_t request_timeout(const duration& d) {
CPPA_REQUIRE(d.valid());
CAF_REQUIRE(d.valid());
auto tid = ++m_next_timeout_id;
auto msg = make_message(timeout_msg{tid});
if (d.is_zero()) {
......@@ -322,7 +322,7 @@ class proper_actor<
inline void handle_timeout(behavior& bhvr, uint32_t timeout_id) {
auto e = m_pending_timeouts.end();
auto i = std::find(m_pending_timeouts.begin(), e, timeout_id);
CPPA_LOG_WARNING_IF(i == e, "ignored unexpected timeout");
CAF_LOG_WARNING_IF(i == e, "ignored unexpected timeout");
if (i != e) {
m_pending_timeouts.erase(i);
bhvr.handle_timeout();
......@@ -359,6 +359,6 @@ class proper_actor<
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // PROPER_ACTOR_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_PSEUDO_TUPLE_HPP
#define CPPA_PSEUDO_TUPLE_HPP
#ifndef CAF_PSEUDO_TUPLE_HPP
#define CAF_PSEUDO_TUPLE_HPP
#include <cstddef>
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
namespace detail {
// tuple-like access to an array of void pointers
......@@ -58,6 +58,6 @@ typename detail::type_at<N, Ts...>::type& get(detail::pseudo_tuple<Ts...>& tv) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_PSEUDO_TUPLE_HPP
#endif // CAF_PSEUDO_TUPLE_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_PURGE_REFS_HPP
#define CPPA_PURGE_REFS_HPP
#ifndef CAF_PURGE_REFS_HPP
#define CAF_PURGE_REFS_HPP
#include <functional>
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename T>
......@@ -55,6 +55,6 @@ struct purge_refs {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_PURGE_REFS_HPP
#endif // CAF_PURGE_REFS_HPP
......@@ -16,19 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_RAW_ACCESS_HPP
#define CPPA_DETAIL_RAW_ACCESS_HPP
#include "cppa/actor.hpp"
#include "cppa/group.hpp"
#include "cppa/channel.hpp"
#include "cppa/actor_addr.hpp"
#include "cppa/abstract_actor.hpp"
#include "cppa/abstract_group.hpp"
#include "cppa/abstract_channel.hpp"
namespace cppa {
#ifndef CAF_DETAIL_RAW_ACCESS_HPP
#define CAF_DETAIL_RAW_ACCESS_HPP
#include "caf/actor.hpp"
#include "caf/group.hpp"
#include "caf/channel.hpp"
#include "caf/actor_addr.hpp"
#include "caf/abstract_actor.hpp"
#include "caf/abstract_group.hpp"
#include "caf/abstract_channel.hpp"
namespace caf {
namespace detail {
class raw_access {
......@@ -73,6 +72,6 @@ class raw_access {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_RAW_ACCESS_HPP
#endif // CAF_DETAIL_RAW_ACCESS_HPP
......@@ -16,16 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
#define CPPA_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
#ifndef CAF_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
#define CAF_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
#include "cppa/on.hpp"
#include "cppa/skip_message.hpp"
#include "cppa/system_messages.hpp"
#include "caf/on.hpp"
#include "caf/skip_message.hpp"
#include "caf/system_messages.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename Actor, typename... Fs>
......@@ -43,6 +43,6 @@ behavior fs2bhvr(Actor* self, Fs... fs) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
#endif // CAF_DETAIL_RESPONSE_FUTURE_DETAIL_HPP
......@@ -53,13 +53,13 @@
*
\******************************************************************************/
#ifndef CPPA_DETAIL_RIPEMD_160_HPP
#define CPPA_DETAIL_RIPEMD_160_HPP
#ifndef CAF_DETAIL_RIPEMD_160_HPP
#define CAF_DETAIL_RIPEMD_160_HPP
#include <array>
#include <string>
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -68,6 +68,6 @@ namespace detail {
void ripemd_160(std::array<uint8_t, 20>& storage, const std::string& data);
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_RIPEMD_160_HPP
#endif // CAF_DETAIL_RIPEMD_160_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_SPLIT_HPP
#define CPPA_DETAIL_SPLIT_HPP
#ifndef CAF_DETAIL_SPLIT_HPP
#define CAF_DETAIL_SPLIT_HPP
#include <cmath> // fabs
#include <string>
......@@ -27,9 +27,9 @@
#include <algorithm>
#include <type_traits>
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -57,6 +57,6 @@ safe_equal(const T& lhs, const U& rhs) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_SPLIT_HPP
#endif // CAF_DETAIL_SPLIT_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_SCOPE_GUARD_HPP
#define CPPA_DETAIL_SCOPE_GUARD_HPP
#ifndef CAF_DETAIL_SCOPE_GUARD_HPP
#define CAF_DETAIL_SCOPE_GUARD_HPP
#include <utility>
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -71,6 +71,6 @@ scope_guard<Fun> make_scope_guard(Fun f) {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_SCOPE_GUARD_HPP
#endif // CAF_DETAIL_SCOPE_GUARD_HPP
......@@ -16,13 +16,13 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_SHARED_SPINLOCK_HPP
#define CPPA_SHARED_SPINLOCK_HPP
#ifndef CAF_SHARED_SPINLOCK_HPP
#define CAF_SHARED_SPINLOCK_HPP
#include <atomic>
#include <cstddef>
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -52,6 +52,6 @@ class shared_spinlock {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_SHARED_SPINLOCK_HPP
#endif // CAF_SHARED_SPINLOCK_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_SINGLE_READER_QUEUE_HPP
#define CPPA_SINGLE_READER_QUEUE_HPP
#ifndef CAF_SINGLE_READER_QUEUE_HPP
#define CAF_SINGLE_READER_QUEUE_HPP
#include <list>
#include <mutex>
......@@ -25,9 +25,9 @@
#include <memory>
#include <condition_variable> // std::cv_status
#include "cppa/config.hpp"
#include "caf/config.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -58,7 +58,7 @@ enum class enqueue_result {
/**
* @brief An intrusive, thread-safe queue implementation.
* @note For implementation details see
* http://libcppa.blogspot.com/2011/04/mailbox-part-1.html
* http://libcaf.blogspot.com/2011/04/mailbox-part-1.html
*/
template<typename T, class Delete = std::default_delete<T>>
class single_reader_queue {
......@@ -137,7 +137,7 @@ class single_reader_queue {
*/
inline bool can_fetch_more() {
auto ptr = m_stack.load();
CPPA_REQUIRE(ptr != nullptr);
CAF_REQUIRE(ptr != nullptr);
return !is_dummy(ptr);
}
......@@ -145,7 +145,7 @@ class single_reader_queue {
* @warning call only from the reader (owner)
*/
inline bool empty() {
CPPA_REQUIRE(m_stack.load() != nullptr);
CAF_REQUIRE(m_stack.load() != nullptr);
return (!m_head && is_dummy(m_stack.load()));
}
......@@ -225,7 +225,7 @@ class single_reader_queue {
return false;
}
// should be unreachable
CPPA_CRITICAL("invalid result of enqueue()");
CAF_CRITICAL("invalid result of enqueue()");
}
template<class Mutex, class CondVar, class TimePoint>
......@@ -250,7 +250,7 @@ class single_reader_queue {
template<class Mutex, class CondVar>
void synchronized_await(Mutex& mtx, CondVar& cv) {
CPPA_REQUIRE(!closed());
CAF_REQUIRE(!closed());
if (try_block()) {
std::unique_lock<Mutex> guard(mtx);
while (blocked()) cv.wait(guard);
......@@ -259,7 +259,7 @@ class single_reader_queue {
template<class Mutex, class CondVar, class TimePoint>
bool synchronized_await(Mutex& mtx, CondVar& cv, const TimePoint& timeout) {
CPPA_REQUIRE(!closed());
CAF_REQUIRE(!closed());
if (try_block()) {
std::unique_lock<Mutex> guard(mtx);
while (blocked()) {
......@@ -284,11 +284,11 @@ class single_reader_queue {
// atomically sets m_stack back and enqueues all elements to the cache
bool fetch_new_data(pointer end_ptr) {
CPPA_REQUIRE(m_head == nullptr);
CPPA_REQUIRE(!end_ptr || end_ptr == stack_empty_dummy());
CAF_REQUIRE(m_head == nullptr);
CAF_REQUIRE(!end_ptr || end_ptr == stack_empty_dummy());
pointer e = m_stack.load();
// must not be called on a closed queue
CPPA_REQUIRE(e != nullptr);
CAF_REQUIRE(e != nullptr);
// it's enough to check this once, since only the owner is allowed
// to close the queue and only the owner is allowed to call this
// member function
......@@ -296,11 +296,11 @@ class single_reader_queue {
if (m_stack.compare_exchange_weak(e, end_ptr)) {
if (is_dummy(e)) {
// only use-case for this is closing a queue
CPPA_REQUIRE(end_ptr == nullptr);
CAF_REQUIRE(end_ptr == nullptr);
return false;
}
while (e) {
CPPA_REQUIRE(!is_dummy(e));
CAF_REQUIRE(!is_dummy(e));
auto next = e->next;
e->next = m_head;
m_head = e;
......@@ -361,6 +361,6 @@ class single_reader_queue {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_SINGLE_READER_QUEUE_HPP
#endif // CAF_SINGLE_READER_QUEUE_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_SINGLETON_MIXIN_HPP
#define CPPA_SINGLETON_MIXIN_HPP
#ifndef CAF_SINGLETON_MIXIN_HPP
#define CAF_SINGLETON_MIXIN_HPP
#include <utility>
namespace cppa {
namespace caf {
namespace detail {
class singletons;
......@@ -64,6 +64,6 @@ class singleton_mixin<Derived, void> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_SINGLETON_MIXIN_HPP
#endif // CAF_SINGLETON_MIXIN_HPP
......@@ -16,15 +16,15 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_SINGLETON_MANAGER_HPP
#define CPPA_SINGLETON_MANAGER_HPP
#ifndef CAF_SINGLETON_MANAGER_HPP
#define CAF_SINGLETON_MANAGER_HPP
#include <atomic>
#include <cstddef> // size_t
#include "cppa/fwd.hpp"
#include "caf/fwd.hpp"
namespace cppa {
namespace caf {
namespace detail {
class abstract_singleton {
......@@ -146,6 +146,6 @@ class singletons {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_SINGLETON_MANAGER_HPP
#endif // CAF_SINGLETON_MANAGER_HPP
......@@ -16,21 +16,21 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_SYNC_REQUEST_BOUNCER_HPP
#define CPPA_DETAIL_SYNC_REQUEST_BOUNCER_HPP
#ifndef CAF_DETAIL_SYNC_REQUEST_BOUNCER_HPP
#define CAF_DETAIL_SYNC_REQUEST_BOUNCER_HPP
#include <cstdint>
namespace cppa {
namespace caf {
class actor_addr;
class message_id;
class local_actor;
class mailbox_element;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
struct sync_request_bouncer {
......@@ -42,6 +42,6 @@ struct sync_request_bouncer {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_SYNC_REQUEST_BOUNCER_HPP
#endif // CAF_DETAIL_SYNC_REQUEST_BOUNCER_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TBIND_HPP
#define CPPA_DETAIL_TBIND_HPP
#ifndef CAF_DETAIL_TBIND_HPP
#define CAF_DETAIL_TBIND_HPP
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -36,6 +36,6 @@ struct tbind {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TBIND_HPP
#endif // CAF_DETAIL_TBIND_HPP
......@@ -16,13 +16,13 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TO_UNIFORM_NAME_HPP
#define CPPA_DETAIL_TO_UNIFORM_NAME_HPP
#ifndef CAF_DETAIL_TO_UNIFORM_NAME_HPP
#define CAF_DETAIL_TO_UNIFORM_NAME_HPP
#include <string>
#include <typeinfo>
namespace cppa {
namespace caf {
namespace detail {
std::string to_uniform_name(const std::string& demangled_name);
......@@ -34,6 +34,6 @@ inline std::string to_uniform_name() {
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TO_UNIFORM_NAME_HPP
#endif // CAF_DETAIL_TO_UNIFORM_NAME_HPP
......@@ -16,16 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TUPLE_DUMMY_HPP
#define CPPA_DETAIL_TUPLE_DUMMY_HPP
#ifndef CAF_DETAIL_TUPLE_DUMMY_HPP
#define CAF_DETAIL_TUPLE_DUMMY_HPP
#include "cppa/fwd.hpp"
#include "caf/fwd.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
#include "cppa/detail/message_iterator.hpp"
#include "caf/detail/message_iterator.hpp"
namespace cppa {
namespace caf {
namespace detail {
struct tuple_dummy {
......@@ -49,6 +49,6 @@ struct tuple_dummy {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TUPLE_DUMMY_HPP
#endif // CAF_DETAIL_TUPLE_DUMMY_HPP
......@@ -16,18 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TUPLE_VALS_HPP
#define CPPA_DETAIL_TUPLE_VALS_HPP
#ifndef CAF_DETAIL_TUPLE_VALS_HPP
#define CAF_DETAIL_TUPLE_VALS_HPP
#include <tuple>
#include <stdexcept>
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
#include "cppa/detail/types_array.hpp"
#include "cppa/detail/message_data.hpp"
#include "caf/detail/types_array.hpp"
#include "caf/detail/message_data.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<size_t Pos, size_t Max, bool InRange = (Pos < Max)>
......@@ -84,17 +84,17 @@ class tuple_vals : public message_data {
tuple_vals* copy() const { return new tuple_vals(*this); }
const void* at(size_t pos) const {
CPPA_REQUIRE(pos < size());
CAF_REQUIRE(pos < size());
return tup_ptr_access<0, sizeof...(Ts)>::get(pos, m_data);
}
void* mutable_at(size_t pos) {
CPPA_REQUIRE(pos < size());
CAF_REQUIRE(pos < size());
return const_cast<void*>(at(pos));
}
const uniform_type_info* type_at(size_t pos) const {
CPPA_REQUIRE(pos < size());
CAF_REQUIRE(pos < size());
return m_types[pos];
}
......@@ -129,6 +129,6 @@ template<typename... Ts>
types_array<Ts...> tuple_vals<Ts...>::m_types;
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TUPLE_VALS_HPP
#endif // CAF_DETAIL_TUPLE_VALS_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TUPLE_ZIP_HPP
#define CPPA_DETAIL_TUPLE_ZIP_HPP
#ifndef CAF_DETAIL_TUPLE_ZIP_HPP
#define CAF_DETAIL_TUPLE_ZIP_HPP
#include <tuple>
#include "cppa/detail/int_list.hpp"
#include "caf/detail/int_list.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename F, long... Is, class Tup0, class Tup1>
......@@ -33,6 +33,6 @@ auto tuple_zip(F& f, detail::int_list<Is...>, Tup0&& tup0, Tup1&& tup1)
}
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TUPLE_ZIP_HPP
#endif // CAF_DETAIL_TUPLE_ZIP_HPP
......@@ -16,18 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TYPE_LIST_HPP
#define CPPA_DETAIL_TYPE_LIST_HPP
#ifndef CAF_DETAIL_TYPE_LIST_HPP
#define CAF_DETAIL_TYPE_LIST_HPP
#include <typeinfo>
#include <type_traits>
#include "cppa/unit.hpp"
#include "caf/unit.hpp"
#include "cppa/detail/tbind.hpp"
#include "cppa/detail/type_pair.hpp"
#include "caf/detail/tbind.hpp"
#include "caf/detail/type_pair.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -1061,14 +1061,14 @@ struct tl_equal {
*/
} // namespace detail
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
template<size_t N, typename... Ts>
typename detail::tl_at<detail::type_list<Ts...>, N>::type
get(const detail::type_list<Ts...>&) {
return {};
}
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TYPE_LIST_HPP
#endif // CAF_DETAIL_TYPE_LIST_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_TYPE_PAIR_HPP
#define CPPA_TYPE_PAIR_HPP
#ifndef CAF_TYPE_PAIR_HPP
#define CAF_TYPE_PAIR_HPP
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -52,6 +52,6 @@ struct is_type_pair<type_pair<First, Second>> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_TYPE_PAIR_HPP
#endif // CAF_TYPE_PAIR_HPP
......@@ -16,20 +16,20 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TYPE_TRAITS_HPP
#define CPPA_DETAIL_TYPE_TRAITS_HPP
#ifndef CAF_DETAIL_TYPE_TRAITS_HPP
#define CAF_DETAIL_TYPE_TRAITS_HPP
#include <string>
#include <functional>
#include <type_traits>
#include "cppa/optional.hpp"
#include "caf/optional.hpp"
#include "cppa/fwd.hpp"
#include "caf/fwd.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -529,6 +529,6 @@ struct type_at<0, T0, Ts...> {
*/
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TYPE_TRAITS_HPP
#endif // CAF_DETAIL_TYPE_TRAITS_HPP
......@@ -16,23 +16,23 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_TYPED_ACTOR_DETAIL_HPP
#define CPPA_TYPED_ACTOR_DETAIL_HPP
#ifndef CAF_TYPED_ACTOR_DETAIL_HPP
#define CAF_TYPED_ACTOR_DETAIL_HPP
#include <tuple>
#include "cppa/replies_to.hpp"
#include "caf/replies_to.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
namespace cppa { // forward declarations
namespace caf { // forward declarations
template<typename R>
class typed_continue_helper;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
template<typename R, typename T>
......@@ -134,6 +134,6 @@ struct deduce_output_type {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_TYPED_ACTOR_DETAIL_HPP
#endif // CAF_TYPED_ACTOR_DETAIL_HPP
......@@ -16,27 +16,27 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_TYPES_ARRAY_HPP
#define CPPA_DETAIL_TYPES_ARRAY_HPP
#ifndef CAF_DETAIL_TYPES_ARRAY_HPP
#define CAF_DETAIL_TYPES_ARRAY_HPP
#include <atomic>
#include <typeinfo>
#include "cppa/detail/type_list.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/type_list.hpp"
#include "caf/detail/type_traits.hpp"
// forward declarations
namespace cppa {
namespace caf {
class uniform_type_info;
const uniform_type_info* uniform_typeid(const std::type_info&);
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
enum type_info_impl {
std_tinf,
cppa_tinf
caf_tinf
};
// some metaprogramming utility
......@@ -58,21 +58,21 @@ struct ta_util<std_tinf, true, anything> {
};
template<typename T>
struct ta_util<cppa_tinf, true, T> {
struct ta_util<caf_tinf, true, T> {
static inline const uniform_type_info* get() {
return uniform_typeid(typeid(T));
}
};
template<>
struct ta_util<cppa_tinf, true, anything> {
struct ta_util<caf_tinf, true, anything> {
static inline const uniform_type_info* get() {
return nullptr;
}
};
template<typename T>
struct ta_util<cppa_tinf, false, T> {
struct ta_util<caf_tinf, false, T> {
static inline const uniform_type_info* get() {
return nullptr;
}
......@@ -88,7 +88,7 @@ struct types_array_impl {
inline bool is_pure() const { return true; }
// all types are builtin, perform lookup on constuction
const uniform_type_info* data[sizeof...(T)];
types_array_impl() : data{ta_util<cppa_tinf, true, T>::get()...} {}
types_array_impl() : data{ta_util<caf_tinf, true, T>::get()...} {}
inline const uniform_type_info* operator[](size_t p) const {
return data[p];
}
......@@ -216,6 +216,6 @@ const std::type_info* static_type_list<T0, T1, Ts...>::list =
&typeid(type_list<T0, T1, Ts...>);
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_TYPES_ARRAY_HPP
#endif // CAF_DETAIL_TYPES_ARRAY_HPP
......@@ -16,14 +16,14 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_UNBOXED_HPP
#define CPPA_DETAIL_UNBOXED_HPP
#ifndef CAF_DETAIL_UNBOXED_HPP
#define CAF_DETAIL_UNBOXED_HPP
#include <memory>
#include "cppa/detail/wrapped.hpp"
#include "caf/detail/wrapped.hpp"
namespace cppa {
namespace caf {
namespace detail {
template<typename T>
......@@ -57,6 +57,6 @@ struct unboxed<detail::wrapped<T>(*)()> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_UNBOXED_HPP
#endif // CAF_DETAIL_UNBOXED_HPP
......@@ -16,8 +16,8 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_UNIFORM_TYPE_INFO_MAP_HPP
#define CPPA_UNIFORM_TYPE_INFO_MAP_HPP
#ifndef CAF_UNIFORM_TYPE_INFO_MAP_HPP
#define CAF_UNIFORM_TYPE_INFO_MAP_HPP
#include <set>
#include <map>
......@@ -25,25 +25,25 @@
#include <utility>
#include <type_traits>
#include "cppa/fwd.hpp"
#include "caf/fwd.hpp"
#include "cppa/atom.hpp"
#include "cppa/unit.hpp"
#include "cppa/node_id.hpp"
#include "cppa/duration.hpp"
#include "cppa/accept_handle.hpp"
#include "cppa/system_messages.hpp"
#include "cppa/connection_handle.hpp"
#include "caf/atom.hpp"
#include "caf/unit.hpp"
#include "caf/node_id.hpp"
#include "caf/duration.hpp"
#include "caf/accept_handle.hpp"
#include "caf/system_messages.hpp"
#include "caf/connection_handle.hpp"
#include "cppa/detail/type_list.hpp"
#include "caf/detail/type_list.hpp"
#include "cppa/detail/singleton_mixin.hpp"
#include "caf/detail/singleton_mixin.hpp"
namespace cppa {
namespace caf {
class uniform_type_info;
} // namespace cppa
} // namespace caf
namespace cppa {
namespace caf {
namespace detail {
const char* mapped_name_by_decorated_name(const char* decorated_name);
......@@ -96,6 +96,6 @@ class uniform_type_info_map {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_UNIFORM_TYPE_INFO_MAP_HPP
#endif // CAF_UNIFORM_TYPE_INFO_MAP_HPP
......@@ -16,29 +16,28 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_VARIANT_DATA_HPP
#define CPPA_DETAIL_VARIANT_DATA_HPP
#ifndef CAF_DETAIL_VARIANT_DATA_HPP
#define CAF_DETAIL_VARIANT_DATA_HPP
#include <stdexcept>
#include <type_traits>
#include "cppa/unit.hpp"
#include "cppa/none.hpp"
#include "caf/unit.hpp"
#include "caf/none.hpp"
#define CPPA_VARIANT_DATA_CONCAT(x, y) x ## y
#define CAF_VARIANT_DATA_CONCAT(x, y) x ## y
#define CPPA_VARIANT_DATA_GETTER(pos) \
inline CPPA_VARIANT_DATA_CONCAT(T, pos) & \
#define CAF_VARIANT_DATA_GETTER(pos) \
inline CAF_VARIANT_DATA_CONCAT(T, pos) & \
get(std::integral_constant<int, pos >) { \
return CPPA_VARIANT_DATA_CONCAT(v, pos) ; \
return CAF_VARIANT_DATA_CONCAT(v, pos) ; \
} \
inline const CPPA_VARIANT_DATA_CONCAT(T, pos) & \
inline const CAF_VARIANT_DATA_CONCAT(T, pos) & \
get(std::integral_constant<int, pos >) const { \
return CPPA_VARIANT_DATA_CONCAT(v, pos) ; \
return CAF_VARIANT_DATA_CONCAT(v, pos) ; \
}
namespace cppa {
namespace caf {
namespace detail {
template<typename T0, typename T1 = unit_t, typename T2 = unit_t,
......@@ -64,27 +63,27 @@ struct variant_data {
~variant_data() { }
CPPA_VARIANT_DATA_GETTER(0)
CPPA_VARIANT_DATA_GETTER(1)
CPPA_VARIANT_DATA_GETTER(2)
CPPA_VARIANT_DATA_GETTER(3)
CPPA_VARIANT_DATA_GETTER(4)
CPPA_VARIANT_DATA_GETTER(5)
CPPA_VARIANT_DATA_GETTER(6)
CPPA_VARIANT_DATA_GETTER(7)
CPPA_VARIANT_DATA_GETTER(8)
CPPA_VARIANT_DATA_GETTER(9)
CPPA_VARIANT_DATA_GETTER(10)
CPPA_VARIANT_DATA_GETTER(11)
CPPA_VARIANT_DATA_GETTER(12)
CPPA_VARIANT_DATA_GETTER(13)
CPPA_VARIANT_DATA_GETTER(14)
CPPA_VARIANT_DATA_GETTER(15)
CPPA_VARIANT_DATA_GETTER(16)
CPPA_VARIANT_DATA_GETTER(17)
CPPA_VARIANT_DATA_GETTER(18)
CPPA_VARIANT_DATA_GETTER(19)
CPPA_VARIANT_DATA_GETTER(20)
CAF_VARIANT_DATA_GETTER(0)
CAF_VARIANT_DATA_GETTER(1)
CAF_VARIANT_DATA_GETTER(2)
CAF_VARIANT_DATA_GETTER(3)
CAF_VARIANT_DATA_GETTER(4)
CAF_VARIANT_DATA_GETTER(5)
CAF_VARIANT_DATA_GETTER(6)
CAF_VARIANT_DATA_GETTER(7)
CAF_VARIANT_DATA_GETTER(8)
CAF_VARIANT_DATA_GETTER(9)
CAF_VARIANT_DATA_GETTER(10)
CAF_VARIANT_DATA_GETTER(11)
CAF_VARIANT_DATA_GETTER(12)
CAF_VARIANT_DATA_GETTER(13)
CAF_VARIANT_DATA_GETTER(14)
CAF_VARIANT_DATA_GETTER(15)
CAF_VARIANT_DATA_GETTER(16)
CAF_VARIANT_DATA_GETTER(17)
CAF_VARIANT_DATA_GETTER(18)
CAF_VARIANT_DATA_GETTER(19)
CAF_VARIANT_DATA_GETTER(20)
private:
......@@ -102,6 +101,6 @@ struct variant_data_destructor {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_VARIANT_DATA_HPP
#endif // CAF_DETAIL_VARIANT_DATA_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_WRAPPED_HPP
#define CPPA_DETAIL_WRAPPED_HPP
#ifndef CAF_DETAIL_WRAPPED_HPP
#define CAF_DETAIL_WRAPPED_HPP
namespace cppa {
namespace caf {
namespace detail {
/**
......@@ -39,6 +39,6 @@ struct wrapped<wrapped<T>> {
};
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_WRAPPED_HPP
#endif // CAF_DETAIL_WRAPPED_HPP
......@@ -16,15 +16,15 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DURATION_HPP
#define CPPA_DURATION_HPP
#ifndef CAF_DURATION_HPP
#define CAF_DURATION_HPP
#include <string>
#include <chrono>
#include <cstdint>
#include <stdexcept>
namespace cppa {
namespace caf {
/**
* @brief SI time units to specify timeouts.
......@@ -70,7 +70,7 @@ struct ratio_to_time_unit_helper<60, 1> {
/**
* @brief Converts an STL time period to a
* {@link cppa::detail::time_unit time_unit}.
* {@link caf::detail::time_unit time_unit}.
*/
template<typename Period>
constexpr time_unit get_time_unit_from_period() {
......@@ -78,7 +78,7 @@ constexpr time_unit get_time_unit_from_period() {
}
/**
* @brief Time duration consisting of a {@link cppa::detail::time_unit
* @brief Time duration consisting of a {@link caf::detail::time_unit
* time_unit}
* and a 64 bit unsigned integer.
*/
......@@ -98,7 +98,7 @@ class duration {
duration(std::chrono::duration<Rep, Period> d)
: unit(get_time_unit_from_period<Period>()), count(rd(d)) {
static_assert(get_time_unit_from_period<Period>() != time_unit::invalid,
"cppa::duration supports only minutes, seconds, "
"caf::duration supports only minutes, seconds, "
"milliseconds or microseconds");
}
......@@ -158,32 +158,32 @@ inline bool operator!=(const duration& lhs, const duration& rhs) {
return !(lhs == rhs);
}
} // namespace cppa
} // namespace caf
/**
* @relates cppa::duration
* @relates caf::duration
*/
template<class Clock, class Duration>
std::chrono::time_point<Clock, Duration>&
operator+=(std::chrono::time_point<Clock, Duration>& lhs,
const cppa::duration& rhs) {
const caf::duration& rhs) {
switch (rhs.unit) {
case cppa::time_unit::seconds:
case caf::time_unit::seconds:
lhs += std::chrono::seconds(rhs.count);
break;
case cppa::time_unit::milliseconds:
case caf::time_unit::milliseconds:
lhs += std::chrono::milliseconds(rhs.count);
break;
case cppa::time_unit::microseconds:
case caf::time_unit::microseconds:
lhs += std::chrono::microseconds(rhs.count);
break;
case cppa::time_unit::invalid:
case caf::time_unit::invalid:
break;
}
return lhs;
}
#endif // CPPA_DURATION_HPP
#endif // CAF_DURATION_HPP
......@@ -16,25 +16,25 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_UNTYPED_ACTOR_HPP
#define CPPA_UNTYPED_ACTOR_HPP
#ifndef CAF_UNTYPED_ACTOR_HPP
#define CAF_UNTYPED_ACTOR_HPP
#include <type_traits>
#include "cppa/on.hpp"
#include "cppa/extend.hpp"
#include "cppa/local_actor.hpp"
#include "cppa/response_handle.hpp"
#include "caf/on.hpp"
#include "caf/extend.hpp"
#include "caf/local_actor.hpp"
#include "caf/response_handle.hpp"
#include "cppa/mixin/sync_sender.hpp"
#include "cppa/mixin/mailbox_based.hpp"
#include "cppa/mixin/functor_based.hpp"
#include "cppa/mixin/behavior_stack_based.hpp"
#include "caf/mixin/sync_sender.hpp"
#include "caf/mixin/mailbox_based.hpp"
#include "caf/mixin/functor_based.hpp"
#include "caf/mixin/behavior_stack_based.hpp"
#include "cppa/detail/logging.hpp"
#include "cppa/detail/response_handle_util.hpp"
#include "caf/detail/logging.hpp"
#include "caf/detail/response_handle_util.hpp"
namespace cppa {
namespace caf {
/**
* @brief A cooperatively scheduled, event-based actor implementation.
......@@ -89,6 +89,6 @@ class event_based_actor::functor_based
};
} // namespace cppa
} // namespace caf
#endif // CPPA_UNTYPED_ACTOR_HPP
#endif // CAF_UNTYPED_ACTOR_HPP
......@@ -16,28 +16,28 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_EXCEPTION_HPP
#define CPPA_EXCEPTION_HPP
#ifndef CAF_EXCEPTION_HPP
#define CAF_EXCEPTION_HPP
#include <string>
#include <cstdint>
#include <exception>
#include <stdexcept>
namespace cppa {
namespace caf {
/**
* @brief Base class for exceptions.
*/
class cppa_exception : public std::exception {
class caf_exception : public std::exception {
public:
~cppa_exception();
~caf_exception();
cppa_exception() = delete;
cppa_exception(const cppa_exception&) = default;
cppa_exception& operator=(const cppa_exception&) = default;
caf_exception() = delete;
caf_exception(const caf_exception&) = default;
caf_exception& operator=(const caf_exception&) = default;
/**
* @brief Returns the error message.
......@@ -51,13 +51,13 @@ class cppa_exception : public std::exception {
* @brief Creates an exception with the error string @p what_str.
* @param what_str Error message as rvalue string.
*/
cppa_exception(std::string&& what_str);
caf_exception(std::string&& what_str);
/**
* @brief Creates an exception with the error string @p what_str.
* @param what_str Error message as string.
*/
cppa_exception(const std::string& what_str);
caf_exception(const std::string& what_str);
private:
......@@ -68,7 +68,7 @@ class cppa_exception : public std::exception {
/**
* @brief Thrown if an actor finished execution.
*/
class actor_exited : public cppa_exception {
class actor_exited : public caf_exception {
public:
......@@ -96,9 +96,9 @@ class actor_exited : public cppa_exception {
* @brief Thrown to indicate that either an actor publishing failed or
* the middleman was unable to connect to a remote host.
*/
class network_error : public cppa_exception {
class network_error : public caf_exception {
using super = cppa_exception;
using super = caf_exception;
public:
......@@ -133,6 +133,6 @@ inline uint32_t actor_exited::reason() const noexcept {
return m_reason;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_EXCEPTION_HPP
#endif // CAF_EXCEPTION_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_DETAIL_EXECUTION_UNIT_HPP
#define CPPA_DETAIL_EXECUTION_UNIT_HPP
#ifndef CAF_DETAIL_EXECUTION_UNIT_HPP
#define CAF_DETAIL_EXECUTION_UNIT_HPP
namespace cppa {
namespace caf {
class resumable;
......@@ -41,6 +41,6 @@ class execution_unit {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_DETAIL_EXECUTION_UNIT_HPP
#endif // CAF_DETAIL_EXECUTION_UNIT_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_EXIT_REASON_HPP
#define CPPA_EXIT_REASON_HPP
#ifndef CAF_EXIT_REASON_HPP
#define CAF_EXIT_REASON_HPP
#include <cstdint>
namespace cppa {
namespace caf {
namespace exit_reason {
/**
......@@ -87,6 +87,6 @@ static constexpr uint32_t user_defined = 0x10000;
const char* as_string(uint32_t value);
} // namespace exit_reason
} // namespace cppa
} // namespace caf
#endif // CPPA_EXIT_REASON_HPP
#endif // CAF_EXIT_REASON_HPP
......@@ -16,10 +16,10 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_MIXED_HPP
#define CPPA_MIXED_HPP
#ifndef CAF_MIXED_HPP
#define CAF_MIXED_HPP
namespace cppa {
namespace caf {
namespace detail {
......@@ -58,6 +58,6 @@ struct extend {
};
} // namespace cppa
} // namespace caf
#endif // CPPA_MIXED_HPP
#endif // CAF_MIXED_HPP
......@@ -16,22 +16,22 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_FROM_STRING_HPP
#define CPPA_FROM_STRING_HPP
#ifndef CAF_FROM_STRING_HPP
#define CAF_FROM_STRING_HPP
#include <string>
#include <typeinfo>
#include <exception>
#include "cppa/uniform_type_info.hpp"
#include "caf/uniform_type_info.hpp"
namespace cppa {
namespace caf {
/**
* @brief Converts a string created by {@link cppa::to_string to_string}
* @brief Converts a string created by {@link caf::to_string to_string}
* to its original value.
* @param what String representation of a serialized value.
* @returns An {@link cppa::object object} instance that contains
* @returns An {@link caf::object object} instance that contains
* the deserialized value.
*/
uniform_value from_string_impl(const std::string& what);
......@@ -60,6 +60,6 @@ optional<T> from_string(const std::string& what) {
return none;
}
} // namespace cppa
} // namespace caf
#endif // CPPA_FROM_STRING_HPP
#endif // CAF_FROM_STRING_HPP
......@@ -16,12 +16,12 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_FWD_HPP
#define CPPA_FWD_HPP
#ifndef CAF_FWD_HPP
#define CAF_FWD_HPP
#include <cstdint>
namespace cppa {
namespace caf {
template<class>
class intrusive_ptr;
......@@ -82,6 +82,6 @@ namespace detail {
class uniform_type_info_map;
} // namespace detail
} // namespace cppa
} // namespace caf
#endif // CPPA_FWD_HPP
#endif // CAF_FWD_HPP
......@@ -16,17 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_GET_HPP
#define CPPA_GET_HPP
#ifndef CAF_GET_HPP
#define CAF_GET_HPP
#include <tuple>
#include <cstddef>
#include "cppa/util/type_traits.hpp"
#include "cppa/util/rebindable_reference.hpp"
#include "caf/util/type_traits.hpp"
#include "caf/util/rebindable_reference.hpp"
namespace cppa {
namespace caf {
// forward declaration of details
namespace detail {
......@@ -95,6 +94,6 @@ inline auto get_cv_aware(const Tuple& tup)
return util::unwrap_ref(get<Pos>(tup));
}
} // namespace cppa
} // namespace caf
#endif // CPPA_GET_HPP
#endif // CAF_GET_HPP
......@@ -16,18 +16,18 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_GROUP_HPP
#define CPPA_GROUP_HPP
#ifndef CAF_GROUP_HPP
#define CAF_GROUP_HPP
#include "cppa/intrusive_ptr.hpp"
#include "caf/intrusive_ptr.hpp"
#include "cppa/fwd.hpp"
#include "cppa/abstract_group.hpp"
#include "caf/fwd.hpp"
#include "caf/abstract_group.hpp"
#include "cppa/detail/comparable.hpp"
#include "cppa/detail/type_traits.hpp"
#include "caf/detail/comparable.hpp"
#include "caf/detail/type_traits.hpp"
namespace cppa {
namespace caf {
class channel;
class message;
......@@ -123,6 +123,6 @@ class group : detail::comparable<group>,
};
} // namespace cppa
} // namespace caf
#endif // CPPA_GROUP_HPP
#endif // CAF_GROUP_HPP
......@@ -16,18 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_INTRUSIVE_PTR_HPP
#define CPPA_INTRUSIVE_PTR_HPP
#ifndef CAF_INTRUSIVE_PTR_HPP
#define CAF_INTRUSIVE_PTR_HPP
#include <cstddef>
#include <algorithm>
#include <stdexcept>
#include <type_traits>
#include "cppa/detail/comparable.hpp"
#include "caf/detail/comparable.hpp"
namespace cppa {
namespace caf {
/**
* @brief An intrusive, reference counting smart pointer impelementation.
......@@ -173,6 +172,6 @@ inline bool operator!=(const intrusive_ptr<X>& lhs, const intrusive_ptr<Y>& rhs)
return !(lhs == rhs);
}
} // namespace cppa
} // namespace caf
#endif // CPPA_INTRUSIVE_PTR_HPP
#endif // CAF_INTRUSIVE_PTR_HPP
......@@ -16,13 +16,16 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_IO_ALL_HPP
#define CPPA_IO_ALL_HPP
#ifndef CAF_IO_ALL_HPP
#define CAF_IO_ALL_HPP
#include "cppa/io/broker.hpp"
#include "cppa/io/middleman.hpp"
#include "cppa/io/max_msg_size.hpp"
#include "cppa/io/basp_broker.hpp"
#include "cppa/io/remote_actor_proxy.hpp"
#include "broker.hpp"
#include "spawn_io.hpp"
#include "middleman.hpp"
#include "max_msg_size.hpp"
#include "publish_impl.hpp"
#include "remote_actor.hpp"
#include "receive_policy.hpp"
#include "publish_local_groups.hpp"
#endif // CPPA_IO_ALL_HPP
#endif // CAF_IO_ALL_HPP
......@@ -16,18 +16,17 @@
* accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt *
\******************************************************************************/
#ifndef CPPA_IO_BASP_HPP
#define CPPA_IO_BASP_HPP
#ifndef CAF_IO_BASP_HPP
#define CAF_IO_BASP_HPP
#include <cstdint>
#include "cppa/node_id.hpp"
#include "cppa/abstract_actor.hpp"
#include "cppa/binary_serializer.hpp"
#include "cppa/binary_deserializer.hpp"
#include "caf/node_id.hpp"
#include "caf/abstract_actor.hpp"
#include "caf/binary_serializer.hpp"
#include "caf/binary_deserializer.hpp"
namespace cppa {
namespace caf {
namespace io {
namespace basp {
......@@ -213,6 +212,6 @@ inline bool valid(header& hdr) {
} // namespace basp
} // namespace io
} // namespace cppa
} // namespace caf
#endif // CPPA_IO_BASP_HPP
#endif // CAF_IO_BASP_HPP
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment