• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ BOOST_SERIALIZATION_BASE_OBJECT_NVP函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
 }
开发者ID:Ruinland,项目名称:boost-doc-zh,代码行数:7,代码来源:test_shared_ptr_multi_base.cpp


示例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);
	}
开发者ID:LancelotGHX,项目名称:Simula,代码行数:8,代码来源:test_enable_shared_from_this.cpp


示例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 );
			}
开发者ID:UCLOrengoGroup,项目名称:cath-tools,代码行数:7,代码来源:sas_score.hpp


示例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);
}
开发者ID:Ablu,项目名称:freeorion,代码行数:7,代码来源:SerializeModeratorAction.cpp


示例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 );
	}
开发者ID:Finaler,项目名称:TuttleOFX,代码行数:7,代码来源:OfxhImageEffectPlugin.hpp


示例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_);
 }
开发者ID:flowersteam,项目名称:dmpbbo,代码行数:7,代码来源:UpdaterCovarDecay.hpp


示例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);
}
开发者ID:Mitten-O,项目名称:freeorion,代码行数:7,代码来源:CombatEvents.cpp


示例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_);
}
开发者ID:rlober,项目名称:dmpbbo,代码行数:7,代码来源:ExponentialSystem.cpp


示例9: serialize

void 
SimplexWithAttachment<V>::
serialize(Archive& ar, version_type )
{			
	ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Parent);
	ar & BOOST_SERIALIZATION_NVP(attachment);
}
开发者ID:veldanie,项目名称:Dionysus-python3,代码行数:7,代码来源:simplex.hpp


示例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);
 }
开发者ID:LancelotGHX,项目名称:Simula,代码行数:7,代码来源:demo_xml.hpp


示例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);
}
开发者ID:nebula-engine,项目名称:Nebula-Graphics,代码行数:7,代码来源:directional.cpp


示例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);
 }
开发者ID:aoblet,项目名称:TuttleOFX,代码行数:7,代码来源:OfxhPlugin.hpp


示例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);
}
开发者ID:nebula-engine,项目名称:Nebula-Graphics,代码行数:7,代码来源:spot.cpp


示例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_);
}
开发者ID:vcappello,项目名称:libCppGef,代码行数:7,代码来源:curve_line.cpp


示例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);
}
开发者ID:adesst,项目名称:freeorion,代码行数:7,代码来源:SerializeMultiplayerCommon.cpp


示例16: BOOST_SERIALIZATION_BASE_OBJECT_NVP

void FleetTransferOrder::serialize(Archive& ar, const unsigned int version)
{
    ar  & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Order)
        & BOOST_SERIALIZATION_NVP(m_fleet_from)
        & BOOST_SERIALIZATION_NVP(m_fleet_to)
        & BOOST_SERIALIZATION_NVP(m_add_ships);
}
开发者ID:adesst,项目名称:freeorion,代码行数:7,代码来源:SerializeOrderSet.cpp


示例17: load

 void load(Archive & ar, const unsigned int version) {
   SM_ASSERT_LE(std::runtime_error, version,
                (unsigned int) CLASS_SERIALIZATION_VERSION,
                "Unsupported serialization version");
   if (version >= 2) {
     ar >> BOOST_SERIALIZATION_BASE_OBJECT_NVP(CameraGeometryBase);
   }
开发者ID:AliAlawieh,项目名称:kalibr,代码行数:7,代码来源:CameraGeometry.hpp


示例18: serialize

	void serialize(Archive & ar, const unsigned int version)
	{
		ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(RenderObject);
		ar & BOOST_SERIALIZATION_NVP(destructible);
		ar & BOOST_SERIALIZATION_NVP(ai);
		ar & BOOST_SERIALIZATION_NVP(speed);
	}
开发者ID:bilwis,项目名称:RMD,代码行数:7,代码来源:Actor.hpp


示例19: serialize

    void serialize(Archive & ar, const unsigned int version)
    {
        // serialize base class information
        ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Updater);

        ar & BOOST_SERIALIZATION_NVP(eliteness_);
        ar & BOOST_SERIALIZATION_NVP(weighting_method_);
    }
开发者ID:humm,项目名称:dmpbbo,代码行数:8,代码来源:UpdaterMean.hpp


示例20: BOOST_SERIALIZATION_BASE_OBJECT_NVP

void Building::serialize(Archive& ar, const unsigned int version)
{
    ar  & BOOST_SERIALIZATION_BASE_OBJECT_NVP(UniverseObject)
        & BOOST_SERIALIZATION_NVP(m_building_type)
        & BOOST_SERIALIZATION_NVP(m_planet_id)
        & BOOST_SERIALIZATION_NVP(m_ordered_scrapped)
        & BOOST_SERIALIZATION_NVP(m_produced_by_empire_id);
}
开发者ID:dbuksbaum,项目名称:FreeOrion,代码行数:8,代码来源:SerializeUniverse.cpp



注:本文中的BOOST_SERIALIZATION_BASE_OBJECT_NVP函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ BOOST_SERIALIZATION_NVP函数代码示例发布时间:2022-05-30
下一篇:
C++ BOOST_REQUIRE_EQUAL函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap