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
|
||||
ZeroConstant(const word& entryName, const dictionary& dict);
|
||||
|
||||
//- Construct and return a clzero
|
||||
virtual tmp<Function1<Type>> clzero() const
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<Type>> clone() const
|
||||
{
|
||||
return tmp<Function1<Type>>(new ZeroConstant<Type>(*this));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<scalar>> clone() const
|
||||
{
|
||||
return tmp<Function1<scalar>>(new halfCosineRamp(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~halfCosineRamp();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<scalar>> clone() const
|
||||
{
|
||||
return tmp<Function1<scalar>>(new linearRamp(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~linearRamp();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<scalar>> clone() const
|
||||
{
|
||||
return tmp<Function1<scalar>>(new quadraticRamp(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~quadraticRamp();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<scalar>> clone() const
|
||||
{
|
||||
return tmp<Function1<scalar>>(new quarterCosineRamp(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~quarterCosineRamp();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,12 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<scalar>> clone() const
|
||||
{
|
||||
return tmp<Function1<scalar>>(new quarterSineRamp(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~quarterSineRamp();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue