Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
DoubleAnnual::accumulate Method

Accumulates data over a range of years.

C++
double accumulate(
    int year1, 
    int year2, 
    double startValue
) const;
Parameters 
Description 
int year1 
Year with which to start accumulating (inclusive). 
int year2 
Year with which to end accumulating (inclusive). 
double startValue 
Starting value. 

Total of data in the vector over the specified range.

Does not check to be sure range of years is within allowable range, unless in debug mode.

Exceptions 
Description 
PiaException of type PIA_IDS_DBLEANN1 if years are out of range, if in debug mode. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!