本文整理汇总了C++中Hashtable::get_pointer方法的典型用法代码示例。如果您正苦于以下问题:C++ Hashtable::get_pointer方法的具体用法?C++ Hashtable::get_pointer怎么用?C++ Hashtable::get_pointer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hashtable
的用法示例。
在下文中一共展示了Hashtable::get_pointer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: trace_check
void trace_check(bool aggressive, int depth, board_t board, superinfo_t info, const char* context) {
check_board(board);
// Stone depth should increase monotonically
GEODE_ASSERT(stone_depth<=depth+count_stones(board));
stone_depth = depth+count_stones(board);
// Standardize board
symmetry_t symmetry;
superstandardize(board).get(board,symmetry);
info.known = transform_super(symmetry,info.known);
info.wins = transform_super(symmetry,info.wins);
// Compare with what we know
const superinfo_t* known_info = known.get_pointer(tuple(depth,board));
if (known_info) {
const super_t errors = (known_info->wins^info.wins)&known_info->known&info.known;
if (errors) {
const uint8_t r = first(errors);
cout << format("trace check failed in %s: depth %d, board %lld, aggressive %d, stones %d, rotation %d, correct %d, got %d",
context,depth,board,aggressive,count_stones(board),r,known_info->wins(r),info.wins(r))<<endl;
trace_error(aggressive,depth,board,format("%s.trace_check",context).c_str());
}
}
}