FBX C++ API Reference
fbxmap.h File Reference

Classes

struct  FbxLessCompare< Type >
 Default compare functor for FbxMap and FbxSet, which assumes operator < is defined. More...
 
class  FbxMap< Key, Type, Compare, Allocator >
 This class implements an efficient map based on key comparison, which stores key-value pairs. More...
 
class  FbxMap< Key, Type, Compare, Allocator >::KeyValuePair
 This class defines the key-value pairs used by the map. More...
 
class  FbxSimpleMap< Key, Type, Compare >
 A simple map class representing a dictionary-like data structure. More...
 
class  FbxObjectMap< Type, Compare >
 This class template declare a simple FbxObject map. More...
 
class  FbxObjectStringMap
 A class that maps strings to objects with a basic string comparator. More...
 

Functions

template<typename K , typename V , typename C , typename A >
void FbxMapFree (FbxMap< K, V, C, A > &pMap)
 Call FbxFree on each element of the map, and then clear it. More...
 
template<typename K , typename V , typename C , typename A >
void FbxMapDelete (FbxMap< K, V, C, A > &pMap)
 Call FbxDelete on each element of the map, and then clear it. More...
 
template<typename K , typename V , typename C , typename A >
void FbxMapDestroy (FbxMap< K, V, C, A > &pMap)
 Call Destroy on each element of the map, and then clear it. More...
 

Function Documentation

◆ FbxMapFree()

void FbxMapFree ( FbxMap< K, V, C, A > &  pMap)
inline

Call FbxFree on each element of the map, and then clear it.

Definition at line 374 of file fbxmap.h.

375 {
376  for( typename FbxMap<K, V, C, A>::Iterator i = pMap.Begin(); i != pMap.End(); ++i )
377  {
378  FbxFree(i->GetValue());
379  }
380  pMap.Clear();
381 }
Iterator End()
Retrieve the end iterator of the map.
Definition: fbxmap.h:151
Iterator Begin()
Retrieve the begin iterator of the map.
Definition: fbxmap.h:145
StorageType::IteratorType Iterator
Definition: fbxmap.h:99
void Clear()
Clear the map.
Definition: fbxmap.h:133

◆ FbxMapDelete()

void FbxMapDelete ( FbxMap< K, V, C, A > &  pMap)
inline

Call FbxDelete on each element of the map, and then clear it.

Definition at line 384 of file fbxmap.h.

385 {
386  for( typename FbxMap<K, V, C, A>::Iterator i = pMap.Begin(); i != pMap.End(); ++i )
387  {
388  FbxDelete(i->GetValue());
389  }
390  pMap.Clear();
391 }
Iterator End()
Retrieve the end iterator of the map.
Definition: fbxmap.h:151
Iterator Begin()
Retrieve the begin iterator of the map.
Definition: fbxmap.h:145
void FbxDelete(T *p)
Deletion policy for pointer template classes that uses the FbxDelete() function.
Definition: fbxnew.h:341
StorageType::IteratorType Iterator
Definition: fbxmap.h:99
void Clear()
Clear the map.
Definition: fbxmap.h:133

◆ FbxMapDestroy()

void FbxMapDestroy ( FbxMap< K, V, C, A > &  pMap)
inline

Call Destroy on each element of the map, and then clear it.

Definition at line 394 of file fbxmap.h.

395 {
396  for( typename FbxMap<K, V, C, A>::Iterator i = pMap.Begin(); i != pMap.End(); ++i )
397  {
398  i->GetValue()->Destroy();
399  }
400  pMap.Clear();
401 }
Iterator End()
Retrieve the end iterator of the map.
Definition: fbxmap.h:151
Iterator Begin()
Retrieve the begin iterator of the map.
Definition: fbxmap.h:145
StorageType::IteratorType Iterator
Definition: fbxmap.h:99
void Clear()
Clear the map.
Definition: fbxmap.h:133

Go to the source code of this file.