Support Forum       G3D Web Page     
Static Public Member Functions | Static Protected Member Functions | Friends | List of all members
G3D::PowerOfTwoAdapter< T > Class Template Reference

Maps an integer pointer to a power of two G3D::Pointer value. More...

Inherits G3D::ReferenceCountedObject.

Static Public Member Functions

static Pointer< T > create (Pointer< T > ptr)
 

Static Protected Member Functions

template<class T , class ... ArgTypes>
static shared_ptr< T > createShared (ArgTypes &&... args)
 Like std::make_shared, but works for protected constructors. More...
 

Friends

class Pointer< int >
 

Detailed Description

template<class T>
class G3D::PowerOfTwoAdapter< T >

Maps an integer pointer to a power of two G3D::Pointer value.

See also
NegativeAdapter

Member Function Documentation

◆ create()

template<class T >
static Pointer<T> G3D::PowerOfTwoAdapter< T >::create ( Pointer< T >  ptr)
inlinestatic

◆ createShared()

template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared ( ArgTypes &&...  args)
inlinestaticprotectedinherited

Like std::make_shared, but works for protected constructors.

Call as createShared<myclass>.

Friends And Related Function Documentation

◆ Pointer< int >

template<class T >
friend class Pointer< int >
friend

documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15