diff --git a/doc/main.txt b/doc/main.txt index 1d6284cc2..63d927a02 100644 --- a/doc/main.txt +++ b/doc/main.txt @@ -33,3 +33,7 @@ * \brief Every class exported by the ns3 library is enclosed in the * ns3 namespace. */ +/** + * \defgroup constants + * \brief Constants you can change + */ \ No newline at end of file diff --git a/src/common/tags.h b/src/common/tags.h index aabca1a6c..0bb5d4239 100644 --- a/src/common/tags.h +++ b/src/common/tags.h @@ -30,6 +30,14 @@ namespace ns3 { template class TagPrettyPrinter; +/** + * \ingroup constants + * \brief Tag maximum size + * The maximum size (in bytes) of a Tag is stored + * in this constant. + */ +#define TAGS_MAX_SIZE 16 + class Tags { public: inline Tags (); @@ -51,7 +59,7 @@ public: inline void removeAll (void); enum { - SIZE = 16 + SIZE = TAGS_MAX_SIZE }; private: struct TagData {