diff options
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/include/lldb/API/SBBroadcaster.h | 10 | ||||
-rw-r--r-- | lldb/source/API/SBBroadcaster.cpp | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBBroadcaster.h b/lldb/include/lldb/API/SBBroadcaster.h index a6db461b8b8..92c1bba05ea 100644 --- a/lldb/include/lldb/API/SBBroadcaster.h +++ b/lldb/include/lldb/API/SBBroadcaster.h @@ -58,12 +58,22 @@ public: RemoveListener (const lldb::SBListener &listener, uint32_t event_mask = UINT32_MAX); #ifndef SWIG + // This comparison is checking if the internal opaque pointer value + // is equal to that in "rhs". bool operator == (const lldb::SBBroadcaster &rhs) const; + // This comparison is checking if the internal opaque pointer value + // is not equal to that in "rhs". bool operator != (const lldb::SBBroadcaster &rhs) const; + // This comparison is checking if the internal opaque pointer value + // is less than that in "rhs" so SBBroadcaster objects can be contained + // in ordered containers. + bool + operator < (const lldb::SBBroadcaster &rhs) const; + #endif protected: diff --git a/lldb/source/API/SBBroadcaster.cpp b/lldb/source/API/SBBroadcaster.cpp index f36a309b04c..5332b93b3be 100644 --- a/lldb/source/API/SBBroadcaster.cpp +++ b/lldb/source/API/SBBroadcaster.cpp @@ -189,3 +189,9 @@ SBBroadcaster::operator != (const SBBroadcaster &rhs) const { return m_opaque_ptr != rhs.m_opaque_ptr; } + +bool +SBBroadcaster::operator < (const SBBroadcaster &rhs) const +{ + return m_opaque_ptr < rhs.m_opaque_ptr; +} |