concepts::RCP< const ElementFormula< F, G > > Class Template Reference
#include <elementFormulaRCP_boost.hh>
Public Member Functions | |
RCP< const ElementFormula< F, G > > & | operator= (const RCP< const ElementFormula< F, G > > &x) |
RCP< const ElementFormula< F, G > > & | operator= (const RCP< const ElementFormula< F, G > > &x) |
template<class H > | |
RCP< const ElementFormula< F, G > > & | operator= (const RCP< H > &x) |
template<class H > | |
RCP< const ElementFormula< F, G > > & | operator= (const RCP< H > &x) |
RCP () | |
Default constructor, creates an RCP to a NULL-pointer. More... | |
RCP () | |
Default constructor, creates an RCP to a NULL-pointer. More... | |
RCP (boost::shared_ptr< const ElementFormula< F, G > > &x) | |
conversion constructor from boost::shared_ptr More... | |
template<class H > | |
RCP (const boost::shared_ptr< H > &x) | |
conversion constructor from boost::shared_ptr<H>, where H can be converted into ElementFormula<F,G> More... | |
RCP (const ElementFormula< F, G > &x) | |
Constructor with a given reference, ElementFormula will be cloned. More... | |
RCP (const ElementFormula< F, G > &x) | |
Constructor with a given reference, ElementFormula will be cloned. More... | |
RCP (const ElementFormula< F, G > *x) | |
Constructor for a simple pointer to ElementFormula, which will be deleted by the RCP. More... | |
RCP (const ElementFormula< F, G > *x) | |
Constructor for a simple pointer to ElementFormula, which will be deleted by the RCP. More... | |
RCP (const F x) | |
Special constructor for a constant. More... | |
RCP (const F x) | |
Special constructor for a constant. More... | |
template<class H > | |
RCP (const std::shared_ptr< H > &x) | |
conversion constructor from std::shared_ptr<H>, where H can be converted into ElementFormula<F,G> More... | |
template<class H , class I > | |
RCP (H x, I y) | |
Constructor with any two parameters, I is a deleter function. More... | |
template<class H , class I > | |
RCP (H x, I y) | |
Constructor with any two parameters, I is a deleter function. More... | |
RCP (std::shared_ptr< const ElementFormula< F, G > > &x) | |
conversion constructor from std::shared_ptr More... | |
Detailed Description
template<class F, typename G>
class concepts::RCP< const ElementFormula< F, G > >
Definition at line 27 of file elementFormulaRCP_boost.hh.
Constructor & Destructor Documentation
◆ RCP() [1/14]
|
inlineexplicit |
Special constructor for a constant.
So, a constant can simply given to functions where a RCP<ElementFormula<F> > is expected.
- See also
- testsuite/testFormula.cc
Definition at line 38 of file elementFormulaRCP_boost.hh.
◆ RCP() [2/14]
|
inline |
Default constructor, creates an RCP to a NULL-pointer.
Definition at line 43 of file elementFormulaRCP_boost.hh.
◆ RCP() [3/14]
|
inlineexplicit |
Constructor for a simple pointer to ElementFormula, which will be deleted by the RCP.
It should be only called with pointer to dynamic variables, e.g.
RCP<const ElementFormula<Real> > p(new ConstFormula<Real>(4));
Do NOT use it with pointers to variables in the stack. Do not
ConstFormula<Real> i = 4; RCP<const ElementFormula<Real> > p(&i); // <-- DO NOT --
Instead use the constructor for references (below) which makes a clone.
Definition at line 67 of file elementFormulaRCP_boost.hh.
◆ RCP() [4/14]
|
inline |
conversion constructor from boost::shared_ptr
Definition at line 71 of file elementFormulaRCP_boost.hh.
◆ RCP() [5/14]
|
inline |
conversion constructor from boost::shared_ptr<H>, where H can be converted into ElementFormula<F,G>
Definition at line 77 of file elementFormulaRCP_boost.hh.
◆ RCP() [6/14]
|
inline |
Constructor with any two parameters, I is a deleter function.
Definition at line 82 of file elementFormulaRCP_boost.hh.
◆ RCP() [7/14]
|
inline |
Constructor with a given reference, ElementFormula will be cloned.
@BEWARE: this function is slightly inefficient (a copy is created), @obsolete: try to write code which does NOT depend on this function,
Definition at line 97 of file elementFormulaRCP_boost.hh.
◆ RCP() [8/14]
|
inlineexplicit |
Special constructor for a constant.
So, a constant can simply given to functions where a RCP<ElementFormula<F> > is expected.
- See also
- testsuite/testFormula.cc
Definition at line 38 of file elementFormulaRCP_std.hh.
◆ RCP() [9/14]
|
inline |
Default constructor, creates an RCP to a NULL-pointer.
Definition at line 43 of file elementFormulaRCP_std.hh.
◆ RCP() [10/14]
|
inlineexplicit |
Constructor for a simple pointer to ElementFormula, which will be deleted by the RCP.
It should be only called with pointer to dynamic variables, e.g.
RCP<const ElementFormula<Real> > p(new ConstFormula<Real>(4));
Do NOT use it with pointers to variables in the stack. Do not
ConstFormula<Real> i = 4; RCP<const ElementFormula<Real> > p(&i); // <-- DO NOT --
Instead use the constructor for references (below) which makes a clone.
Definition at line 67 of file elementFormulaRCP_std.hh.
◆ RCP() [11/14]
|
inline |
conversion constructor from std::shared_ptr
Definition at line 71 of file elementFormulaRCP_std.hh.
◆ RCP() [12/14]
|
inline |
conversion constructor from std::shared_ptr<H>, where H can be converted into ElementFormula<F,G>
Definition at line 77 of file elementFormulaRCP_std.hh.
◆ RCP() [13/14]
|
inline |
Constructor with any two parameters, I is a deleter function.
Definition at line 82 of file elementFormulaRCP_std.hh.
◆ RCP() [14/14]
|
inline |
Constructor with a given reference, ElementFormula will be cloned.
@BEWARE: this function is slightly inefficient (a copy is created), @obsolete: try to write code which does NOT depend on this function,
Definition at line 97 of file elementFormulaRCP_std.hh.
Member Function Documentation
◆ operator=() [1/4]
|
inline |
Definition at line 104 of file elementFormulaRCP_boost.hh.
◆ operator=() [2/4]
|
inline |
Definition at line 104 of file elementFormulaRCP_std.hh.
◆ operator=() [3/4]
|
inline |
Definition at line 112 of file elementFormulaRCP_boost.hh.
◆ operator=() [4/4]
|
inline |
Definition at line 112 of file elementFormulaRCP_std.hh.
The documentation for this class was generated from the following files:
- formula/elementFormulaRCP_boost.hh
- formula/elementFormulaRCP_std.hh