00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef SIENA_BTABLE_H
00031 #define SIENA_BTABLE_H
00032
00033 #include <cstddef>
00034
00035 #include <siena/forwarding.h>
00036 #include <siena/allocator.h>
00037
00038 namespace siena {
00039
00040 class BPredicate;
00041
00063 class BTable : public ForwardingTable {
00064 public:
00065 BTable() throw();
00066
00067 virtual ~BTable() throw();
00068
00069 virtual void ifconfig(if_t, const predicate &) throw(bad_constraint);
00070
00071 virtual void match(const message &, MatchHandler &) const throw();
00072 virtual void match(const message &, MatchMessageHandler &) const throw();
00073
00074 virtual void clear() throw();
00075 virtual void clear_recycle() throw();
00076
00077 virtual size_t allocated_bytesize() const throw();
00078 virtual size_t bytesize() const throw();
00079
00080 protected:
00086 FTAllocator memory;
00087
00092 BPredicate * plist;
00093 };
00094
00106 class SortedBTable : public BTable {
00107 public:
00108 SortedBTable() throw();
00109
00110 virtual void consolidate() throw();
00111 };
00112
00113 }
00114
00115 #endif