Definition at line 60 of file fbxhashmap.h.
#include <fbxhashmap.h>
Public Types |
|
| typedef ListItem | ListItemType |
| typedef
FbxPair< KeyType, ValueType > |
KeyValuePair |
Public Member Functions |
|
| Iterator (const Iterator &pOther) | |
| ~Iterator () | |
| KeyValuePair | operator* () const |
| void | Next () |
| bool | operator== (const Iterator &pOther) const |
| bool | operator!= (const Iterator &pOther) const |
| Iterator & | operator= (const Iterator &pOther) |
Friends |
|
| class | FbxHashMap |
| typedef ListItem ListItemType |
Definition at line 64 of file fbxhashmap.h.
| typedef FbxPair< KeyType, ValueType > KeyValuePair |
Definition at line 65 of file fbxhashmap.h.
Definition at line 67 of file fbxhashmap.h.
:
mMap( pOther.mMap ),
mBucketIndex( pOther.mBucketIndex ),
mCurrentItem( pOther.mCurrentItem )
{
}
| ~Iterator | ( | ) | [inline] |
Definition at line 76 of file fbxhashmap.h.
{};
| KeyValuePair operator* | ( | ) | const [inline] |
Definition at line 78 of file fbxhashmap.h.
{
KeyValuePair lItem;
if( mCurrentItem )
{
lItem.mFirst = mCurrentItem->mKey;
lItem.mSecond = mCurrentItem->mValue;
return lItem;
}
FBX_ASSERT_NOW("Accessing out of bounds iterator");
return lItem;
}
| void Next | ( | ) | [inline] |
Definition at line 94 of file fbxhashmap.h.
{
if( !mCurrentItem )
return;
if( mCurrentItem->mNext )
{
mCurrentItem = mCurrentItem->mNext;
return;
}
else
{
mBucketIndex++;
for( ; mBucketIndex < mMap->mBuckets.GetCount(); ++mBucketIndex )
{
if( mMap->mBuckets[ mBucketIndex ] )
{
mCurrentItem = mMap->mBuckets[ mBucketIndex ];
return;
}
}
if( mBucketIndex >= mMap->mBuckets.GetCount() )
{
*this = mMap->End();
return;
}
}
}
| bool operator== | ( | const Iterator & | pOther | ) | const [inline] |
Definition at line 124 of file fbxhashmap.h.
{
return mCurrentItem == pOther.mCurrentItem &&
mBucketIndex == pOther.mBucketIndex &&
mMap == pOther.mMap;
}
| bool operator!= | ( | const Iterator & | pOther | ) | const [inline] |
Definition at line 131 of file fbxhashmap.h.
{
return !(*this == pOther);
}
Definition at line 137 of file fbxhashmap.h.
{
this->mBucketIndex = pOther.mBucketIndex;
this->mMap = pOther.mMap;
this->mCurrentItem = pOther.mCurrentItem;
return *this;
}
friend class FbxHashMap [friend] |
Definition at line 160 of file fbxhashmap.h.