ReactOS  0.4.15-dev-5499-g1341c38
Fibonacci Class Reference

#include <fib.h>

Collaboration diagram for Fibonacci:

Public Member Functions

 Fibonacci ()
 
int operator() ()
 

Private Attributes

int v1
 
int v2
 

Detailed Description

Definition at line 3 of file fib.h.

Constructor & Destructor Documentation

◆ Fibonacci()

Fibonacci::Fibonacci ( )
inline

Definition at line 6 of file fib.h.

6 : v1(0), v2(1) {}
int v2
Definition: fib.h:10
int v1
Definition: fib.h:9

Member Function Documentation

◆ operator()()

int Fibonacci::operator() ( )
inline

Definition at line 14 of file fib.h.

15 {
16  int r = v1 + v2;
17  v1 = v2;
18  v2 = r;
19  return v1;
20 }
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
int v2
Definition: fib.h:10
int v1
Definition: fib.h:9
GLfloat GLfloat GLfloat v2
Definition: glext.h:6063
GLfloat GLfloat v1
Definition: glext.h:6062

Member Data Documentation

◆ v1

int Fibonacci::v1
private

Definition at line 9 of file fib.h.

Referenced by operator()().

◆ v2

int Fibonacci::v2
private

Definition at line 10 of file fib.h.

Referenced by operator()().


The documentation for this class was generated from the following file: