Make Makefile.am up-to-date (as usual).
3 \page coding_style LEMON Coding Style
5 \section naming_conv Naming Conventions
7 In order to make development easier we have made some conventions
8 according to coding style. These include names of types, classes,
9 functions, variables, constants and exceptions. If these conventions
10 are met in one's code then it is easier to read and maintain
11 it. Please comply with these conventions if you want to contribute
12 developing LEMON library.
14 \warning In some cases we diverge from these rules.
15 This primary done because STL uses different naming convention and
17 it is beneficial to provide STL compatible interface.
19 \subsection cs-files File Names
21 The header file names should look like the following.
27 Note that all standard LEMON headers are located in the \c lemon subdirectory,
28 so you should include them from C++ source like this:
31 #include <lemon/header_file.h>
34 The source code files use the same style and they have '.cc' extension.
40 \subsection cs-class Classes and other types
42 The name of a class or any type should look like the following.
45 AllWordsCapitalizedWithoutUnderscores
48 \subsection cs-func Methods and other functions
50 The name of a function should look like the following.
53 firstWordLowerCaseRestCapitalizedWithoutUnderscores
56 \subsection cs-funcs Constants, Macros
58 The names of constants and macros should look like the following.
61 ALL_UPPER_CASE_WITH_UNDERSCORES
64 \subsection cs-loc-var Class and instance member variables, auto variables
66 The names of class and instance member variables and auto variables (=variables used locally in methods) should look like the following.
69 all_lower_case_with_underscores
72 \subsection cs-excep Exceptions
74 When writing exceptions please comply the following naming conventions.
77 ClassNameEndsWithException
80 \section header-template Template Header File
82 Each LEMON header file should look like this: