求解释一个java函数,用C++解释出来

ilyyangminglong1 ilyyangminglong1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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;
}
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
ilyyangminglong1
C++ 语言 65,214 成员 250,514 内容