OpenRTM-aist  1.2.1
Protected Member Functions | List of all members
coil::NonCopyable Class Reference

Non-copyable Mixin. More...

#include <NonCopyable.h>

Inheritance diagram for coil::NonCopyable:
Inheritance graph
[legend]

Protected Member Functions

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

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 {};

Constructor & Destructor Documentation

coil::NonCopyable::NonCopyable ( )
inlineprotected

Constructor.

Constructor

Referenced by ~NonCopyable().

coil::NonCopyable::~NonCopyable ( )
inlineprotected

Destructor.

Destructor

References NonCopyable().


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