Home Notices Documents Classes Download Others Rice
Classes  >  timer  >  Fitted
timer class : Fitted getter

Description

Gets a value that indicates whether this instance was already initialized.

Syntax

timerInstance.Fitted

Arguments

None.

Return value

ClassDescription
boolA value that indicates whether this instance was already initialized.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open method void timerHandler(timer t)

8:

// any handling code....

9:

endmethod

10:

...

11:

endclass

Usage of the Fitted getter is as follows.

1:

timer t = new timer();

2:

bool init = t.Fitted; // false.

3:

handle h = new handle();

4:

t = new timer(h,"timerHandler(timer)", 1000);

5:

init = t.Fitted; // true.

Notes

Instance that is created by declaration is still uninitialized.

Links for reference

None.

Copyright © Rice All rights reserved.