It would be nice to have a GIF which illustrates, how R triggers the C++ code:
LEFT R: RIGHT C++:
cboost$new() loss = new QuadraticLoss();
optimizer = new CoordinateDescent();
bl_factory = new BaselearnerFactory();
cboost$addBaselearner() bl_factory.addBlearner();
... and so on ...