本文整理匯總了C++中BOOST_SERIALIZATION_BASE_OBJECT_NVP函數的典型用法代碼示例。如果您正苦於以下問題:C++ BOOST_SERIALIZATION_BASE_OBJECT_NVP函數的具體用法?C++ BOOST_SERIALIZATION_BASE_OBJECT_NVP怎麽用?C++ BOOST_SERIALIZATION_BASE_OBJECT_NVP使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了BOOST_SERIALIZATION_BASE_OBJECT_NVP函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: serialize
void serialize(Archive &ar, const unsigned int /* file_version */)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base1);
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base2);
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base3);
ar & BOOST_SERIALIZATION_NVP(m_x);
}
示例2: serialize
void serialize(Archive & ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
boost::enable_shared_from_this<Derived>
);
ar & BOOST_SERIALIZATION_NVP(m_derived);
}
示例3: serialize
template<class archive> void serialize(archive &ar,
const size_t /*version*/
) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( aligned_pair_score );
ar & BOOST_SERIALIZATION_NVP( rmsd );
ar & BOOST_SERIALIZATION_NVP( num_aligned_residues );
}
示例4: BOOST_SERIALIZATION_BASE_OBJECT_NVP
void Moderator::CreatePlanet::serialize(Archive& ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(ModeratorAction)
& BOOST_SERIALIZATION_NVP(m_system_id)
& BOOST_SERIALIZATION_NVP(m_planet_type)
& BOOST_SERIALIZATION_NVP(m_planet_size);
}
示例5: serialize
void serialize( Archive& ar, const unsigned int version )
{
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP( OfxhPlugin );
ar& BOOST_SERIALIZATION_NVP( _baseDescriptor );
//ar & BOOST_SERIALIZATION_NVP(_pluginHandle); // don't save this
ar& BOOST_SERIALIZATION_NVP( _contexts );
}
示例6: serialize
void serialize(Archive & ar, const unsigned int version)
{
// serialize base class information
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(UpdaterMean);
ar & BOOST_SERIALIZATION_NVP(covar_decay_factor_);
}
示例7: BOOST_SERIALIZATION_BASE_OBJECT_NVP
void WeaponsPlatformEvent::serialize(Archive& ar, const unsigned int version) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(CombatEvent);
ar & BOOST_SERIALIZATION_NVP(bout)
& BOOST_SERIALIZATION_NVP(attacker_id)
& BOOST_SERIALIZATION_NVP(attacker_owner_id)
& BOOST_SERIALIZATION_NVP(events);
}
示例8: BOOST_SERIALIZATION_BASE_OBJECT_NVP
void ExponentialSystem::serialize(Archive & ar, const unsigned int version)
{
// serialize base class information
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DynamicalSystem);
ar & BOOST_SERIALIZATION_NVP(alpha_);
}
示例9: serialize
void
SimplexWithAttachment<V>::
serialize(Archive& ar, version_type )
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Parent);
ar & BOOST_SERIALIZATION_NVP(attachment);
}
示例10: serialize
void serialize(Archive &ar, const unsigned int version)
{
// save/load base class information
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(bus_stop);
ar & BOOST_SERIALIZATION_NVP(street1);
ar & BOOST_SERIALIZATION_NVP(street2);
}
示例11: LOG
void THIS::load(ba::polymorphic_iarchive & ar, unsigned int const &)
{
LOG(lg, neb::gfx::core::light::sl, debug) << __PRETTY_FUNCTION__;
BOOST_SERIALIZATION_BASE_OBJECT_NVP(gal::itf::shared);
//BOOST_SERIALIZATION_BASE_OBJECT_NVP(neb::fnd::core::light::base);
}
示例12: serialize
void serialize(Archive& ar, const unsigned int version)
{
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(OfxhPluginDesc);
// ar & BOOST_SERIALIZATION_NVP(_binary); // just a link, don't save
ar& BOOST_SERIALIZATION_NVP(_index);
ar& BOOST_SERIALIZATION_NVP(_isSupported);
}
示例13: LOG
void THIS::save(ba::polymorphic_oarchive & ar, unsigned int const &) const
{
LOG(lg, neb::gfx::core::light::sl, debug) << __FUNCSIG__;
BOOST_SERIALIZATION_BASE_OBJECT_NVP(gal::itf::shared);
//BOOST_SERIALIZATION_BASE_OBJECT_NVP(neb::fnd::core::light::Base);
}
示例14: BOOST_SERIALIZATION_BASE_OBJECT_NVP
void CurveLine::serialize(Archive & ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(LineBase);
ar & BOOST_SERIALIZATION_NVP(start_control_point_);
ar & BOOST_SERIALIZATION_NVP(end_control_point_);
}
示例15: BOOST_SERIALIZATION_BASE_OBJECT_NVP
void SinglePlayerSetupData::serialize(Archive& ar, const unsigned int version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(GalaxySetupData)
& BOOST_SERIALIZATION_NVP(m_new_game)
& BOOST_SERIALIZATION_NVP(m_filename)
& BOOST_SERIALIZATION_NVP(m_players);
}