parcel | Lucy |
class variable | LUCY_INVERSION |
struct symbol | lucy_Inversion |
class nickname | lucy_Inversion |
header file | Lucy/Analysis/Inversion.h |
Lucy::Analysis::Inversion – A collection of Tokens.
An Inversion is a collection of Token objects which you can add to, then iterate over.
lucy_Inversion* // incremented
lucy_Inversion_new(
lucy_Token *seed
);
Create a new Inversion.
An initial Token to start things off, which may be NULL.
void
lucy_Inversion_Append(
lucy_Inversion *self,
lucy_Token *token // decremented
);
Tack a token onto the end of the Inversion.
A Token.
lucy_Token*
lucy_Inversion_Next(
lucy_Inversion *self
);
Return the next token in the Inversion until out of tokens.
void
lucy_Inversion_Reset(
lucy_Inversion *self
);
Reset the Inversion’s iterator, so that the next call to next() returns the first Token in the inversion.
Lucy::Analysis::Inversion is a Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.