Function1::ramp function: Added clone function
This commit is contained in:
parent
e119636ddb
commit
61459c0e7f
6 changed files with 32 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ public:
|
||||||
//- Construct from entry name and dictionary
|
//- Construct from entry name and dictionary
|
||||||
ZeroConstant(const word& entryName, const dictionary& dict);
|
ZeroConstant(const word& entryName, const dictionary& dict);
|
||||||
|
|
||||||
//- Construct and return a clzero
|
//- Construct and return a clone
|
||||||
virtual tmp<Function1<Type>> clzero() const
|
virtual tmp<Function1<Type>> clone() const
|
||||||
{
|
{
|
||||||
return tmp<Function1<Type>>(new ZeroConstant<Type>(*this));
|
return tmp<Function1<Type>>(new ZeroConstant<Type>(*this));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual tmp<Function1<scalar>> clone() const
|
||||||
|
{
|
||||||
|
return tmp<Function1<scalar>>(new halfCosineRamp(*this));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~halfCosineRamp();
|
virtual ~halfCosineRamp();
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual tmp<Function1<scalar>> clone() const
|
||||||
|
{
|
||||||
|
return tmp<Function1<scalar>>(new linearRamp(*this));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~linearRamp();
|
virtual ~linearRamp();
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual tmp<Function1<scalar>> clone() const
|
||||||
|
{
|
||||||
|
return tmp<Function1<scalar>>(new quadraticRamp(*this));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~quadraticRamp();
|
virtual ~quadraticRamp();
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual tmp<Function1<scalar>> clone() const
|
||||||
|
{
|
||||||
|
return tmp<Function1<scalar>>(new quarterCosineRamp(*this));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~quarterCosineRamp();
|
virtual ~quarterCosineRamp();
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual tmp<Function1<scalar>> clone() const
|
||||||
|
{
|
||||||
|
return tmp<Function1<scalar>>(new quarterSineRamp(*this));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~quarterSineRamp();
|
virtual ~quarterSineRamp();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue