Changeset 175:3f95d4a4a332 in finroc_plugins_data_ports


Ignore:
Timestamp:
12.03.2021 00:38:19 (6 weeks ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds Publish method with const data buffer to tGenericPort

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • api/tGenericPortImplementation.h

    r161 r175  
    183183   * This publish()-variant is efficient with all data types. 
    184184   */ 
    185   inline void Publish(core::tAbstractPort& port, tPortDataPointer<rrlib::rtti::tGenericObject>& data_buffer) 
     185  template <typename T> 
     186  inline void Publish(core::tAbstractPort& port, tPortDataPointer<T>& data_buffer) 
    186187  { 
    187188    if (IsCheaplyCopiedType(port.GetDataType())) 
  • tGenericPort.h

    r161 r175  
    312312    implementation->Publish(*GetWrapped(), buffer); 
    313313  } 
     314  inline void Publish(tPortDataPointer<const rrlib::rtti::tGenericObject>& buffer) 
     315  { 
     316    implementation->Publish(*GetWrapped(), buffer); 
     317  } 
    314318 
    315319  /*! 
Note: See TracChangeset for help on using the changeset viewer.