首页 > 其他 > 详细

CGAL 介绍

时间:2016-12-30 02:03:04      阅读:210      评论:0      收藏:0      [点我收藏+]

CGAL组织

技术分享

内核

技术分享技术分享

技术分享

数值健壮

基础库

扩展性

 

2.4 命名约定 Naming

In order to make it easier to remember what kind of entity a particular name refers to, CGAL has a naming convention.

  • 所有全局可视名字都使用CGAL名字空间.
  • 如果名字是由多个单词组成, 由下划线分隔. 如: side_of_bounded_circle
  • 所有类型(类和枚举类型)都是首字母大写, 其它字母小写. 如:Bounded_side 和 Point_2
  • 函数(全局函数或成员函数)全部小写. 如:side_of_bounded_circle(...) 和 Point_2::x().
  • 常量和枚举值全部大写. 如: ON_BOUNDED_SIDE 和 Triangulation2::EDGE
  • All globally visible names are in namespace CGAL. This means that, for instance, you will have to refer to CGAL::ORIGIN, not to ORIGIN. In the text, we will omit the namespace, but in the code, we will use it. The few macros that exist in CGAL all start with a CGAL prefix.
  • If a name is made of several words, those words are separated by underscores. For example, side_of_bounded_circle.
  • All types (classes and enums) start with one uppercase letter and are all lowercase for the rest. Examples are Bounded_side and Point_2.
  • Functions, whether member functions or global funcions, are all lowercase. Examples are side_of_bounded_circle(...) and Point_2::x().
  • Constants and enum values are all uppercase. For instance ON_BOUNDED_SIDE and Triangulation2::EDGE.

CGAL 介绍

原文:http://www.cnblogs.com/yaoyu126/p/6235013.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!