aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Edge.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Edge.hpp')
-rw-r--r--src/engine/Edge.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/engine/Edge.hpp b/src/engine/Edge.hpp
index 10c7ab8..6d916c1 100644
--- a/src/engine/Edge.hpp
+++ b/src/engine/Edge.hpp
@@ -22,8 +22,6 @@
#include <boost/utility.hpp>
#include "raul/DoubleBuffer.hpp"
-#include "raul/SharedPtr.hpp"
-#include "raul/WeakPtr.hpp"
#include "machina/types.hpp"
@@ -38,7 +36,7 @@ class Edge
: public Stateful
{
public:
- Edge(WeakPtr<Node> tail, SharedPtr<Node> head)
+ Edge(WPtr<Node> tail, SPtr<Node> head)
: _probability(1.0f)
, _tail(tail)
, _head(head)
@@ -47,11 +45,11 @@ public:
void set(URIInt key, const Raul::Atom& value);
void write_state(Sord::Model& model);
- WeakPtr<Node> tail() { return _tail; }
- SharedPtr<Node> head() { return _head; }
+ WPtr<Node> tail() { return _tail; }
+ SPtr<Node> head() { return _head; }
- void set_tail(WeakPtr<Node> tail) { _tail = tail; }
- void set_head(SharedPtr<Node> head) { _head = head; }
+ void set_tail(WPtr<Node> tail) { _tail = tail; }
+ void set_head(SPtr<Node> head) { _head = head; }
inline float probability() { return _probability.get(); }
inline void set_probability(float p) { _probability.set(p); }
@@ -59,8 +57,8 @@ public:
private:
Raul::DoubleBuffer<float> _probability;
- WeakPtr<Node> _tail;
- SharedPtr<Node> _head;
+ WPtr<Node> _tail;
+ SPtr<Node> _head;
};
} // namespace Machina