summaryrefslogtreecommitdiff
path: root/include/interface.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-09 22:37:41 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-09 22:37:41 +0100
commit49d88d98a0656233f15923d31ea67a1ed229e514 (patch)
tree04bb753e4d5434c46bd90048e52d22260052334d /include/interface.h
parentbdca5b0454534413f10d13211885c086fafff35a (diff)
work in progress on iterators
Diffstat (limited to 'include/interface.h')
-rw-r--r--include/interface.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/interface.h b/include/interface.h
index b3031e9..bdff75d 100644
--- a/include/interface.h
+++ b/include/interface.h
@@ -43,7 +43,7 @@ private:
* Construct a new instance of the object
* @return Base
*/
- virtual Base* construct() override
+ virtual Base* construct() const override
{
// this does not occur for interfaces
return nullptr;
@@ -54,11 +54,21 @@ private:
* @param orig
* @return Base
*/
- virtual Base* clone(Base *orig) override
+ virtual Base* clone(Base *orig) const override
{
// this does not occur for interfaces
return nullptr;
}
+
+ /**
+ * Is this a traversable interface?
+ * @return bool
+ */
+ virtual bool traversable() const override
+ {
+ // interfaces are never traversed
+ return false;
+ }
/**
* Namespaces have access to the private base class