summaryrefslogtreecommitdiffstats
path: root/ingen/Properties.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commit44f7ad5222d824d81dc743045d5887418847e74e (patch)
tree1b41535ac00b8b225a25dba2873b064cb074bfa9 /ingen/Properties.hpp
parent90fca083052880479ad90d870e556f0648e32106 (diff)
downloadingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.gz
ingen-44f7ad5222d824d81dc743045d5887418847e74e.tar.bz2
ingen-44f7ad5222d824d81dc743045d5887418847e74e.zip
Add URI class and remove use of Raul::URI
Diffstat (limited to 'ingen/Properties.hpp')
-rw-r--r--ingen/Properties.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/ingen/Properties.hpp b/ingen/Properties.hpp
index a80a00d9..e148c542 100644
--- a/ingen/Properties.hpp
+++ b/ingen/Properties.hpp
@@ -23,7 +23,6 @@
#include "ingen/Atom.hpp"
#include "ingen/URIs.hpp"
-#include "raul/URI.hpp"
namespace Ingen {
@@ -53,7 +52,7 @@ private:
Graph _ctx;
};
-class Properties : public std::multimap<Raul::URI, Property> {
+class Properties : public std::multimap<URI, Property> {
public:
using Graph = Property::Graph;
@@ -61,22 +60,22 @@ public:
Properties(const Properties& copy) = default;
Properties(std::initializer_list<value_type> l)
- : std::multimap<Raul::URI, Property>(l)
+ : std::multimap<URI, Property>(l)
{}
- void put(const Raul::URI& key,
- const Atom& value,
- Graph ctx = Graph::DEFAULT) {
+ void put(const URI& key,
+ const Atom& value,
+ Graph ctx = Graph::DEFAULT) {
emplace(key, Property(value, ctx));
}
- void put(const Raul::URI& key,
+ void put(const URI& key,
const URIs::Quark& value,
Graph ctx = Graph::DEFAULT) {
emplace(key, Property(value, ctx));
}
- bool contains(const Raul::URI& key, const Atom& value) {
+ bool contains(const URI& key, const Atom& value) {
for (const_iterator i = find(key); i != end() && i->first == key; ++i) {
if (i->second == value) {
return true;