Coding Standards Guide

The purpose of this page is to detail the coding standards of the project which all contributers are requested to follow.

This page describes the coding style standard for C++. A coding style standard defines the visual layout of source code. Presenting source code in a uniform fashion facilitates the use of code by different developers. In addition, following a standard prevents certain types of coding errors.

All of the items below, unless otherwise noted, are guidelines. They are recommendations about how to lay out a given block of code. Use common sense and provide comments to describe any deviation from the standard. Sometimes, violating a guideline may actually improve readability.

If you are working with code that does not follow the standard, bring the code up-to-date or follow the existing style. Don’t mix styles.

Code Layout

The aim here is to maximise readability on all platforms and editors.

Space

Adding an appropriate amount of white space enhances readability. Too much white space, on the other hand, detracts from that readability.

Naming Conventions

Keep variable and function names meaningful but concise.

Namespaces

The top-level namespace is "Nektar". All code should reside in this namespace or a sub-space of this.

Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines