BrowseContainer Class Reference

#include <c4d_browsecontainer.h>

Public Member Functions

 BrowseContainer (const BaseContainer *t_bc)
 
Bool GetNext (Int32 *id, GeData **data)
 
void Init ()
 

Private Attributes

GeDataListhandle
 
const BaseContainerbc
 

Detailed Description

Helper class to browse a BaseContainer.

Constructor & Destructor Documentation

◆ BrowseContainer()

BrowseContainer ( const BaseContainer t_bc)

Constructs the browser for the provided container.

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

Member Function Documentation

◆ GetNext()

Bool GetNext ( Int32 id,
GeData **  data 
)

Gets the next item in the container.

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

◆ Init()

void Init ( )

Resets the browser to its construction state.

Member Data Documentation

◆ handle

GeDataList* handle
private

◆ bc

const BaseContainer* bc
private