Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
BitAnnual::BitAnnual Constructor (int, int)

Initializes the first and last years and sets all data values to false.

C++
BitAnnual(
    int newBaseYear, 
    int newLastYear
);
Parameters 
Description 
int newBaseYear 
New base year. 
int newLastYear 
New last year. 

On the linux system, data is a vector of BitPacked's -- so the constructor needs to know how many to create. On other systems (which conform to the standard and have a std::bitset class built in), data is a std::bitset and doesn't need any parameters because the default constructor initializes all of the bits to zero.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!