Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
class Geo GeoTokenStream

    This is the documentation for Enlighten.

    class Geo GeoTokenStream

    Sept 09, 2025

    template<typename T>
    class Geo::GeoTokenStream

    A very simple utility class that wraps some common parsing functionality around a GeoTokenList.

    The token list provided in Create is just referenced, not copied, so the token list must out-live this class.

    Functions

    Name Description
    Create(GeoTokenList< T > &)

    Creates a GeoTokenStream which reads from the given GeoTokenList.

    GetCurrentTokenIdx()

    Gets the index of the current token.

    GetLastErrorString()

    Gets a textual description of the last parsing error encountered.

    HasMoreTokens()

    Checks if there are more tokens to read.

    NonCopyable(NonCopyable &&)

    Defaulted to allow move.

    operator=(NonCopyable &&)

    Defaulted to allow move.

    Release()

    Destroys this GeoTokenStream.

    ResetStream()

    Resets the stream to the beginning of the token list.

    SetCurrentTokenIdx(s32)

    Sets the stream position to the given token index.

    TokenExtract(s32 &)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenExtract(bool &)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenExtract(v128 &, bool)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenExtract(float &)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenExtract(GeoString< T > &)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenExtract(ENUM &, const T **, const T **)

    Parses the current token into an enum, and advances the stream if successful.

    TokenExtract(u16 &)

    Parses the current token into the appropriate type, and advances the stream if successful.

    TokenMatch(const T *, bool)

    Checks if the current token matches the given string, and advances the stream if successful.

    TokenMatchOption(const T **, s32, bool)

    Checks if the current token matches the given string, and advances the stream if successful.


    static GeoTokenStream* Geo::GeoTokenStream< T >::Create


    public: GeoTokenStream * Create
    (
        GeoTokenList< T > & tl
    )


    Creates a GeoTokenStream which reads from the given GeoTokenList.


    s32 Geo::GeoTokenStream< T >::GetCurrentTokenIdx


    public: s32 GetCurrentTokenIdx() const


    Gets the index of the current token.


    const char* Geo::GeoTokenStream< T >::GetLastErrorString


    public: const char * GetLastErrorString() const


    Gets a textual description of the last parsing error encountered.


    bool Geo::GeoTokenStream< T >::HasMoreTokens


    public: bool HasMoreTokens() const


    Checks if there are more tokens to read.


    Geo::NonCopyable::NonCopyable


    public: NonCopyable
    (
        NonCopyable &&
    )


    Defaulted to allow move.


    NonCopyable& Geo::NonCopyable::operator=


    public: NonCopyable & operator=
    (
        NonCopyable &&
    )


    Defaulted to allow move.


    void Geo::GeoTokenStream< T >::Release


    public: void Release()


    Destroys this GeoTokenStream.


    void Geo::GeoTokenStream< T >::ResetStream


    public: void ResetStream()


    Resets the stream to the beginning of the token list.


    void Geo::GeoTokenStream< T >::SetCurrentTokenIdx


    public: void SetCurrentTokenIdx
    (
        s32 idx
    )


    Sets the stream position to the given token index.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        s32 & outInt
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        bool & outBool
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        v128 & outVector,
        bool bDefaultW
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        float & outFloat
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        GeoString< T > & outStr
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        ENUM & outEnum,
        const T ** pstrBegin,
        const T ** pstrEnd
    )


    Parses the current token into an enum, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenExtract


    public: bool TokenExtract
    (
        u16 & outShort
    )


    Parses the current token into the appropriate type, and advances the stream if successful.


    bool Geo::GeoTokenStream< T >::TokenMatch


    public: bool TokenMatch
    (
        const T * str,
        bool ignoreCase
    )


    Checks if the current token matches the given string, and advances the stream if successful.


    s32 Geo::GeoTokenStream< T >::TokenMatchOption


    public: s32 TokenMatchOption
    (
        const T ** optionStr,
        s32 numOptions,
        bool ignoreCase
    )


    Checks if the current token matches the given string, and advances the stream if successful.

    , multiple selections available,

    Enlighten API 4.03 Documentation
    Results will update as you type.
    • class Geo GeoGenericTexture
    • class Geo GeoGuid
    • class Geo GeoHalf
    • class Geo GeoHashConstHandle
    • class Geo GeoHashCString
    • class Geo GeoHashDefault
    • class Geo GeoHashHandle
    • class Geo GeoHashMap
    • class Geo GeoHashString
    • class Geo GeoImmutableArray
    • class Geo GeoInstanceCount
    • class Geo GeoIntRange
    • class Geo GeoIntrusivePtr
    • class Geo GeoKeyValueArray
    • class Geo GeoLineSegment
    • class Geo GeoList
    • class Geo GeoMap
    • class Geo GeoMemoryDefault
    • class Geo GeoMemoryPool
    • class Geo GeoMemoryStream
    • class Geo GeoNonAABoundingBox
    • class Geo GeoNoopDestructor
    • class Geo GeoPair
    • class Geo GeoParametrisedPlane3
    • class Geo GeoPriorityQueue
    • class Geo GeoProgress
    • class Geo GeoQueue
    • class Geo GeoQueueEnumInterface
    • class Geo GeoRefArrayPtr
    • class Geo GeoRefCount
    • class Geo GeoRefPtr
    • class Geo GeoRefReleasePtr
    • class Geo GeoReleaseDestructor
    • class Geo GeoRGBXTexture
    • class Geo GeoScopedCSection
    • class Geo GeoSingleton
    • class Geo GeoString
    • class Geo GeoStringView
    • class Geo GeoTimer
    • class Geo GeoTokenList
    • class Geo GeoTokenStream
    • class Geo GeoTriangle
    • class Geo GeoTriple
    • class Geo GeoUniqueDelegatePtr
    • class Geo GeoUniquePtr
    • class Geo GeoUniqueReleasePtr
    • class Geo GeoV128Texture
    • class Geo GeoVariant
    • class Geo GeoVirtualPageAllocator
    • class Geo GeoZLibFileStream
    • class Geo GoodRNG
    • class Geo IdentDataCompare
    • class Geo IdentVertLinkBuilder
    • class Geo IdxLink
    • class Geo IffReader
    • class Geo IffTextWriter
    • class Geo IffWriter
    • class Geo IGeoEvent
    • class Geo IGeoInputStream
    • class Geo IGeoProgressProxy
    • class Geo IGeoRayTracingContext
    • class Geo IGeoReleasable
    • class Geo IGeoSerialisable
    • class Geo IGeoStream
    • class Geo IRtMesh
    • class Geo ITerminalCmdHandler
    • class Geo ITerminalDelegate
    • class Geo ITerminalInputHandler
    • class Geo ITerminalOutputHandler
    • class Geo Matrix
    • class Geo MemoryAllocator
    • class Geo NonCopyable
    • class Geo Optional
    • class Geo OptionalIndex
    • class Geo PackedInteger4
    • class Geo PackedInteger64
    • class Geo PackedIntegerArray
    • class Geo PackedKeyValuePair
    • class Geo PointLeaf
    • class Geo PointSplit
    • class Geo PointSplitBounds
      Calendars

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 13, "requestCorrelationId": "949ba3c1bc1f4535ada57053bc61f774"}