Added sortcut functions to the C++ API to decrease the amount of code that is required in the bindings.