• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libantlr3c-3.2/src/

Lines Matching refs:elements

72 	if	(stream->elements != NULL)
77 if (stream->elements->factoryMade == ANTLR3_TRUE)
80 factory->returnVector(factory, stream->elements);
82 stream->elements = NULL;
89 stream->elements->clear(stream->elements);
120 if (stream->elements != NULL)
122 // We have some elements to traverse
126 for (i = 1; i<= stream->elements->count; i++)
128 tree = (pANTLR3_BASE_TREE)(stream->elements->elements[i-1].element);
139 if (stream->elements->factoryMade == ANTLR3_TRUE)
142 factory->returnVector(factory, stream->elements);
144 stream->elements = NULL;
148 stream->elements->clear(stream->elements);
177 if (stream->freeElements == ANTLR3_TRUE && stream->elements != NULL)
179 stream->elements->free(stream->elements);
218 stream->elements = NULL;
297 if (stream->elements != NULL && stream->elements->factoryMade == ANTLR3_FALSE && stream->freeElements == ANTLR3_TRUE )
299 stream->elements->free(stream->elements);
301 stream->elements = vector;
507 /// not consumed any of its elements. Elements themselves are untouched.
529 if (stream->elements != NULL && stream->elements->count > 0)
534 stream->elements->add(stream->elements, el, freePtr);
546 if (stream->elements == NULL)
551 stream->elements = factory->newVector(factory);
555 stream->elements->add (stream->elements, stream->singleElement, freePtr);
556 stream->elements->add (stream->elements, el, freePtr);
562 /// Return the next element in the stream. If out of elements, throw
563 /// an exception unless size()==1. If size is 1, then return elements[0].
564 /// Return a duplicate node/subtree if stream is out of elements and
577 // if out of elements and size is 1, dup
597 /// Return the next element in the stream. If out of elements, throw
598 /// an exception unless size()==1. If size is 1, then return elements[0].
621 /// if the stream is empty or we're out of elements and size>1.
639 // Traversed all the available elements already?
650 // Out of elements and the size is not 1, so we cannot assume
652 // This means we ran out of elements earlier than was expected.
668 t = stream->toTree(stream, stream->elements->get(stream->elements, stream->cursor));
753 || (stream->elements != NULL && stream->cursor < stream->elements->size(stream->elements)))
797 // We are out of elements and the size is 1, which means we just
808 /// Number of elements available in the stream
825 if (stream->elements != NULL)
827 return (ANTLR3_UINT32)(stream->elements->count);