33 #ifndef WALLAROO_DETAIL_FACTORY_H_
34 #define WALLAROO_DETAIL_FACTORY_H_
46 template <
class T,
class P1,
class P2 >
50 static cxx0x::shared_ptr< Part >
Create(
const P1& p1,
const P2& p2 )
52 return cxx0x::make_shared< T >( p1, p2 );
56 template <
class T,
class P >
60 static cxx0x::shared_ptr< Part >
Create(
const P& p )
62 return cxx0x::make_shared< T >( p );
70 static cxx0x::shared_ptr< Part >
Create()
72 return cxx0x::make_shared< T >();
79 #endif // WALLAROO_CLASS_H_
static cxx0x::shared_ptr< Part > Create()
Definition: factory.h:70
static cxx0x::shared_ptr< Part > Create(const P1 &p1, const P2 &p2)
Definition: factory.h:50
static cxx0x::shared_ptr< Part > Create(const P &p)
Definition: factory.h:60
Definition: attribute.h:45