Why does the ReflexiveFieldContainerType (FieldContainerType)
getFieldDesc(UInt32 index) method use 1-based indexing instead of 0
based. It seems rather odd to write loops like this:
for(i=1;i<ft->getNumFieldDescs()+1;i++)
{
desc = ft->getFieldDesc(i);
...
}
The code for getFieldDesc even seems to manually shift the index down
one behind the scenes to remap the range back to 0-based.
inline FieldDescriptionBase *ReflexiveContainerType::getFieldDesc(
UInt32 uiFieldId) const
{
if(uiFieldId - 1 < _vDescVec.size())
return _vDescVec[uiFieldId - 1];
else
return NULL;
}
Does anyone know why this is?
-Allen
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users