求解释一个java函数,用C++解释出来
public enum AxisId {
/** The X axis */
X(0),
/** The Y axis */
Y(1),
/** The Z axis */
Z(2),
/** The A axis (traditionally, rotational around X) */
A(3),
/** The B axis (traditionally, rotational around Y) */
B(4),
/** The C axis (traditionally, rotational around Z) */
C(5),
/** The U axis (traditionally, parallel to X) */
U(6),
/** The V axis (traditionally, parallel to Y) */
V(7),
/** The W axis (traditionally, parallel to Z) */
W(8);
private int index;
private AxisId(int index) { this.index = index; }
public int getIndex() { return index; }
}
EnumMap<AxisId,ToolModel> stepExtruderMap = new EnumMap<AxisId,ToolModel>(AxisId.class);
public class ToolModel
{
……
}
//下面这个函数求解释
private Iterable<AxisId> getAllHijackedAxes() {
Vector<AxisId> axes = new Vector<AxisId>();
for ( Map.Entry<AxisId,ToolModel> entry : stepExtruderMap.entrySet()) {
AxisId axis = entry.getKey();
axes.add(axis);
}
return axes;
}