00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef WIFI_FRAME_FILTER_REFERENCE_BLACKLIST_HXX_
00023 # define WIFI_FRAME_FILTER_REFERENCE_BLACKLIST_HXX_
00024
00025 # include "reference_blacklist.hxx"
00026
00027 namespace wifi
00028 {
00029 namespace frame
00030 {
00031 namespace filter
00032 {
00033
00034 namespace internals
00035 {
00036
00037 inline
00038 blacklist_predicate::blacklist_predicate(const blacklist& l):
00039 blacklist_ (l)
00040 {
00041 }
00042
00043 template <class T>
00044 bool
00045 blacklist_predicate::operator () (const T& item) const
00046 {
00047 const blacklist_item i (item.first.frame_id(),
00048 item.second.frame_id());
00049
00050 return blacklist_.find(i) == blacklist_.end();
00051 }
00052
00053 }
00054
00055 template <class I, class B>
00056 reference_blacklist<I, B>::reference_blacklist(const I& first,
00057 const I& last,
00058 const blacklist& l):
00059 super_type (first, last, l)
00060 {
00061 }
00062
00063 }
00064
00065 }
00066
00067 }
00068
00069 #endif // ! WIFI_FRAME_FILTER_SIMPLE_MERGE_HXX_