MCPcopy Create free account
hub / github.com/audacity/audacity / ForEach

Method ForEach

libraries/lib-registries/ClientData.h:389–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 */
388 template< typename Function >
389 void ForEach( const Function &function )
390 {
391 auto data = GetData();
392 for( auto &pObject : data.mObject ) {
393 const auto &ptr = Dereferenceable(pObject);
394 if ( ptr )
395 function( *ptr );
396 }
397 }
398
399 //! @copydoc ForEach
400 /*! const overload only compiles with a function that takes reference to const ClientData. */

Callers 2

OnThemeChangeMethod · 0.80
ModifyToolbarMenusMethod · 0.80

Calls 1

DereferenceableFunction · 0.85

Tested by

no test coverage detected