X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketRegistry.ih;h=c5d3ac4d80c35c3b69ac27a9948fc874cc9514a0;hb=731487d5f44eaa8c07a21de1dfa00cea2150c80e;hp=adf2f2844311245d5bb82a22d024eac595b174cb;hpb=1342c5d49ca8bd523c9fdf7d89b40448cdfd394b;p=senf.git diff --git a/senf/Packets/PacketRegistry.ih b/senf/Packets/PacketRegistry.ih index adf2f28..c5d3ac4 100644 --- a/senf/Packets/PacketRegistry.ih +++ b/senf/Packets/PacketRegistry.ih @@ -125,6 +125,8 @@ namespace detail { {}; typedef boost::multi_index_container Registry; + typedef typename Registry::template index::type RegistryByKey; + typedef typename Registry::template index::type RegistryByType; template struct EntryImpl : public Entry @@ -161,8 +163,8 @@ namespace detail { key_t key(senf::TypeIdValue const & type); boost::optional key(senf::TypeIdValue const & type, bool); - Entry const & lookup(key_t key); - Entry const * lookup(key_t key, bool); + Entry const & lookup(key_t key) const; + Entry const * lookup(key_t key, bool) const; iterator begin() const; iterator end() const; @@ -175,6 +177,8 @@ namespace detail { virtual void v_clear(); Registry registry_; + RegistryByKey & registryByKey_; + RegistryByType & registryByType_; }; template ::is_integer>