famouso::mw::afp::defrag::DuplicateChecker< DCP > Class Template Reference
Policy: Checking for duplicate fragment packages. More...
#include <DuplicateChecker.h>
Public Member Functions | |
bool | new_fragment (const Headers< DCP > &header) |
Check if this fragment is duplicate. |
Detailed Description
template<class DCP>
class famouso::mw::afp::defrag::DuplicateChecker< DCP >
Policy: Checking for duplicate fragment packages.
If the network can produce duplicates, use this policy.
Alternative policies: NoDuplicateChecker
Member Function Documentation
template<class DCP >
bool famouso::mw::afp::defrag::DuplicateChecker< DCP >::new_fragment | ( | const Headers< DCP > & | header | ) | [inline] |
Check if this fragment is duplicate.
- Parameters:
-
header AFP header of the fragment
- Returns:
- True if this is a new fragment. False if it's a duplicate.
References famouso::mw::afp::defrag::Headers< DCP >::fseq, famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::resize(), famouso::mw::afp::defrag::detail::Bit::set(), famouso::mw::afp::defrag::detail::BitArray< N, Allocator >::size(), and famouso::mw::afp::defrag::detail::Bit::value().
The documentation for this class was generated from the following file:
- include/mw/afp/defrag/DuplicateChecker.h