Audacity 3.2.0
anonymous_namespace{Track.cpp} Namespace Reference


double Accumulate (const TrackList &list, double(Track::*memfn)() const, double ident, const double &(*combine)(const double &, const double &))

Function Documentation

◆ Accumulate()

double anonymous_namespace{Track.cpp}::Accumulate ( const TrackList list,
double(Track::*)() const  memfn,
double  ident,
const double &(*)(const double &, const double &)  combine 

Definition at line 1004 of file Track.cpp.

1009 {
1010 // Default the answer to zero for empty list
1011 if (list.empty()) {
1012 return 0.0;
1013 }
1015 // Otherwise accumulate minimum or maximum of track values
1016 return list.Any().accumulate(ident, combine, memfn);
1017 }
static CommandHandlerObject & ident(AudacityProject &project)
bool empty() const
Definition: Track.cpp:987
auto Any() -> TrackIterRange< TrackType >
Definition: Track.h:1429

References TrackList::Any(), TrackList::empty(), and ident().

Referenced by TrackList::GetEndTime(), TrackList::GetMinOffset(), and TrackList::GetStartTime().

Here is the call graph for this function:
Here is the caller graph for this function: