mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-23 16:02:13 +00:00
simplifing visibility/autolink
This commit is contained in:
@@ -110,14 +110,14 @@ public:
|
||||
|
||||
} // namespace detail
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
extended_type_info::key_register() const{
|
||||
if(NULL == get_key())
|
||||
return;
|
||||
singleton<detail::ktmap>::get_mutable_instance().insert(this);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
extended_type_info::key_unregister() const{
|
||||
if(NULL == get_key())
|
||||
return;
|
||||
@@ -135,7 +135,7 @@ extended_type_info::key_unregister() const{
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(const extended_type_info *)
|
||||
BOOST_SERIALIZATION_DECL const extended_type_info *
|
||||
extended_type_info::find(const char *key) {
|
||||
BOOST_ASSERT(NULL != key);
|
||||
const detail::ktmap & k = singleton<detail::ktmap>::get_const_instance();
|
||||
@@ -146,7 +146,7 @@ extended_type_info::find(const char *key) {
|
||||
return *(it);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info::extended_type_info(
|
||||
const unsigned int type_info_key,
|
||||
const char * key
|
||||
@@ -156,11 +156,11 @@ extended_type_info::extended_type_info(
|
||||
{
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info::~extended_type_info(){
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info::operator<(const extended_type_info &rhs) const {
|
||||
// short cut for a common cases
|
||||
if(this == & rhs)
|
||||
@@ -173,7 +173,7 @@ extended_type_info::operator<(const extended_type_info &rhs) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info::operator==(const extended_type_info &rhs) const {
|
||||
// short cut for a common cases
|
||||
if(this == & rhs)
|
||||
|
||||
@@ -27,14 +27,14 @@ namespace boost {
|
||||
namespace serialization {
|
||||
namespace no_rtti_system {
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info_no_rtti_0::extended_type_info_no_rtti_0(
|
||||
const char * key
|
||||
) :
|
||||
extended_type_info(EXTENDED_TYPE_INFO_NO_RTTI_KEY, key)
|
||||
{}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info_no_rtti_0::is_less_than(
|
||||
const boost::serialization::extended_type_info &rhs) const
|
||||
{
|
||||
@@ -57,7 +57,7 @@ extended_type_info_no_rtti_0::is_less_than(
|
||||
return std::strcmp(l, r) < 0;
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info_no_rtti_0::is_equal(
|
||||
const boost::serialization::extended_type_info &rhs) const
|
||||
{
|
||||
@@ -76,7 +76,7 @@ extended_type_info_no_rtti_0::is_equal(
|
||||
return 0 == std::strcmp(l, r);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info_no_rtti_0::~extended_type_info_no_rtti_0()
|
||||
{}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ typedef std::multiset<
|
||||
type_compare
|
||||
> tkmap;
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info_typeid_0::is_less_than(
|
||||
const boost::serialization::extended_type_info & rhs
|
||||
) const {
|
||||
@@ -56,7 +56,7 @@ extended_type_info_typeid_0::is_less_than(
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(bool)
|
||||
BOOST_SERIALIZATION_DECL bool
|
||||
extended_type_info_typeid_0::is_equal(
|
||||
const boost::serialization::extended_type_info & rhs
|
||||
) const {
|
||||
@@ -70,7 +70,7 @@ extended_type_info_typeid_0::is_equal(
|
||||
;
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info_typeid_0::extended_type_info_typeid_0(
|
||||
const char * key
|
||||
) :
|
||||
@@ -78,17 +78,17 @@ extended_type_info_typeid_0::extended_type_info_typeid_0(
|
||||
m_ti(NULL)
|
||||
{}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())
|
||||
BOOST_SERIALIZATION_DECL
|
||||
extended_type_info_typeid_0::~extended_type_info_typeid_0()
|
||||
{}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
extended_type_info_typeid_0::type_register(const std::type_info & ti){
|
||||
m_ti = & ti;
|
||||
singleton<tkmap>::get_mutable_instance().insert(this);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
extended_type_info_typeid_0::type_unregister()
|
||||
{
|
||||
if(NULL != m_ti){
|
||||
@@ -144,7 +144,7 @@ public:
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
BOOST_SERIALIZATION_DECL(const extended_type_info *)
|
||||
BOOST_SERIALIZATION_DECL const extended_type_info *
|
||||
extended_type_info_typeid_0::get_extended_type_info(
|
||||
const std::type_info & ti
|
||||
) const {
|
||||
|
||||
@@ -212,7 +212,7 @@ public:
|
||||
#endif
|
||||
|
||||
// implementation of void caster base class
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
void_caster::recursive_register(bool includes_virtual_base) const {
|
||||
void_cast_detail::set_type & s
|
||||
= void_cast_detail::void_caster_registry::get_mutable_instance();
|
||||
@@ -270,7 +270,7 @@ void_caster::recursive_register(bool includes_virtual_base) const {
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void)
|
||||
BOOST_SERIALIZATION_DECL void
|
||||
void_caster::recursive_unregister() const {
|
||||
if(void_caster_registry::is_destroyed())
|
||||
return;
|
||||
@@ -310,7 +310,7 @@ void_caster::recursive_unregister() const {
|
||||
// and alter it so that it would point to an instance of a related type.
|
||||
// Return the altered pointer. If there exists no sequence of casts that
|
||||
// can transform from_type to to_type, return a NULL.
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
void_upcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
@@ -333,7 +333,7 @@ void_upcast(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_DECL(void const *)
|
||||
BOOST_SERIALIZATION_DECL void const *
|
||||
void_downcast(
|
||||
extended_type_info const & derived,
|
||||
extended_type_info const & base,
|
||||
|
||||
Reference in New Issue
Block a user