Changeset 142:ffed7be5504d in finroc_plugins_ib2c


Ignore:
Timestamp:
11.03.2020 08:33:05 (4 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
143:c9d18a77fe5b, 144:a75f96b94af1
Phase:
public
Message:

Adds explicit template instantiations for rrlib_rtti data type info for ib2c meta signal types. This reduces size of dependent binaries.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtti.cpp

    r140 r142  
    3030 */ 
    3131//---------------------------------------------------------------------- 
    32  
    33 #ifdef _LIB_RRLIB_RTTI_PRESENT_ 
    3432 
    3533//---------------------------------------------------------------------- 
     
    7876static_assert(IsImplicitlyConvertible<tStimulation, tActivity>::value == false, "Invalid trait implementation"); 
    7977 
    80 #endif 
     78template class detail::tDataTypeInfo<finroc::ib2c::tStimulation>; 
     79template class detail::tDataTypeInfo<finroc::ib2c::tActivity>; 
     80template class detail::tDataTypeInfo<finroc::ib2c::tTargetRating>; 
     81template class detail::tDataTypeInfo<finroc::ib2c::tInhibition>; 
    8182 
     83template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tStimulation>>; 
     84template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tActivity>>; 
     85template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tTargetRating>>; 
     86template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tInhibition>>; 
     87 
  • typeutil.h

    r140 r142  
    105105}; 
    106106 
     107extern template class detail::tDataTypeInfo<finroc::ib2c::tStimulation>; 
     108extern template class detail::tDataTypeInfo<finroc::ib2c::tActivity>; 
     109extern template class detail::tDataTypeInfo<finroc::ib2c::tTargetRating>; 
     110extern template class detail::tDataTypeInfo<finroc::ib2c::tInhibition>; 
     111 
     112extern template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tStimulation>>; 
     113extern template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tActivity>>; 
     114extern template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tTargetRating>>; 
     115extern template class detail::tDataTypeInfo<std::vector<finroc::ib2c::tInhibition>>; 
     116 
    107117} 
    108118} 
Note: See TracChangeset for help on using the changeset viewer.