Chained representation of linear tables in C++ code