Open CASCADE Technology
7.1.0.beta
|
Template class providing instantiation of type descriptors as singletons. The descriptors are defined as static variables in function get(), which is essential to ensure that they are initialized in correct sequence. More...
#include <Standard_Type.hxx>
Static Public Member Functions | |
static const Handle< Standard_Type > & | get () |
Template class providing instantiation of type descriptors as singletons. The descriptors are defined as static variables in function get(), which is essential to ensure that they are initialized in correct sequence.
For compilers that do not provide thread-safe initialization of static variables (C++11 feature, N2660), additional global variable is defined for each type to hold its type descriptor. These globals ensure that all types get initialized during the library loading and thus no concurrency occurs when type system is accessed from multiple threads.
|
static |