Public Member Functions | |
| DiscreteFunctionStub (const std::string &name, int tensorOrder=0, int dim=1, const RCP< DiscreteFuncDataStub > &data=RCP< DiscreteFuncDataStub >(), int listIndex=0) | |
| DiscreteFunctionStub (const Array< string > &name, const Array< std::pair< int, int > > &tensorStructure, const RCP< DiscreteFuncDataStub > &data=RCP< DiscreteFuncDataStub >()) | |
| DiscreteFunctionStub (const std::string &name, const SpectralBasis &sbasis, int tensorOrder=0, int dim=1, const RCP< DiscreteFuncDataStub > &data=RCP< DiscreteFuncDataStub >(), int listIndex=0) | |
| DiscreteFunctionStub (const Array< string > &name, const SpectralBasis &sbasis, const Array< std::pair< int, int > > &tensorStructure, const RCP< DiscreteFuncDataStub > &data=RCP< DiscreteFuncDataStub >()) | |
| virtual | ~DiscreteFunctionStub () |
| virtual RCP< ExprBase > | getRcp () |
Protected Member Functions | |
| void | initTensor (const std::string &name, int tensorOrder, int dim, const RCP< DiscreteFuncDataStub > &data, int listIndex) |
| void | initTensorSpectral (const std::string &name, const SpectralBasis &sbasis, int tensorOrder, int dim, const RCP< DiscreteFuncDataStub > &data, int listIndex) |
| const RCP< DiscreteFuncDataStub > & | dataStub () const |
Private Attributes | |
| RCP< DiscreteFuncDataStub > | data_ |
DiscreteFunctionStub is the base class for discrete functions. Each framework will need to implement its own subclass of DiscreteFunctionStub.
The interface is left very minimal so as to not place any constraints on how a framework might specify vectors and bases. When a framework needs any information about the discrete function, it will have to get it by downcasting to the appropriate framework-specific subclass.
For purposes of interaction with the Sundance core, no additional methods are required. However, most frameworks will require extensions to DiscreteFunctionStub that can supply the framework with information on the basis and vector used by the discrete func. See the demo and standard frameworks for information on how to do this.
Definition at line 73 of file SundanceDiscreteFunctionStub.hpp.
| DiscreteFunctionStub::DiscreteFunctionStub | ( | const std::string & | name, |
| int | tensorOrder = 0, |
||
| int | dim = 1, |
||
| const RCP< DiscreteFuncDataStub > & | data = RCP<DiscreteFuncDataStub>(), |
||
| int | listIndex = 0 |
||
| ) |
Definition at line 56 of file SundanceDiscreteFunctionStub.cpp.
References initTensor().
Referenced by DiscreteFunctionStub().
| DiscreteFunctionStub::DiscreteFunctionStub | ( | const Array< string > & | name, |
| const Array< std::pair< int, int > > & | tensorStructure, | ||
| const RCP< DiscreteFuncDataStub > & | data = RCP<DiscreteFuncDataStub>() |
||
| ) |
Definition at line 146 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), DiscreteFunctionStub(), initTensor(), and Teuchos::toString().
| DiscreteFunctionStub::DiscreteFunctionStub | ( | const std::string & | name, |
| const SpectralBasis & | sbasis, | ||
| int | tensorOrder = 0, |
||
| int | dim = 1, |
||
| const RCP< DiscreteFuncDataStub > & | data = RCP<DiscreteFuncDataStub>(), |
||
| int | listIndex = 0 |
||
| ) |
Definition at line 177 of file SundanceDiscreteFunctionStub.cpp.
References initTensorSpectral().
| DiscreteFunctionStub::DiscreteFunctionStub | ( | const Array< string > & | name, |
| const SpectralBasis & | sbasis, | ||
| const Array< std::pair< int, int > > & | tensorStructure, | ||
| const RCP< DiscreteFuncDataStub > & | data = RCP<DiscreteFuncDataStub>() |
||
| ) |
Definition at line 188 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), DiscreteFunctionStub(), initTensorSpectral(), and Teuchos::toString().
| virtual Sundance::DiscreteFunctionStub::~DiscreteFunctionStub | ( | ) | [inline, virtual] |
virtual destructor
Definition at line 100 of file SundanceDiscreteFunctionStub.hpp.
| const RCP<DiscreteFuncDataStub>& Sundance::DiscreteFunctionStub::dataStub | ( | ) | const [inline, protected] |
Definition at line 119 of file SundanceDiscreteFunctionStub.hpp.
References data_.
Referenced by Sundance::DiscreteFunction::DiscreteFunction().
| virtual RCP<ExprBase> Sundance::DiscreteFunctionStub::getRcp | ( | ) | [inline, virtual] |
Reimplemented from Sundance::ListExpr.
Definition at line 103 of file SundanceDiscreteFunctionStub.hpp.
| void DiscreteFunctionStub::initTensor | ( | const std::string & | name, |
| int | tensorOrder, | ||
| int | dim, | ||
| const RCP< DiscreteFuncDataStub > & | data, | ||
| int | listIndex | ||
| ) | [protected] |
Definition at line 66 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), Sundance::FunctionIdentifier::createComponent(), Sundance::makeFuncID(), and Sundance::ExprBase::toString().
Referenced by DiscreteFunctionStub().
| void DiscreteFunctionStub::initTensorSpectral | ( | const std::string & | name, |
| const SpectralBasis & | sbasis, | ||
| int | tensorOrder, | ||
| int | dim, | ||
| const RCP< DiscreteFuncDataStub > & | data, | ||
| int | listIndex | ||
| ) | [protected] |
Definition at line 94 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), Sundance::FunctionIdentifier::createComponent(), Sundance::makeFuncID(), Sundance::ExprBase::toString(), and Teuchos::toString().
Referenced by DiscreteFunctionStub().
RCP<DiscreteFuncDataStub> Sundance::DiscreteFunctionStub::data_ [private] |
Reimplemented in Sundance::DiscreteFunction.
Definition at line 122 of file SundanceDiscreteFunctionStub.hpp.
Referenced by dataStub().