SHOGUN  6.1.3
List of all members | Public Member Functions
Unique< T > Class Template Reference

Detailed Description

template<typename T>
class shogun::Unique< T >

Holds unique pointer that is deleted once this holder is deleted. Its main usage is to hold a pointer to implementation (pimpl idiom):

class Self; Unique<Self> self;

Definition at line 15 of file unique.h.

Public Member Functions

 Unique ()
 
 ~Unique ()
 
 Unique (const Unique &)
 
Uniqueoperator= (const Unique &other)
 
T * operator-> () const
 

Constructor & Destructor Documentation

◆ Unique() [1/2]

Unique ( )

Creates an instance of something unique.

Calls default constructor of type T.

Definition at line 23 of file unique.h.

◆ ~Unique()

~Unique ( )

Definition at line 27 of file unique.h.

◆ Unique() [2/2]

Unique ( const Unique< T > &  )

Not implemented copy constructor

Member Function Documentation

◆ operator->()

T* operator-> ( ) const

Access underlying unique object as a raw pointer

Definition at line 38 of file unique.h.

◆ operator=()

Unique& operator= ( const Unique< T > &  other)

Not implemented assignment operator


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

SHOGUN Machine Learning Toolbox - Documentation