In the following sections we describe the naming conventions which are used for files, classes, structures, local variables, and global variables.
Variables are named using lower-case letters and words are separated using under-score. Abbreviations, when used in variable names, are also written with lower-case letters. Examples:
`fft_size'
`nrof_paths'
`my_variable_name'
Some variable names or parts of variable names are commonly used in several different functions and files to denote the same thing. For instance the following common names and prefixes should be used:
`rows'
- number of rows in a matrix `cols'
- number of columns in a matrix `nrof_'
- number of ... Files are named using lower-case letters and words are separated using under-score. Abbreviations, when used in file names, are also written with lower-case letters.
Source files are named using `.cpp'
suffix, whereas header files end with `.h'
extension. Examples:
`my_file.h'
`my_file.cpp'
Function names are named using lower-case letters and words are separated using under-score. Abbreviations, when used in function names, are also written with lower-case letters. This rule applies both to stand-alone functions as well as to member functions of classes. Example:
int my_function_name(int a, int b)
Each new word in a class or structure name should always start with a capital letter and the words should be separated with an under-score. Abbreviations are written with capital letters. Examples:
`My_Class_Name'
`My_Struct_Name'
`OFDM'
All classes that are configured by input parameters should include:
`setup'
or `set_parameters'
Explicit destructor functions are not required, unless they are needed. It shall not be possible to use any of the other member functions unless the class has been properly initiated with the input parameters.
Generated on Sat Jul 6 2013 10:54:27 for IT++ by Doxygen 1.8.2