num_segments.qbk 927 B

1234567891011121314151617181920212223242526272829303132
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2014, Oracle and/or its affiliates.
  4. Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  5. Licensed under the Boost Software License version 1.0.
  6. http://www.boost.org/users/license.html
  7. =============================================================================/]
  8. [def __this_function__ num_segments]
  9. [heading_conformance_no_ogc __this_function__]
  10. [heading Behavior]
  11. [table
  12. [[Case] [Behavior] ]
  13. [[__0dim__][[qbk_ret 0]]]
  14. [[__segment__][[qbk_ret 1]]]
  15. [[__box__][[qbk_ret d * 2^(d-1), where d is the dimension of the box]]]
  16. [[__range__][[qbk_ret boost::size(geometry) - 1]]]
  17. [[__other__][[qbk_ret the sum of the number of segments of its elements]]]
  18. ]
  19. [heading Complexity]
  20. Constant or Linear
  21. [heading Examples]
  22. [num_segments]
  23. [num_segments_output]