-
Notifications
You must be signed in to change notification settings - Fork 696
Added internal::DeviceListBase
as a common base for device list classes.
#1790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
internal::DeviceListBase
as a common base for all device list classes.internal::DeviceListBase
as a common base for device list classes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1790 +/- ##
==========================================
+ Coverage 83.05% 83.08% +0.03%
==========================================
Files 283 284 +1
Lines 48973 48981 +8
Branches 10333 10358 +25
==========================================
+ Hits 40675 40698 +23
+ Misses 7157 7140 -17
- Partials 1141 1143 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pcap++/header/DeviceListBase.h
Outdated
using value_type = T*; | ||
using size_type = std::size_t; | ||
using difference_type = std::ptrdiff_t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need these typedefs? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly to mimic standard container. Originally there were other accessor methods beside the iterator, but I cut those from this PR, so they aren't used atm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we need them but I don't have a strong opinion so I'll let you decide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can remove them and readd them later if needed.
Split of #1488
Overview of changes:
internal::DeviceListBase
that provides storage and common iterator API for a list of devices.PcapLiveDeviceList
to utilizeinternal::DeviceListBase
.