MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MatrixFactory< T > Class Template Reference

Class that creates empty matrix objects of the specified type. More...

#include <MatrixFactory.h>

Collaboration diagram for MatrixFactory< T >:
Collaboration graph

Public Member Functions

 MatrixFactory (MatrixType type)
 Constructor from enum (internal use) for the MatrixFactory class.
 
 MatrixFactory (const std::string &type)
 Constructor from string (user config) for the MatrixFactory class.
 
std::unique_ptr< GenericMatrix< T > > createUnique ()
 Creation function that creates a Matrix based on the default type.
 
std::unique_ptr< GenericMatrix< T > > createUnique (MatrixType type)
 Creation function that creates a Matrix based on the supplied type.
 
std::shared_ptr< GenericMatrix< T > > createShared ()
 Creation function that creates a Matrix based on the default type.
 
std::shared_ptr< GenericMatrix< T > > createShared (MatrixType type)
 Creation function that creates a Matrix based on the supplied type.
 

Detailed Description

template<typename T>
class MatrixFactory< T >

Class that creates empty matrix objects of the specified type.

Constructor & Destructor Documentation

◆ MatrixFactory() [1/2]

Constructor from enum (internal use) for the MatrixFactory class.

◆ MatrixFactory() [2/2]

template<typename T >
MatrixFactory< T >::MatrixFactory ( const std::string &  type)

Constructor from string (user config) for the MatrixFactory class.

Member Function Documentation

◆ createShared() [1/2]

template<typename T >
std::shared_ptr< GenericMatrix< T > > MatrixFactory< T >::createShared ( )

Creation function that creates a Matrix based on the default type.

◆ createShared() [2/2]

template<typename T >
std::shared_ptr< GenericMatrix< T > > MatrixFactory< T >::createShared ( MatrixType  type)

Creation function that creates a Matrix based on the supplied type.

◆ createUnique() [1/2]

template<typename T >
std::unique_ptr< GenericMatrix< T > > MatrixFactory< T >::createUnique ( )

Creation function that creates a Matrix based on the default type.

◆ createUnique() [2/2]

template<typename T >
std::unique_ptr< GenericMatrix< T > > MatrixFactory< T >::createUnique ( MatrixType  type)

Creation function that creates a Matrix based on the supplied type.


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