CppFactory  0.1.0
Modern c++ object factory implementation in <200 lines
Public Member Functions | List of all members
CppFactory::Factory< TObject, Args > Class Template Reference

Represents a traditional factory capable of creating allocating objects More...

#include <CppFactory.hpp>

Public Member Functions

virtual std::shared_ptr< TObject > Allocate (Args &&... args)
 Allocates an instance of type TObject More...
 

Detailed Description

template<class TObject, class ... Args>
class CppFactory::Factory< TObject, Args >

Represents a traditional factory capable of creating allocating objects

Parameters
TObjectThe type of object
ArgsThe ctor argument types for the object constructor

Member Function Documentation

◆ Allocate()

template<class TObject , class ... Args>
virtual std::shared_ptr<TObject> CppFactory::Factory< TObject, Args >::Allocate ( Args &&...  args)
inlinevirtual

Allocates an instance of type TObject


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