Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
AMP::LinearAlgebra::VectorFactory Class Referenceabstract

Vector factory class. More...

#include <VectorTests.h>

Inheritance diagram for AMP::LinearAlgebra::VectorFactory:
Inheritance graph
[legend]

Public Member Functions

virtual AMP::LinearAlgebra::Vector::shared_ptr getVector () const =0
 
virtual std::string name () const =0
 
virtual ~VectorFactory ()
 

Static Public Member Functions

static std::shared_ptr< Vectorcreate (int64_t fid, AMP::IO::RestartManager *manager)
 Create the vector from the restart file.
 
static VectorFactorygetFactory ()
 get a singleton instance of the factory
 
template<class VECTOR >
static void registerVector (const std::string &name)
 Register a vector with the factory.
 

Protected Member Functions

 VectorFactory ()
 
 VectorFactory (const VectorFactory &)
 

Detailed Description

Vector factory class.

A helper class to generate vectors.

Definition at line 20 of file VectorTests.h.

Constructor & Destructor Documentation

◆ ~VectorFactory()

virtual AMP::LinearAlgebra::VectorFactory::~VectorFactory ( )
inlinevirtual

Definition at line 23 of file VectorTests.h.

◆ VectorFactory() [1/2]

AMP::LinearAlgebra::VectorFactory::VectorFactory ( )
inlineprotected

Definition at line 28 of file VectorTests.h.

◆ VectorFactory() [2/2]

AMP::LinearAlgebra::VectorFactory::VectorFactory ( const VectorFactory )
protected

Member Function Documentation

◆ create()

static std::shared_ptr< Vector > AMP::LinearAlgebra::VectorFactory::create ( int64_t  fid,
AMP::IO::RestartManager manager 
)
static

Create the vector from the restart file.

◆ getFactory()

static VectorFactory & AMP::LinearAlgebra::VectorFactory::getFactory ( )
inlinestatic

get a singleton instance of the factory

Definition at line 28 of file VectorFactory.h.

◆ getVector()

virtual AMP::LinearAlgebra::Vector::shared_ptr AMP::LinearAlgebra::VectorFactory::getVector ( ) const
pure virtual

◆ name()

virtual std::string AMP::LinearAlgebra::VectorFactory::name ( ) const
pure virtual

◆ registerVector()

template<class VECTOR >
static void AMP::LinearAlgebra::VectorFactory::registerVector ( const std::string &  name)
inlinestatic

Register a vector with the factory.

Definition at line 39 of file VectorFactory.h.

References name().


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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:43.
Comments on this page