vmd_naming.qbk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [/
  2. (C) Copyright Edward Diener 2011-2015
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ]
  7. [section:vmd_naming Naming conventions]
  8. All of the macros in the library begin with the prefix BOOST_VMD_,
  9. where VMD stands for 'Variadic Macro Data'.
  10. Following the prefix, certain names in the macros refer to data types
  11. in this library or Boost PP. These names and their data types are:
  12. # TUPLE = Boost PP tuple data type.
  13. # ARRAY = Boost PP array data type.
  14. # LIST = Boost PP list data type.
  15. # SEQ = Boost PP seq data type.
  16. # IDENTIFIER = A VMD identifier
  17. # NUMBER = A VMD number
  18. # TYPE = A VMD type
  19. I have used most of these names in order to mimic the naming of Boost PP
  20. as closely as possible. Subsequent use of the words 'array', 'list',
  21. 'seq', and 'tuple' refer to these Boost PP data types unless otherwise
  22. noted. See the help for Boost PP for any explanation of these
  23. data types.
  24. The term 'sequence' refers to a sequence of VMD data types and is not the
  25. same as a Boost PP sequence which is always referred to in this documentation
  26. as a 'seq'.
  27. The term 'return' refers to the expansion of a macro. I use the terminology
  28. of a macro "returning some data" rather than the terminology of a macro
  29. "expanding to some data", even if the latter is more accurate, because it
  30. more closely corresponds to the way I believe C++ programmers think about
  31. macro programming.
  32. The term 'emptiness' refers to no preprocessor data being passed to or returned
  33. from a macro. I have avoided the word 'nothing' because it has too vague a meaning.
  34. The term 'data type' refers to the various preprocessor input types
  35. which VMD can parse and which are listed above, also including emptiness.
  36. The term 'v-type' refers to a VMD type, the term 'number' returns to a VMD number
  37. and the term 'identifier' refers to a VMD identifier. All these will be explained
  38. in their proper place.
  39. The term "UB" stands for "undefined behavior" as it is specified in the C++ standard.
  40. [endsect]