Jump to content

Changes in iterating over attributes?


Guest mantragora

Recommended Posts

Guest mantragora

Hi.

I seems to have problem with iterating over attributes. All methods I could find seems to fail.

When I try this:

for (auto it : gdp->pointAttribs())
{
}
or this:

for (auto it = gdp->pointAttribs().begin(); !it.atEnd(); ++it)
{	
}
I get error:

error C2248: 'UT_SymbolMap<ITEM_T,SAFE_STRINGS>::UT_SymbolMap' : cannot access protected member declared in class 'UT_SymbolMap<ITEM_T,SAFE_STRINGS>'

Based on this example -> http://www.sidefx.com/docs/hdk13.0/_h_d_k__g_a__porting.html#HDK_GA_PortingCookbook_Iterating_Over_Attributes

When I try this:

	
for (GA_AttributeDict::iterator it = gdp->pointAttribs()).begin(GA_SCOPE_PUBLIC); !it.atEnd(); it.advance())
{
}
then it shouts that there is no advance() method. Example is from -> http://www.sidefx.com/docs/hdk13.0/_h_d_k__geometry__attributes.html#traverseAttribute

?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...