MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / take

Method take

src/runtime/CL/mlgo/MLGOParser.cpp:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117Token TokenStream::take()
118{
119 ARM_COMPUTE_ERROR_ON_MSG(_tokens.empty(), "TokenStream can never be empty");
120 Token t = _tokens.front();
121 _tokens.pop_front();
122 if (_tokens.empty())
123 {
124 read();
125 }
126 return t;
127}
128Token TokenStream::peek(size_t i)
129{
130 ARM_COMPUTE_ERROR_ON_MSG(_tokens.empty(), "TokenStream can never be empty");

Callers 8

endFunction · 0.80
bool_valFunction · 0.80
int_valFunction · 0.80
float_valFunction · 0.80
text_valFunction · 0.80
accept_textFunction · 0.80
accept_l_listFunction · 0.80
accept_r_listFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected