bpp-phyl3
3.0.0
AlignedPhyloLikelihoodProduct.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: The Bio++ Development Group
2
//
3
// SPDX-License-Identifier: CECILL-2.1
4
5
#ifndef BPP_PHYL_LIKELIHOOD_PHYLOLIKELIHOODS_PRODUCTOFALIGNEDPHYLOLIKELIHOOD_H
6
#define BPP_PHYL_LIKELIHOOD_PHYLOLIKELIHOODS_PRODUCTOFALIGNEDPHYLOLIKELIHOOD_H
7
8
9
// From bpp-seq:
10
#include <
Bpp/Seq/Alphabet/Alphabet.h
>
11
#include <
Bpp/Seq/Container/AlignmentData.h
>
12
13
#include "
AlignedPhyloLikelihoodSet.h
"
14
15
namespace
bpp
16
{
21
class
AlignedPhyloLikelihoodProduct
:
22
public
AbstractAlignedPhyloLikelihoodSet
23
{
27
mutable
std::shared_ptr<AlignedLikelihoodCalculation>
likCal_
;
28
29
public
:
30
AlignedPhyloLikelihoodProduct
(
31
Context
&
context
,
32
std::shared_ptr<PhyloLikelihoodContainer> pC,
33
bool
inCollection =
true
);
34
35
AlignedPhyloLikelihoodProduct
(
36
Context
&
context
,
37
std::shared_ptr<PhyloLikelihoodContainer> pC,
38
const
std::vector<size_t>& nPhylo,
39
bool
inCollection =
true
);
40
41
virtual
~AlignedPhyloLikelihoodProduct
() {}
42
43
protected
:
44
AlignedPhyloLikelihoodProduct
(
const
AlignedPhyloLikelihoodProduct
& sd) :
45
AbstractPhyloLikelihood
(sd),
46
AbstractParametrizable
(
""
),
47
AbstractPhyloLikelihoodSet
(sd),
48
AbstractAlignedPhyloLikelihood
(sd),
49
AbstractAlignedPhyloLikelihoodSet
(sd),
50
likCal_
(sd.
likCal_
)
51
{}
52
53
AlignedPhyloLikelihoodProduct
&
operator=
(
const
AlignedPhyloLikelihoodProduct
& sd)
54
{
55
AbstractAlignedPhyloLikelihoodSet::operator=
(sd);
56
likCal_
= sd.
likCal_
;
57
return
*
this
;
58
}
59
60
AlignedPhyloLikelihoodProduct
*
clone
()
const
61
{
62
return
new
AlignedPhyloLikelihoodProduct
(*
this
);
63
}
64
65
public
:
66
LikelihoodCalculation
&
likelihoodCalculation
()
const
67
{
68
return
*
likCal_
;
69
}
70
71
std::shared_ptr<LikelihoodCalculation>
getLikelihoodCalculation
()
const
72
{
73
return
likCal_
;
74
}
75
76
AlignedLikelihoodCalculation
&
alignedLikelihoodCalculation
()
const
77
{
78
return
*
likCal_
;
79
}
80
81
std::shared_ptr<AlignedLikelihoodCalculation>
getAlignedLikelihoodCalculation
()
const
82
{
83
return
likCal_
;
84
}
85
};
86
}
// end of namespace bpp.
87
#endif
// BPP_PHYL_LIKELIHOOD_PHYLOLIKELIHOODS_PRODUCTOFALIGNEDPHYLOLIKELIHOOD_H
AlignedPhyloLikelihoodSet.h
AlignmentData.h
Alphabet.h
bpp::AbstractAlignedPhyloLikelihoodSet
The AlignedPhyloLikelihoodSet abstract class.
Definition:
AlignedPhyloLikelihoodSet.h:66
bpp::AbstractAlignedPhyloLikelihoodSet::operator=
AbstractAlignedPhyloLikelihoodSet & operator=(const AbstractAlignedPhyloLikelihoodSet &soap)
Definition:
AlignedPhyloLikelihoodSet.h:88
bpp::AbstractAlignedPhyloLikelihood
Definition:
AlignedPhyloLikelihood.h:109
bpp::AbstractParametrizable
bpp::AbstractPhyloLikelihoodSet
The PhyloLikelihoodSet class, to manage a subset of PhyloLikelihoods from a given PhyloLikelihoodCont...
Definition:
PhyloLikelihoodSet.h:69
bpp::AbstractPhyloLikelihood
Definition:
AbstractPhyloLikelihood.h:20
bpp::AbstractPhyloLikelihood::context
const Context & context() const override
Definition:
AbstractPhyloLikelihood.h:73
bpp::AlignedLikelihoodCalculation
Definition:
LikelihoodCalculation.h:126
bpp::AlignedPhyloLikelihoodProduct
The AlignedPhyloLikelihoodProduct class, for phylogenetic likelihood on several independent data.
Definition:
AlignedPhyloLikelihoodProduct.h:23
bpp::AlignedPhyloLikelihoodProduct::operator=
AlignedPhyloLikelihoodProduct & operator=(const AlignedPhyloLikelihoodProduct &sd)
Definition:
AlignedPhyloLikelihoodProduct.h:53
bpp::AlignedPhyloLikelihoodProduct::alignedLikelihoodCalculation
AlignedLikelihoodCalculation & alignedLikelihoodCalculation() const
Definition:
AlignedPhyloLikelihoodProduct.h:76
bpp::AlignedPhyloLikelihoodProduct::AlignedPhyloLikelihoodProduct
AlignedPhyloLikelihoodProduct(const AlignedPhyloLikelihoodProduct &sd)
Definition:
AlignedPhyloLikelihoodProduct.h:44
bpp::AlignedPhyloLikelihoodProduct::likelihoodCalculation
LikelihoodCalculation & likelihoodCalculation() const
Definition:
AlignedPhyloLikelihoodProduct.h:66
bpp::AlignedPhyloLikelihoodProduct::likCal_
std::shared_ptr< AlignedLikelihoodCalculation > likCal_
Definition:
AlignedPhyloLikelihoodProduct.h:27
bpp::AlignedPhyloLikelihoodProduct::AlignedPhyloLikelihoodProduct
AlignedPhyloLikelihoodProduct(Context &context, std::shared_ptr< PhyloLikelihoodContainer > pC, bool inCollection=true)
Definition:
AlignedPhyloLikelihoodProduct.cpp:10
bpp::AlignedPhyloLikelihoodProduct::clone
AlignedPhyloLikelihoodProduct * clone() const
Definition:
AlignedPhyloLikelihoodProduct.h:60
bpp::AlignedPhyloLikelihoodProduct::~AlignedPhyloLikelihoodProduct
virtual ~AlignedPhyloLikelihoodProduct()
Definition:
AlignedPhyloLikelihoodProduct.h:41
bpp::AlignedPhyloLikelihoodProduct::getLikelihoodCalculation
std::shared_ptr< LikelihoodCalculation > getLikelihoodCalculation() const
Definition:
AlignedPhyloLikelihoodProduct.h:71
bpp::AlignedPhyloLikelihoodProduct::getAlignedLikelihoodCalculation
std::shared_ptr< AlignedLikelihoodCalculation > getAlignedLikelihoodCalculation() const
Definition:
AlignedPhyloLikelihoodProduct.h:81
bpp::Context
Context for dataflow node construction.
Definition:
DataFlow.h:527
bpp::LikelihoodCalculation
Definition:
LikelihoodCalculation.h:22
bpp
Defines the basic types of data flow nodes.
Bpp
Phyl
Likelihood
PhyloLikelihoods
AlignedPhyloLikelihoodProduct.h
Generated on Fri Jul 19 2024 11:49:21 for bpp-phyl3 by
1.9.1