Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Naming Conventions

Please follow the naming conventions, if you extend the ACG-code !

Files:

- `MyClass.cc` for C++-Implementation of class `MyClass`
- `MyClass.hh` for C++-Header of class `MyClass`

Classes:

- Class names start with a capital letter: `MyClass`
- Class templates end with `T:` `MyClassTemplateT`

Variables:

- One leading underscore for parameters in function-calls: `_var`
- One trailing underscore for member-variables: `var_`
- Two trailing underscores for static member-variables: `var__`

Functions:

- Words are separated by capital letter: `myFunction()`

Accessing members:

- To get the member `xxx_` use `const& xxx() const`
- To set the member `xxx_` use `void set_xxx(arg)`

The following naming conventions are used for the OpenMesh code:

Files:

- `MyClass.cc` for C++-Implementation of class `MyClass`
- `MyClass.hh` for C++-Header of class `MyClass`

Classes:

- Class names start with a capital letter: `MyClass`
- Class templates end with `T:` `MyClassTemplateT`

Variables:

- One leading underscore for parameters in function-calls: `_var`
- One trailing underscore for member-variables: `var_`
- Two trailing underscores for static member-variables: `var__`

Functions:

- Words are separated by underscores: `my_function()`

Accessing members:

- To get the member `xxx_` use `const& xxx() const`
- To set the member `xxx_` use `void set_xxx(arg)`