當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。