org.gecode.MemoryStop Class Reference
[Stop-objects for stopping search]
Inherits org.gecode.Stop.
Detailed Description
Stop-object based on memory consumption.
Definition at line 15 of file MemoryStop.java.
Public Member Functions | |
| void | delete () |
| void | swigReleaseOwnership () |
| void | swigTakeOwnership () |
| MemoryStop (long l) | |
| Stop if memory limit l (in bytes) is exceeded. | |
| long | limit () |
| Return current limit. | |
| void | limit (long l) |
| Set current limit to l (in bytes). | |
| boolean | stop (Statistics s) |
| Return true if memory limit is exceeded. | |
Protected Member Functions | |
| MemoryStop (long cPtr, boolean cMemoryOwn) | |
| void | finalize () |
| void | swigDirectorDisconnect () |
Static Protected Member Functions | |
| static long | getCPtr (MemoryStop obj) |
Constructor & Destructor Documentation
| org.gecode.MemoryStop.MemoryStop | ( | long | cPtr, | |
| boolean | cMemoryOwn | |||
| ) | [protected] |
Definition at line 18 of file MemoryStop.java.
| org.gecode.MemoryStop.MemoryStop | ( | long | l | ) |
Member Function Documentation
| static long org.gecode.MemoryStop.getCPtr | ( | MemoryStop | obj | ) | [static, protected] |
Definition at line 23 of file MemoryStop.java.
| void org.gecode.MemoryStop.finalize | ( | ) | [protected] |
| void org.gecode.MemoryStop.delete | ( | ) |
| void org.gecode.MemoryStop.swigDirectorDisconnect | ( | ) | [protected] |
| void org.gecode.MemoryStop.swigReleaseOwnership | ( | ) |
| void org.gecode.MemoryStop.swigTakeOwnership | ( | ) |
| long org.gecode.MemoryStop.limit | ( | ) |
| void org.gecode.MemoryStop.limit | ( | long | l | ) |
| boolean org.gecode.MemoryStop.stop | ( | Statistics | s | ) |
Return true if memory limit is exceeded.
Reimplemented from org.gecode.Stop.
Definition at line 68 of file MemoryStop.java.
The documentation for this class was generated from the following file:
- org/gecode/MemoryStop.java
