summaryrefslogtreecommitdiff
path: root/include/interface.h
diff options
context:
space:
mode:
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