twacube: cleanup API
* spot/twacube/twacube.cc, spot/twacube/twacube.hh: Here.
This commit is contained in:
parent
c61b721a48
commit
f5585525f0
2 changed files with 4 additions and 25 deletions
|
|
@ -23,17 +23,8 @@
|
||||||
|
|
||||||
namespace spot
|
namespace spot
|
||||||
{
|
{
|
||||||
cstate::cstate(cstate&& s) noexcept: id_(std::move(s.id_))
|
cstate::cstate(cstate&&) noexcept
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
cstate::cstate(unsigned id): id_(id)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned cstate::label()
|
|
||||||
{
|
|
||||||
return id_;
|
|
||||||
}
|
|
||||||
|
|
||||||
transition::transition(transition&& t) noexcept:
|
transition::transition(transition&& t) noexcept:
|
||||||
cube_(std::move(t.cube_)), acc_(std::move(t.acc_))
|
cube_(std::move(t.cube_)), acc_(std::move(t.acc_))
|
||||||
|
|
@ -46,8 +37,7 @@ namespace spot
|
||||||
|
|
||||||
twacube::twacube(const std::vector<std::string> aps):
|
twacube::twacube(const std::vector<std::string> aps):
|
||||||
init_(0U), aps_(aps), cubeset_(aps.size())
|
init_(0U), aps_(aps), cubeset_(aps.size())
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
||||||
twacube::~twacube()
|
twacube::~twacube()
|
||||||
{
|
{
|
||||||
|
|
@ -56,11 +46,6 @@ namespace spot
|
||||||
cs.release(theg_.edge_data(i).cube_);
|
cs.release(theg_.edge_data(i).cube_);
|
||||||
}
|
}
|
||||||
|
|
||||||
const acc_cond& twacube::acc() const
|
|
||||||
{
|
|
||||||
return acc_;
|
|
||||||
}
|
|
||||||
|
|
||||||
acc_cond& twacube::acc()
|
acc_cond& twacube::acc()
|
||||||
{
|
{
|
||||||
return acc_;
|
return acc_;
|
||||||
|
|
|
||||||
|
|
@ -36,12 +36,7 @@ namespace spot
|
||||||
cstate() = default;
|
cstate() = default;
|
||||||
cstate(const cstate& s) = delete;
|
cstate(const cstate& s) = delete;
|
||||||
cstate(cstate&& s) noexcept;
|
cstate(cstate&& s) noexcept;
|
||||||
cstate(unsigned id);
|
|
||||||
~cstate() = default;
|
~cstate() = default;
|
||||||
|
|
||||||
unsigned label();
|
|
||||||
private:
|
|
||||||
unsigned id_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \brief Class for representing a transition.
|
/// \brief Class for representing a transition.
|
||||||
|
|
@ -135,7 +130,6 @@ namespace spot
|
||||||
virtual ~twacube();
|
virtual ~twacube();
|
||||||
|
|
||||||
/// \brief Returns the acceptance condition associated to the automaton.
|
/// \brief Returns the acceptance condition associated to the automaton.
|
||||||
const acc_cond& acc() const;
|
|
||||||
acc_cond& acc();
|
acc_cond& acc();
|
||||||
|
|
||||||
/// \brief Returns the names of the atomic properties.
|
/// \brief Returns the names of the atomic properties.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue