paludis  Version 2.6.0
Public Member Functions | List of all members
paludis::CloneUsingThis< Base_, Child_ > Class Template Reference

#include <clone.hh>

+ Inheritance diagram for paludis::CloneUsingThis< Base_, Child_ >:

Public Member Functions

virtual std::shared_ptr< Base_ > clone () const PALUDIS_ATTRIBUTE((warn_unused_result))
 
- Public Member Functions inherited from paludis::Cloneable< Base_ >
virtual ~Cloneable ()
 

Basic operations

virtual ~CloneUsingThis ()
 

Detailed Description

template<typename Base_, typename Child_>
class paludis::CloneUsingThis< Base_, Child_ >

Helper class implementing the clone() method using the copy contructor.

Member Function Documentation

template<typename Base_, typename Child_>
virtual std::shared_ptr<Base_> paludis::CloneUsingThis< Base_, Child_ >::clone ( ) const
virtual

Return a new copy of ourselves.

Implements paludis::Cloneable< Base_ >.


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