• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • controllers
  • view
  • structures
  • datatypes
datainformationbase.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the Okteta Kasten Framework, made within the KDE community.
3  *
4  * Copyright 2011 Alex Richardson <alex.richardson@gmx.de>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) version 3, or any
10  * later version accepted by the membership of KDE e.V. (or its
11  * successor approved by the membership of KDE e.V.), which shall
12  * act as a proxy defined in Section 6 of version 3 of the license.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21  */
22 #include "datainformationbase.h"
23 #include "topleveldatainformation.h"
24 
25 DataInformationBase::DataInformationBase()
26 {
27 
28 }
29 
30 DataInformationBase::~DataInformationBase()
31 {
32 
33 }
34 
35 bool DataInformationBase::isArray() const
36 {
37  return false;
38 }
39 
40 bool DataInformationBase::isDummy() const
41 {
42  return false;
43 }
44 
45 bool DataInformationBase::isPrimitive() const
46 {
47  return false;
48 }
49 
50 bool DataInformationBase::isEnum() const
51 {
52  return false;
53 }
54 
55 bool DataInformationBase::isStruct() const
56 {
57  return false;
58 }
59 
60 bool DataInformationBase::isUnion() const
61 {
62  return false;
63 }
64 
65 bool DataInformationBase::isBitfield() const
66 {
67  return false;
68 }
69 
70 bool DataInformationBase::isString() const
71 {
72  return false;
73 }
74 
75 bool DataInformationBase::isPointer() const
76 {
77  return false;
78 }
79 
80 bool DataInformationBase::isTaggedUnion() const
81 {
82  return false;
83 }
84 
85 TopLevelDataInformation* DataInformationBase::asTopLevel()
86 {
87  //multiple inheritance -> we can't use reinterpret_cast -> we have to include the file
88  return isTopLevel() ? static_cast<TopLevelDataInformation*>(this) : 0;
89 }
90 
91 const TopLevelDataInformation* DataInformationBase::asTopLevel() const
92 {
93  //multiple inheritance -> we can't use reinterpret_cast -> we have to include the file
94  return isTopLevel() ? static_cast<const TopLevelDataInformation*>(this) : 0;
95 }
DataInformationBase::isString
virtual bool isString() const
Definition: datainformationbase.cpp:70
DataInformationBase::isStruct
virtual bool isStruct() const
Definition: datainformationbase.cpp:55
DataInformationBase::~DataInformationBase
virtual ~DataInformationBase()
Definition: datainformationbase.cpp:30
DataInformationBase::isEnum
virtual bool isEnum() const
Definition: datainformationbase.cpp:50
TopLevelDataInformation
Definition: topleveldatainformation.h:46
topleveldatainformation.h
DataInformationBase::isTopLevel
virtual bool isTopLevel() const =0
DataInformationBase::asTopLevel
TopLevelDataInformation * asTopLevel()
Definition: datainformationbase.cpp:85
datainformationbase.h
DataInformationBase::DataInformationBase
DataInformationBase()
Definition: datainformationbase.cpp:25
DataInformationBase::isDummy
virtual bool isDummy() const
Definition: datainformationbase.cpp:40
DataInformationBase::isUnion
virtual bool isUnion() const
Definition: datainformationbase.cpp:60
DataInformationBase::isTaggedUnion
virtual bool isTaggedUnion() const
Definition: datainformationbase.cpp:80
DataInformationBase::isBitfield
virtual bool isBitfield() const
Definition: datainformationbase.cpp:65
DataInformationBase::isPrimitive
virtual bool isPrimitive() const
Definition: datainformationbase.cpp:45
DataInformationBase::isPointer
virtual bool isPointer() const
Definition: datainformationbase.cpp:75
DataInformationBase::isArray
virtual bool isArray() const
Definition: datainformationbase.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal