当前位置: 首页>>代码示例>>C++>>正文


C++ BOOST_SERIALIZATION_BASE_OBJECT_NVP函数代码示例

本文整理汇总了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);
 }
开发者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


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