Public Member Functions | Friends

LibGeoDecomp::Clonable< BASE, IMPLEMENTATION > Class Template Reference

This class adds a virtual copy constructor to child classes. More...

#include <clonable.h>

Inherits LibGeoDecomp::BASE.

Collaboration diagram for LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Clonable ()
 these c-tors simply delegate to the BASE type, which includes the default c-tor, sans parameters.
template<typename T1 >
 Clonable (const T1 &p1)
template<typename T1 , typename T2 >
 Clonable (const T1 &p1, const T2 &p2)
template<typename T1 , typename T2 , typename T3 >
 Clonable (const T1 &p1, const T2 &p2, const T3 &p3)
BASEclone () const

Friends

class Serialization

Detailed Description

template<typename BASE, typename IMPLEMENTATION>
class LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >

This class adds a virtual copy constructor to child classes.

It's implemented using CRTP.


Constructor & Destructor Documentation

template<typename BASE, typename IMPLEMENTATION>
LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >::Clonable (  )  [inline]

these c-tors simply delegate to the BASE type, which includes the default c-tor, sans parameters.

template<typename BASE, typename IMPLEMENTATION>
template<typename T1 >
LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >::Clonable ( const T1 &  p1  )  [inline, explicit]
template<typename BASE, typename IMPLEMENTATION>
template<typename T1 , typename T2 >
LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >::Clonable ( const T1 &  p1,
const T2 &  p2 
) [inline, explicit]
template<typename BASE, typename IMPLEMENTATION>
template<typename T1 , typename T2 , typename T3 >
LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >::Clonable ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3 
) [inline, explicit]

Member Function Documentation

template<typename BASE, typename IMPLEMENTATION>
BASE* LibGeoDecomp::Clonable< BASE, IMPLEMENTATION >::clone (  )  const [inline]

Friends And Related Function Documentation

template<typename BASE, typename IMPLEMENTATION>
friend class Serialization [friend]

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