X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FAnnotationRouter.hh;h=19b8332eb27cd1b5612c41d3300c4c139f7ee0b1;hb=eb89ea10c8c11d2ef12239cb037c958dec50f006;hp=0787cbbd0c16a4b3575ad91a93672849c33133d8;hpb=ee01b9007d97c64d0a34b91a3dc87ad5c5697df5;p=senf.git diff --git a/PPI/AnnotationRouter.hh b/PPI/AnnotationRouter.hh index 0787cbb..19b8332 100644 --- a/PPI/AnnotationRouter.hh +++ b/PPI/AnnotationRouter.hh @@ -41,16 +41,18 @@ namespace module { /** \brief Route packets to destination according to some annotation value This router takes packet on a single input and directs them to one of it outputs depending - on a \link packet_usage_annotation packet annotation\endlink. Each output connected + on a \ref packet_usage_annotation "packet annotation". Each output connected will be associated with a single annotation value. Incoming packets for which no matching output is found are directed to a default output. If this output is left unconnected, those packets will be dropped. The \a AnnotationType template parameter defines the routing key. This annotation must support the following operations: - \li Comparison with '<' - \li Copy-construction - \li Output streaming to an ostream via '<<' + \li Comparison with '<' (\c LessThanCompatable concept) + \li Copy construction and copy assignment (\c Copyable und \c Assignable concepts) + (e.g. via compiler synthesized copy constructor and assignment operator) + \li Output streaming to an ostream via '\c <<' (for error description purposes) (\c + OutputStreamable concept) The following annotation can be used to route the packets according to a mac address. \code