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

Accumulates data over a range of years.

C++
float accumulate(
    int year1, 
    int year2, 
    float startValue
) const;
Parameters 
Description 
int year1 
Year with which to start accumulating (inclusive).  
int year2 
Year with which to end accumulating (inclusive).  
float 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_FLOATANN1 if years are out of range (only in debug mode). 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!