Send feedback
Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SearchLimit
Note: This documentation is automatically generated.
Base class of all search limits.
Method
BeginNextDecision
Return type: void
Arguments: DecisionBuilder* const b
Check
Return type: virtual bool
This method is called to check the status of the limit. A return
value of true indicates that we have indeed crossed the limit. In
that case, this method will not be called again and the remaining
search will be discarded.
Copy
Return type: virtual void
Arguments: const SearchLimit* const limit
Copy a limit. Warning: leads to a direct (no check) downcasting of 'limit'
so one needs to be sure both SearchLimits are of the same type.
crossed
Return type: bool
Returns true if the limit has been crossed.
DebugString
Return type: std::string
EnterSearch
Return type: void
Internal methods.
Init
Return type: virtual void
This method is called when the search limit is initialized.
MakeClone
Return type: virtual SearchLimit*
Allocates a clone of the limit.
PeriodicCheck
Return type: void
RefuteDecision
Return type: void
Arguments: Decision* const d
SearchLimit
Return type: explicit
Arguments: Solver* const s
~SearchLimit
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-09-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?