summaryrefslogtreecommitdiffstats
path: root/src/type-info.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-09-16 17:32:58 +0000
committerMarkus Engel <markus.engel@tum.de>2013-09-16 17:32:58 +0000
commitabde5067bcfbb4c0e3ba61c6f69db7925f80600a (patch)
tree16e2b6879acc79107afe7d314a2400d42fa7ed46 /src/type-info.cpp
parentAdded runtime check in SP_-cast macros. (diff)
downloadinkscape-abde5067bcfbb4c0e3ba61c6f69db7925f80600a.tar.gz
inkscape-abde5067bcfbb4c0e3ba61c6f69db7925f80600a.zip
Removed TypeInfo; adjusted Factory to meet code style conventions.
(bzr r11608.1.124)
Diffstat (limited to 'src/type-info.cpp')
-rw-r--r--src/type-info.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/type-info.cpp b/src/type-info.cpp
deleted file mode 100644
index dac61e786..000000000
--- a/src/type-info.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "type-info.h"
-
-
-TypeInfo::TypeInfo(const std::type_info& type_info) : type_info(&type_info) {
-}
-
-TypeInfo::TypeInfo(const TypeInfo& tinfo) : type_info(tinfo.type_info) {
-}
-
-TypeInfo& TypeInfo::operator=(const TypeInfo& rhs) {
- this->type_info = rhs.type_info;
- return *this;
-}
-
-bool TypeInfo::before(const TypeInfo& tinfo) const {
- return this->type_info->before(*tinfo.type_info);
-}
-
-const char* TypeInfo::name() const {
- return this->type_info->name();
-}
-
-const std::type_info& TypeInfo::get() const {
- return *this->type_info;
-}
-
-bool operator==(const TypeInfo& lhs, const TypeInfo& rhs) {
- return lhs.get() == rhs.get();
-}
-
-bool operator!=(const TypeInfo& lhs, const TypeInfo& rhs) {
- return !(lhs == rhs);
-}
-
-bool operator<(const TypeInfo& lhs, const TypeInfo& rhs) {
- return lhs.before(rhs);
-}
-
-bool operator<=(const TypeInfo& lhs, const TypeInfo& rhs) {
- return !(lhs > rhs);
-}
-
-bool operator>(const TypeInfo& lhs, const TypeInfo& rhs) {
- return rhs < lhs;
-}
-
-bool operator>=(const TypeInfo& lhs, const TypeInfo& rhs) {
- return !(lhs < rhs);
-}