Skip to content

Commit

Permalink
Merge pull request #209 from scipopt/event-raw
Browse files Browse the repository at this point in the history
Add a getter method for raw SCIP_EVENT pointer
  • Loading branch information
mmghannam authored Feb 6, 2025
2 parents 30432f0 + 34c2777 commit b74d1be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/eventhdlr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ pub struct Event {
}

impl Event {
/// Returns the internal raw pointer of the event.
pub fn inner(&self) -> *mut ffi::SCIP_EVENT {
self.raw
}

/// Returns the event type of the event.
pub fn event_type(&self) -> EventMask {
let event_type = unsafe { ffi::SCIPeventGetType(self.raw) };
Expand Down

0 comments on commit b74d1be

Please sign in to comment.