Changeset 110:42a1ef6df6b8 in finroc_plugins_data_ports for tPortPack.h


Ignore:
Timestamp:
16.05.2017 00:31:03 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
17.03
Phase:
public
Rebase:
39383665623365313261626335653733393831336266343566336164353437363737363335386138
Message:

Adds method to check change flags in port pack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tPortPack.h

    r108 r110  
    123123  } 
    124124 
     125  inline bool HasChanged(size_t index) 
     126  { 
     127    assert(index < this->NumberOfPorts()); 
     128    if (index == Tsize - 1) 
     129    { 
     130      return this->port.HasChanged(); 
     131    } 
     132    return tPortPack < TPort, TTypeList, Tsize - 1 >::HasChanged(index); 
     133  } 
     134 
    125135  inline void ManagedDelete() 
    126136  { 
     
    154164    return *reinterpret_cast<core::tPortWrapperBase *>(0); 
    155165  }; 
     166 
     167  inline bool HasChanged(size_t index) 
     168  { 
     169    return false; 
     170  }; 
     171 
    156172  inline void ManagedDelete() 
    157173  {} 
Note: See TracChangeset for help on using the changeset viewer.