API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > OdDbDatabase::approxNumObjects Method
OdDbDatabase::approxNumObjects Method
Syntax
C++
OdInt32 approxNumObjects() const;

Returns the approximate number of objects in this database object.

This function returns a value greater than or equal to the number of objects in this database object. 

This number is used to construct an OdDbObjectIdArray that can hold all the objects in the database, avoiding memory fragmentation and increasing performance.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.