summaryrefslogtreecommitdiffstats
path: root/src/Resource.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-15 23:18:59 +0100
committerDavid Robillard <d@drobilla.net>2017-02-15 23:26:03 +0100
commitfa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0 (patch)
treee69cd957486b3fe8a82c0b56f26aec0a23b8235c /src/Resource.cpp
parent2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3 (diff)
downloadingen-fa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0.tar.gz
ingen-fa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0.tar.bz2
ingen-fa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0.zip
Move Properties out of Resource
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r--src/Resource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp
index 18d02a69..623f601a 100644
--- a/src/Resource.cpp
+++ b/src/Resource.cpp
@@ -31,7 +31,7 @@ Resource::add_property(const Raul::URI& uri,
Graph ctx)
{
// Ignore duplicate statements
- typedef Resource::Properties::const_iterator iterator;
+ typedef Properties::const_iterator iterator;
const std::pair<iterator, iterator> range = _properties.equal_range(uri);
for (iterator i = range.first; i != range.second && i != _properties.end(); ++i) {
if (i->second == value && i->second.context() == ctx) {
@@ -154,7 +154,7 @@ Resource::type(const URIs& uris,
bool& port,
bool& is_output)
{
- typedef Resource::Properties::const_iterator iterator;
+ typedef Properties::const_iterator iterator;
const std::pair<iterator, iterator> types_range = properties.equal_range(uris.rdf_type);
graph = block = port = is_output = false;
@@ -221,7 +221,7 @@ Resource::remove_properties(const Properties& props)
remove_property(p.first, p.second);
}
-Resource::Properties
+Properties
Resource::properties(Resource::Graph ctx) const
{
Properties props;