Protected Member Functions | Private Member Functions | List of all members
coil::NonCopyable Class Reference

Non-copyable Mixin. More...

#include <NonCopyable.h>

Protected Member Functions

 NonCopyable ()
 Constructor. More...
 
 ~NonCopyable ()
 Destructor. More...
 

Private Member Functions

 NonCopyable (const NonCopyable &)
 
NonCopyableoperator= (const NonCopyable &)
 

Detailed Description

Non-copyable Mixin.

This mix-in class prevents objects of a class from being copy-constructed or assigned to each other. User can prohibit the class copying by inheriting from NonCopyable class as a private base class.

-example: class CopyProhibitedClass : private NonCopyable {};

This mix-in class prevents objects of a class from being copy-constructed or assigned to each other. User can prohibit the class copying by inheriting from NonCopyable class as a private base class.ĦĦThe CRTP (Curiously Recursive Template Pattern) version would be used for empty base optimization for multipe-inherited.

-example: class CopyProhibitedClass : private NonCopyable {};

Definition at line 49 of file NonCopyable.h.

Constructor & Destructor Documentation

◆ NonCopyable() [1/2]

coil::NonCopyable::NonCopyable ( )
inlineprotected

Constructor.

Constructor

Definition at line 67 of file NonCopyable.h.

◆ ~NonCopyable()

coil::NonCopyable::~NonCopyable ( )
inlineprotected

Destructor.

Destructor

Definition at line 84 of file NonCopyable.h.

◆ NonCopyable() [2/2]

coil::NonCopyable::NonCopyable ( const NonCopyable )
private

Member Function Documentation

◆ operator=()

NonCopyable& coil::NonCopyable::operator= ( const NonCopyable )
private

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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:46