X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseList.hh;h=80a5d89c4d8d113fd4c864e5f3959cc613df5a8f;hb=a3d3979b7daaf22ea63ca356edbfa8047dff7b78;hp=945f72e8098782e78f3c831beca8691558f80574;hpb=2d6585ff852e9d282c17003ba1db0b73eb3a8500;p=senf.git diff --git a/Packets/ParseList.hh b/Packets/ParseList.hh index 945f72e..80a5d89 100644 --- a/Packets/ParseList.hh +++ b/Packets/ParseList.hh @@ -89,7 +89,6 @@ namespace senf { This class shows the interface which must be implemented by a list policy. It is not a list policy only a declaration of the interface: \code - tempalte struct ExampleListPolicy { // optional typedefs used to simplify all other declarations @@ -138,6 +137,19 @@ namespace senf { typedef PacketParserBase::state_type state_type; typedef PacketParserBase::size_type size_type; + typedef void element_type; ///< Type of list elements + /**< This is the parser used to parse the list elements. */ + typedef void parser_type; ///< List parser type + /**< parser_type is the list parser used to parse a list of + this type, + e.g. senf::Parse_List. */ + typedef void container_type; ///< Type of container wrapper + /**< This is the container wrapper of the list, e.g. + Parse_List_Container. The + container may however use a \e different policy, as + long as that policy is constructible from the parser + policy. */ + static const size_type init_bytes = 0; ///< Size of a new list of this type /**< Initial size which needs to be allocated to this type of list */