runPosIC, initializeGlobally
This commit is contained in:
@@ -3,25 +3,34 @@
|
||||
|
||||
using namespace MbD;
|
||||
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(std::shared_ptr<Symbolic> term)
|
||||
MbD::FunctionWithManyArgs::FunctionWithManyArgs()
|
||||
{
|
||||
terms = std::make_shared<std::vector<Symsptr>>();
|
||||
}
|
||||
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(Symsptr term) : FunctionWithManyArgs()
|
||||
{
|
||||
terms = std::make_shared<std::vector<std::shared_ptr<Symbolic>>>();
|
||||
terms->push_back(term);
|
||||
}
|
||||
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(std::shared_ptr<Symbolic> term, std::shared_ptr<Symbolic> term1) : FunctionWithManyArgs(term)
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(Symsptr term, Symsptr term1) : FunctionWithManyArgs(term)
|
||||
{
|
||||
terms->push_back(term1);
|
||||
}
|
||||
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(std::shared_ptr<Symbolic> term, std::shared_ptr<Symbolic> term1, std::shared_ptr<Symbolic> term2) : FunctionWithManyArgs(term, term1)
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(Symsptr term, Symsptr term1, Symsptr term2) : FunctionWithManyArgs(term, term1)
|
||||
{
|
||||
terms->push_back(term2);
|
||||
}
|
||||
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(std::shared_ptr<std::vector<std::shared_ptr<Symbolic>>> _terms) {
|
||||
terms = std::make_shared<std::vector<std::shared_ptr<Symbolic>>>();
|
||||
for (int i = 0; i < _terms->size(); i++)
|
||||
FunctionWithManyArgs::FunctionWithManyArgs(std::shared_ptr<std::vector<Symsptr>> _terms) {
|
||||
terms = std::make_shared<std::vector<Symsptr>>();
|
||||
for (size_t i = 0; i < _terms->size(); i++)
|
||||
terms->push_back(_terms->at(i));
|
||||
}
|
||||
|
||||
std::shared_ptr<std::vector<Symsptr>> MbD::FunctionWithManyArgs::getTerms()
|
||||
{
|
||||
return terms;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user