MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/openvdb / scrape

Method scrape

openvdb_cmd/vdb_tool/include/Parser.h:173–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 mData.erase(mData.end()-2);
172 }
173 void scrape() {// ... x -- x
174 if (mData.empty()) throw std::invalid_argument("Stack::scrape: empty stack");
175 mData.erase(mData.begin(), mData.end()-1);
176 }
177 void clear() {mData.clear();}
178 void over() {// y x -- y x y
179 if (mData.size()<2) throw std::invalid_argument("Stack::over: size<2");

Callers 2

TEST_FFunction · 0.80
ProcessorMethod · 0.80

Calls 4

emptyMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.64