rlPlcMem Class Reference
#include <rlplc.h>
List of all members.
Detailed Description
Definition at line 56 of file rlplc.h.
Constructor & Destructor Documentation
Definition at line 204 of file rlplc.cpp.
00205 {
00206 i = 0;
00207 i_old = 0;
00208 f = 0.0f;
00209 f_old = 0.0f;
00210 d = 0.0;
00211 d_old = 0.0;
00212 }
| rlPlcMem::~rlPlcMem |
( |
|
) |
[virtual] |
Member Function Documentation
| void rlPlcMem::clear |
( |
int |
bit |
) |
|
Definition at line 299 of file rlplc.cpp.
00300 {
00301 i = i & ~bit;
00302 }
| double rlPlcMem::deltaDouble |
( |
|
) |
|
| float rlPlcMem::deltaFloat |
( |
|
) |
|
| int rlPlcMem::deltaInt |
( |
|
) |
|
| int rlPlcMem::doubleChanged |
( |
|
) |
|
Definition at line 237 of file rlplc.cpp.
00238 {
00239 if(d == d_old) return 0;
00240 else return 1;
00241 }
| int rlPlcMem::doubleHasDecreased |
( |
|
) |
|
Definition at line 273 of file rlplc.cpp.
00274 {
00275 if(d < d_old) return 1;
00276 else return 0;
00277 }
| int rlPlcMem::doubleHasIncreased |
( |
|
) |
|
Definition at line 255 of file rlplc.cpp.
00256 {
00257 if(d > d_old) return 1;
00258 else return 0;
00259 }
| int rlPlcMem::floatChanged |
( |
|
) |
|
Definition at line 231 of file rlplc.cpp.
00232 {
00233 if(f == f_old) return 0;
00234 else return 1;
00235 }
| int rlPlcMem::floatHasDecreased |
( |
|
) |
|
Definition at line 267 of file rlplc.cpp.
00268 {
00269 if(f < f_old) return 1;
00270 else return 0;
00271 }
| int rlPlcMem::floatHasIncreased |
( |
|
) |
|
Definition at line 249 of file rlplc.cpp.
00250 {
00251 if(f > f_old) return 1;
00252 else return 0;
00253 }
| int rlPlcMem::hasBeenCleared |
( |
int |
bit |
) |
|
Definition at line 326 of file rlplc.cpp.
00327 {
00328 if((i & bit) == 0)
00329 {
00330 if((i_old & bit) == 0) return 0;
00331 else return 1;
00332 }
00333 return 0;
00334 }
| int rlPlcMem::hasBeenSet |
( |
int |
bit |
) |
|
Definition at line 316 of file rlplc.cpp.
00317 {
00318 if(i & bit)
00319 {
00320 if(i_old & bit) return 0;
00321 else return 1;
00322 }
00323 return 0;
00324 }
| int rlPlcMem::intChanged |
( |
|
) |
|
Definition at line 225 of file rlplc.cpp.
00226 {
00227 if(i == i_old) return 0;
00228 else return 1;
00229 }
| int rlPlcMem::intHasDecreased |
( |
|
) |
|
Definition at line 261 of file rlplc.cpp.
00262 {
00263 if(i < i_old) return 1;
00264 else return 0;
00265 }
| int rlPlcMem::intHasIncreased |
( |
|
) |
|
Definition at line 243 of file rlplc.cpp.
00244 {
00245 if(i > i_old) return 1;
00246 else return 0;
00247 }
| int rlPlcMem::isClear |
( |
int |
bit |
) |
|
Definition at line 310 of file rlplc.cpp.
00311 {
00312 if(i & bit) return 0;
00313 else return 1;
00314 }
| int rlPlcMem::isSet |
( |
int |
bit |
) |
|
Definition at line 304 of file rlplc.cpp.
00305 {
00306 if(i & bit) return 1;
00307 else return 0;
00308 }
| void rlPlcMem::rememberState |
( |
|
) |
|
| void rlPlcMem::set |
( |
int |
bit |
) |
|
Definition at line 294 of file rlplc.cpp.
00295 {
00296 i = i | bit;
00297 }
Member Data Documentation
The documentation for this class was generated from the following files: