Open Search
    BrowseConstContainer Class Reference

    #include <c4d_gedata.h>

    Detailed Description

    A convenience class for browsing through the items in a const BaseContainer.

    Warning
    It is not allowed to add or remove elements while browsing the container.

    Public Member Functions

     BrowseConstContainer (const BaseContainer *bc)
     
    void Reset ()
     
    Bool GetNext (Int32 *id, const GeData **data)
     

    Private Attributes

    const BaseContainert_bc
     
    void * handle
     

    Constructor & Destructor Documentation

    ◆ BrowseConstContainer()

    Constructs the browser with the passed container.

    Parameters
    [in]bcThe container to browse. The caller owns the pointed container.

    Member Function Documentation

    ◆ Reset()

    void Reset ( )

    Resets the browser to the construction state.

    ◆ GetNext()

    Bool GetNext ( Int32 id,
    const GeData **  data 
    )

    Retrieves the next item in the container.

    Parameters
    [out]idAssigned the ID of the item.
    [out]dataAssigned the item's data. The container owns the pointed data.
    Returns
    true if the next item was retrieved, otherwise false.

    Member Data Documentation

    ◆ t_bc

    const BaseContainer* t_bc
    private

    ◆ handle

    void* handle
    private