From 6940aa0e6837f9d83f9b5c5b37d4fd7747c95c67 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 11 Jan 2015 13:53:15 +0100 Subject: Forward declaring Rtti stuff for fewer dependencies in the Rtti.hpp header --- src/core/model/Document.hpp | 6 ++++++ src/core/model/Domain.hpp | 8 +++++++- src/core/model/Node.cpp | 1 + src/core/model/Node.hpp | 6 +++++- src/core/model/Typesystem.hpp | 8 +++++++- 5 files changed, 26 insertions(+), 3 deletions(-) (limited to 'src/core/model') diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index c367e50..e27b577 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -108,6 +108,12 @@ #include "Typesystem.hpp" namespace ousia { + +// Forward declarations +class RttiType; +template +class Rtti; + namespace model { class StructuredEntity; diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index 7412ef4..c80d057 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -192,7 +192,6 @@ #ifndef _OUSIA_MODEL_DOMAIN_HPP_ #define _OUSIA_MODEL_DOMAIN_HPP_ -#include #include #include @@ -200,8 +199,15 @@ #include "Typesystem.hpp" namespace ousia { + +// Forward declarations +class RttiType; +template +class Rtti; + namespace model { +// Forward declarations class Descriptor; class StructuredClass; class Domain; diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp index 284f323..bac420b 100644 --- a/src/core/model/Node.cpp +++ b/src/core/model/Node.cpp @@ -20,6 +20,7 @@ #include #include +#include #include "Node.hpp" diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp index 54a1497..c24aacb 100644 --- a/src/core/model/Node.hpp +++ b/src/core/model/Node.hpp @@ -32,7 +32,6 @@ #include #include -#include #include #include @@ -40,6 +39,11 @@ namespace ousia { +// Forward declarations +class RttiType; +template +class Rtti; + /** * Structure describing a single result obtained from the resolution function. */ diff --git a/src/core/model/Typesystem.hpp b/src/core/model/Typesystem.hpp index c0e0fb1..22b747f 100644 --- a/src/core/model/Typesystem.hpp +++ b/src/core/model/Typesystem.hpp @@ -34,14 +34,20 @@ #include #include -#include #include #include "Node.hpp" namespace ousia { + +// Forward declarations +class RttiType; +template +class Rtti; + namespace model { +// Forward declarations class Typesystem; /** -- cgit v1.2.3