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

Method peek

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

Source from the content-addressed store, hash-verified

126 return t;
127}
128Token TokenStream::peek(size_t i)
129{
130 ARM_COMPUTE_ERROR_ON_MSG(_tokens.empty(), "TokenStream can never be empty");
131 ARM_COMPUTE_ERROR_ON_MSG(i >= max_look_ahead, "TokenStream: Exceeding max look ahead");
132 // NOTE: If i exceeds the stream (_istream.eof()), read() automatically appends a End token at the end
133 while (_istream && _tokens.size() <= i)
134 {
135 read();
136 }
137 size_t ind = std::min(i, _tokens.size() - 1);
138 return _tokens[ind];
139}
140
141void advance(CharPosition &pos, char ch)
142{

Callers 9

discard_commentsFunction · 0.80
parse_ppm_headerFunction · 0.80
accept_textFunction · 0.80
accept_l_listFunction · 0.80
accept_r_listFunction · 0.80
discard_commentsFunction · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected