API Reference > Classes > OdIfcClassesDictionary Class > OdIfcClassesDictionary Methods > OdIfcClassesDictionary::putAt Method
OdIfcClassesDictionary::putAt Method
Syntax
C++
virtual OdRxObjectPtr putAt(OdUInt32 id, OdRxObject* pObject);
Parameters 
Description 
OdUInt32 id 
[in] An index value that determines the position in the dictionary.  
OdRxObject* pObject 
[in] A raw pointer to a new element that should be set at the position in the dictionary.  

Returns a smart pointer to the dictionary element allocated at the specified position.

Sets a new element to the dictionary at the specified position.

If the specified position is incorrect (for example, when the index value is equal to or greater than the quantity of elements), the method returns a NULL smart pointer (smart pointer object's method isNull() returns true).

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.