API by Topic
Coding Style
The library follows the Google C++ Style Guide, in part as an example for students, since this style is also used in several courses. There are several things that programmers who are not familiar with the Google style might find unusual. These are the most common style rules to note:
- C++ source filenames are all lowercase with underscores, and a .cc extension is used instead of .cpp.
- Variable names are all lowercase with underscores.
- Class member variables are named the same as regular variables but with a trailing _, as in my_member_var_.
- Functions start with capital letters unless they are small getter or setter methods.
- There are many other rules, a solid discussion of pros/cons, and an automated style checker here.