MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_cursor_samples

Method get_cursor_samples

DSView/pv/view/view.cpp:1163–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163uint64_t View::get_cursor_samples(int index)
1164{
1165 auto &lst = get_cursorList();
1166 assert(index < (int)lst.size());
1167
1168 uint64_t ret = 0;
1169 int curIndex = 0;
1170 for (list<Cursor*>::iterator i = lst.begin();
1171 i != lst.end(); i++) {
1172 if (index == curIndex) {
1173 ret = (*i)->index();
1174 }
1175 curIndex++;
1176 }
1177 return ret;
1178}
1179
1180void View::set_measure_en(int enable)
1181{

Callers 6

set_regionMethod · 0.80
update_decode_rangeMethod · 0.80
update_distMethod · 0.80
update_edgeMethod · 0.80
update_cursor_infoMethod · 0.80
build_cursor_pannelMethod · 0.80

Calls 3

sizeMethod · 0.80
indexMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected