CGAL 介绍

CGAL组织

CGAL 介绍

内核

CGAL 介绍CGAL 介绍

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.
上一篇:ajax文件下载


下一篇:组队赛Day1第一场 GYM 101350 F. Monkeying Around(线段树)