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_ |
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 62 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 45 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 135 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 | |||
) |
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 177 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), DiscreteFunctionStub(), initTensorSpectral(), and Teuchos::toString().
virtual Sundance::DiscreteFunctionStub::~DiscreteFunctionStub | ( | ) | [inline, virtual] |
virtual destructor
Definition at line 89 of file SundanceDiscreteFunctionStub.hpp.
const RCP<DiscreteFuncDataStub>& Sundance::DiscreteFunctionStub::dataStub | ( | ) | const [inline, protected] |
Definition at line 108 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 92 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 55 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 83 of file SundanceDiscreteFunctionStub.cpp.
References Sundance::ListExpr::append(), Sundance::makeFuncID(), Sundance::ExprBase::toString(), and Teuchos::toString().
Referenced by DiscreteFunctionStub().
RCP<DiscreteFuncDataStub> Sundance::DiscreteFunctionStub::data_ [private] |
Reimplemented in Sundance::DiscreteFunction.
Definition at line 111 of file SundanceDiscreteFunctionStub.hpp.
Referenced by dataStub().