Generate the accessor functions from the used capacities and the inherited capacities (issue #47).