20#ifndef GEODE_REGIONEVENT_H_
21#define GEODE_REGIONEVENT_H_
25#include "internal/geode_globals.hpp"
40 const std::shared_ptr<Serializable>
49 const std::shared_ptr<Serializable>& aCallbackArgument,
50 const bool remoteOrigin);
56 inline std::shared_ptr<Region>
getRegion()
const {
return m_region; }
64 return m_callbackArgument;
Declares region events.
Definition RegionEvent.hpp:37
RegionEvent(const std::shared_ptr< Region > ®ion, const std::shared_ptr< Serializable > &aCallbackArgument, const bool remoteOrigin)
Constructor, given the values.
std::shared_ptr< Region > getRegion() const
Return the region this event occurred in.
Definition RegionEvent.hpp:56
bool remoteOrigin() const
If the event originated in a remote process, returns true.
Definition RegionEvent.hpp:68
const std::shared_ptr< Serializable > m_callbackArgument
Callback argument for this event, if any.
Definition RegionEvent.hpp:41
RegionEvent()
Constructor.
std::shared_ptr< Serializable > getCallbackArgument() const
Returns the callbackArgument passed to the method that generated this event.
Definition RegionEvent.hpp:63
const bool m_remoteOrigin
True if from a remote process.
Definition RegionEvent.hpp:42
const std::shared_ptr< Region > m_region
Region for this event.
Definition RegionEvent.hpp:39
~RegionEvent()
Destructor.