[−][src]Trait splr::cdb::WatchDBIF
API for 'watcher list' like register
, detach
, update_blocker
and so on.
Required methods
pub fn register(&mut self, blocker: Lit, c: ClauseId)
[src]
make a new 'watch', and add it to this watcher list.
pub fn detach(&mut self, n: usize)
[src]
remove n-th clause from the watcher list. O(1) operation.
pub fn detach_with(&mut self, cid: ClauseId)
[src]
remove a clause which id is cid
from the watcher list. O(n) operation.
pub fn update_blocker(&mut self, cid: ClauseId, l: Lit)
[src]
update blocker of cid.
Implementations on Foreign Types
impl WatchDBIF for Vec<Watch>
[src]
pub fn register(&mut self, blocker: Lit, c: ClauseId)
[src]
pub fn detach(&mut self, n: usize)
[src]
pub fn detach_with(&mut self, cid: ClauseId)
[src]
pub fn update_blocker(&mut self, cid: ClauseId, l: Lit)
[src]
This O(n) function is used only in Eliminator. So the cost can be ignored.