This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instantiateSingleton.h File Reference

Manage a single instance of an object. More...

+ Include dependency graph for instantiateSingleton.h:

Go to the source code of this file.

Macros

#define PXR_BASE_TF_INSTANTIATE_SINGLETON_H
 
#define TF_INSTANTIATE_SINGLETON(T)
 Source file definition that a type is being used as a singleton.
 

Detailed Description

Manage a single instance of an object.

Definition in file instantiateSingleton.h.

Macro Definition Documentation

◆ PXR_BASE_TF_INSTANTIATE_SINGLETON_H

#define PXR_BASE_TF_INSTANTIATE_SINGLETON_H

Definition at line 16 of file instantiateSingleton.h.

◆ TF_INSTANTIATE_SINGLETON

#define TF_INSTANTIATE_SINGLETON (   T)

Source file definition that a type is being used as a singleton.

To use a type T in conjunction with TfSingleton, add TF_INSTANTIATE_SINGLETON(T) in one source file (typically the .cpp) file for class T.

Definition at line 124 of file instantiateSingleton.h.