Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

ratio task::get_ratio_n ( unsigned short  number = 0 ) const

returns ration n

returns the ratio given by number from the ratio_vector

Definition at line 128 of file task.cpp.

References ratio_vector.

Referenced by TaskWidget::paintEvent(), and ExerciseMixedNumbers::showResult().

{
    /* do not set something outside our vector */
    if (number > ratio_vector.size() - 1)
        number = 0;
    return ratio_vector[number];
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index