Castor3D 0.16.0
Multiplatform 3D engine
Protected Member Functions | List of all members
castor::Unique< T > Class Template Reference

Representation of a Unique instance class. More...

#include <Unique.hpp>

Inheritance diagram for castor::Unique< T >:
Inheritance graph
[legend]
Collaboration diagram for castor::Unique< T >:
Collaboration graph
[legend]

Protected Member Functions

 Unique (T *pThis)
 Constructor.
 
 ~Unique () noexcept
 Destructor.
 

Detailed Description

template<class T>
class castor::Unique< T >

Representation of a Unique instance class.

Remarks
If another instance is to be created, an exception is thrown

Constructor & Destructor Documentation

◆ Unique()

template<class T >
castor::Unique< T >::Unique ( T * pThis)
inlineexplicitprotected

Constructor.

Remarks
Throws an exception if the instance is already initialised.

References CU_UnicityError, and castor::eAnInstance.

◆ ~Unique()

template<class T >
castor::Unique< T >::~Unique ( )
inlineprotectednoexcept

Destructor.


The documentation for this class was generated from the following files: