Doxygen
Loading...
Searching...
No Matches
types.h File Reference

This file contains a number of basic enums and types. More...

#include "qcstring.h"
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Grouping
 Grouping info. More...
 
class  MemberListType
 Wrapper class for the MemberListType type. More...
 
class  LocalToc
 
class  TypeSpecifier
 Wrapper class for a number of boolean properties. More...
 
class  EntryType
 Wrapper class for the Entry type. More...
 

Macros

#define PROTECTION_SPECIFICATIONS
 Protection level of members.
 
#define PROTSPEC(x, y, z)
 
#define PROTSPEC(x, y, z)
 
#define PROTSPEC(x, y, z)
 
#define PROTSPEC(x, y, z)
 
#define SPECIFIER_SPECIFICATIONS
 Virtualness of a member.
 
#define SPECSPEC(x, y)
 
#define SPECSPEC(x, y)
 
#define SPECSPEC(x, y)
 
#define METHODTYPE_SPECIFICATIONS
 Kind of method.
 
#define MTSPEC(x)
 
#define MTSPEC(x)
 
#define RELATESTYPE_SPECIFICATIONS
 Type of member relation.
 
#define RTSPEC(x)
 
#define RTSPEC(x)
 
#define RELATIONSHIP_SPECIFICATIONS
 Kind of member relationship.
 
#define RSSPEC(x)
 
#define RSSPEC(x)
 
#define SRCLANGEXT_SPECIFICATIONS
 Language as given by extension.
 
#define SRCLANGEXT(x, v, z)
 
#define SRCLANGEXT(x, v, z)
 
#define ML_TYPES
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define ML_TYPE(x, bits, to_pub, to_prot, label, xml_str)
 
#define TYPE_SPECIFIERS
 
#define TSPEC(x)
 
#define TSPEC(x)
 
#define TSPEC(x)
 
#define TSPEC(x)
 
#define ENTRY_TYPES
 
#define ETYPE(x, bits)
 
#define ETYPE(x, bits)
 
#define ETYPE(x, bits)
 

Enumerations

enum class  Protection { PROTECTION_SPECIFICATIONS }
 
enum class  Specifier { SPECIFIER_SPECIFICATIONS }
 
enum class  MethodTypes { METHODTYPE_SPECIFICATIONS }
 
enum class  RelatesType { RELATESTYPE_SPECIFICATIONS }
 
enum class  Relationship { RELATIONSHIP_SPECIFICATIONS }
 
enum class  SrcLangExt { SRCLANGEXT_SPECIFICATIONS }
 
enum class  MemberListContainer {
  File , Namespace , Group , Class ,
  Module
}
 
enum class  CodeSymbolType {
  Default , Class , Struct , Union ,
  Interface , Protocol , Category , Exception ,
  Service , Singleton , Concept , Namespace ,
  Package , Module , Define , Function ,
  Variable , Typedef , EnumValue , Enumeration ,
  Signal , Slot , Friend , DCOP ,
  Property , Event , Sequence , Dictionary
}
 
enum class  MemberType {
  Define , Function , Variable , Typedef ,
  Enumeration , EnumValue , Signal , Slot ,
  Friend , DCOP , Property , Event ,
  Interface , Service , Sequence , Dictionary
}
 
enum class  FortranFormat { Unknown , Free , Fixed }
 
enum class  VhdlSpecifier {
  UNKNOWN =0 , LIBRARY , ENTITY , PACKAGE_BODY ,
  ARCHITECTURE , PACKAGE , ATTRIBUTE , SIGNAL ,
  COMPONENT , CONSTANT , TYPE , SUBTYPE ,
  FUNCTION , RECORD , PROCEDURE , USE ,
  PROCESS , PORT , UNITS , GENERIC ,
  INSTANTIATION , GROUP , VFILE , SHAREDVARIABLE ,
  CONFIG , ALIAS , MISCELLANEOUS , UCF_CONST
}
 

Functions

static const char * to_string (Protection prot)
 
static const char * to_string_lower (Protection prot)
 
static const char * to_string_lower_class (Protection prot)
 
static const char * to_string (Specifier spec)
 
static const char * to_string_lower (Specifier spec)
 
static const char * to_string (MethodTypes mt)
 
static const char * to_string (RelatesType rt)
 
static const char * to_string (Relationship rs)
 
static const char * to_string (SrcLangExt sle)
 
constexpr const char * codeSymbolType2Str (CodeSymbolType type)
 

Detailed Description

This file contains a number of basic enums and types.

Definition in file types.h.

Macro Definition Documentation

◆ ENTRY_TYPES

#define ENTRY_TYPES

Definition at line 743 of file types.h.

743#define ENTRY_TYPES \
744 ETYPE(Empty, None) \
745 ETYPE(Class, Compound|Scope) \
746 ETYPE(Namespace, Scope) \
747 ETYPE(Concept, None) \
748 ETYPE(ClassDoc, CompoundDoc|Doc) \
749 ETYPE(StructDoc, CompoundDoc|Doc) \
750 ETYPE(UnionDoc, CompoundDoc|Doc) \
751 ETYPE(ExceptionDoc, CompoundDoc|Doc) \
752 ETYPE(InterfaceDoc, CompoundDoc|Doc) \
753 ETYPE(ProtocolDoc, CompoundDoc|Doc) \
754 ETYPE(CategoryDoc, CompoundDoc|Doc) \
755 ETYPE(ServiceDoc, CompoundDoc|Doc) \
756 ETYPE(SingletonDoc, CompoundDoc|Doc) \
757 ETYPE(Source, File) \
758 ETYPE(Header, File) \
759 ETYPE(ModuleDoc, Doc) \
760 ETYPE(ConceptDoc, Doc) \
761 ETYPE(NamespaceDoc, Doc) \
762 ETYPE(EnumDoc, Doc) \
763 ETYPE(PageDoc, Doc) \
764 ETYPE(MemberDoc, Doc) \
765 ETYPE(OverloadDoc, Doc) \
766 ETYPE(Example, Doc) \
767 ETYPE(VariableDoc, Doc) \
768 ETYPE(FileDoc, Doc) \
769 ETYPE(DefineDoc, Doc) \
770 ETYPE(GroupDoc, Doc) \
771 ETYPE(MainpageDoc, Doc) \
772 ETYPE(MemberGrp, Doc) \
773 ETYPE(PackageDoc, Doc) \
774 ETYPE(DirDoc, Doc) \
775 ETYPE(Variable, None) \
776 ETYPE(Function, None) \
777 ETYPE(Typedef, None) \
778 ETYPE(Include, None) \
779 ETYPE(Enum, None) \
780 ETYPE(Define, None) \
781 ETYPE(UsingDir, None) \
782 ETYPE(UsingDecl, None) \
783 ETYPE(Package, None) \
784 ETYPE(ObjcImpl, None) \
785 ETYPE(ExportedInterface, None) \
786 ETYPE(IncludedService, None) \
787 ETYPE(ExampleLineno, None) \
788

◆ ETYPE [1/3]

#define ETYPE ( x,
bits )
Value:
static EntryType make##x() { return EntryType(static_cast<int>(x)|static_cast<int>(bits)); } \
bool is##x() const { return (m_type&TypeMask)==x; }
Wrapper class for the Entry type.
Definition types.h:793

Definition at line 795 of file types.h.

795#define ETYPE(x,bits) \
796 static EntryType make##x() { return EntryType(static_cast<int>(x)|static_cast<int>(bits)); } \
797 bool is##x() const { return (m_type&TypeMask)==x; }

◆ ETYPE [2/3]

#define ETYPE ( x,
bits )
Value:
case x : return "["+std::string(#x)+bits_to_string()+"]";

Definition at line 795 of file types.h.

795#define ETYPE(x,bits) \
796 static EntryType make##x() { return EntryType(static_cast<int>(x)|static_cast<int>(bits)); } \
797 bool is##x() const { return (m_type&TypeMask)==x; }

◆ ETYPE [3/3]

#define ETYPE ( x,
bits )
Value:
x,

Definition at line 795 of file types.h.

795#define ETYPE(x,bits) \
796 static EntryType make##x() { return EntryType(static_cast<int>(x)|static_cast<int>(bits)); } \
797 bool is##x() const { return (m_type&TypeMask)==x; }

◆ METHODTYPE_SPECIFICATIONS

#define METHODTYPE_SPECIFICATIONS
Value:
MTSPEC(Method) \
MTSPEC(Signal) \
MTSPEC(Slot) \
MTSPEC(DCOP) \
MTSPEC(Property) \
MTSPEC(Event)
#define MTSPEC(x)
Definition types.h:120

Kind of method.

Definition at line 111 of file types.h.

111#define METHODTYPE_SPECIFICATIONS \
112 MTSPEC(Method) \
113 MTSPEC(Signal) \
114 MTSPEC(Slot) \
115 MTSPEC(DCOP) \
116 MTSPEC(Property) \
117 MTSPEC(Event)

Referenced by to_string().

◆ ML_TYPE [1/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
x##_,

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [2/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
static MemberListType x() { return MemberListType(static_cast<int>(x##_)|static_cast<int>(bits)); } \
bool is##x() const { return (m_type&TypeMask)==x##_; }
Wrapper class for the MemberListType type.
Definition types.h:346

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [3/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
case x##_ : return "["+std::string(#x)+bits_to_string()+"]";

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [4/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
case x##_ : return label;

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [5/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
case x##_ : return xml_str;

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [6/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
case x##_ : return to_pub();

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPE [7/7]

#define ML_TYPE ( x,
bits,
to_pub,
to_prot,
label,
xml_str )
Value:
case x##_ : return to_prot();

Definition at line 364 of file types.h.

364#define ML_TYPE(x,bits,to_pub,to_prot,label,xml_str) \
365 x##_,

◆ ML_TYPES

#define ML_TYPES

Definition at line 263 of file types.h.

263#define ML_TYPES \
264 ML_TYPE(PubMethods, Public, Invalid, Invalid, "pub-methods", "public-func" ) \
265 ML_TYPE(ProMethods, Protected, PubMethods, Invalid, "pro-methods", "protected-func" ) \
266 ML_TYPE(PacMethods, Package, Invalid, Invalid, "pac-methods", "package-func" ) \
267 ML_TYPE(PriMethods, Private, PubMethods, ProMethods, "pri-methods", "private-func" ) \
268 ML_TYPE(PubStaticMethods, Public, Invalid, Invalid, "pub-static-methods", "public-static-func" ) \
269 ML_TYPE(ProStaticMethods, Protected, PubStaticMethods, Invalid, "pro-static-methods", "protected-static-func" ) \
270 ML_TYPE(PacStaticMethods, Package, Invalid, Invalid, "pac-static-methods", "package-static-func" ) \
271 ML_TYPE(PriStaticMethods, Private, PubStaticMethods, ProStaticMethods, "pri-static-methods", "private-static-func" ) \
272 ML_TYPE(PubSlots, Public, Invalid, Invalid, "pub-slots", "public-slot" ) \
273 ML_TYPE(ProSlots, Protected, PubSlots, Invalid, "pro-slots", "protected-slot" ) \
274 ML_TYPE(PriSlots, Private, PubSlots, ProSlots, "pri-slots", "private-slot" ) \
275 ML_TYPE(PubAttribs, Public, Invalid, Invalid, "pub-attribs", "public-attrib" ) \
276 ML_TYPE(ProAttribs, Protected, PubAttribs, Invalid, "pro-attribs", "protected-attrib" ) \
277 ML_TYPE(PacAttribs, Package, Invalid, Invalid, "pac-attribs", "package-attrib" ) \
278 ML_TYPE(PriAttribs, Private, PubAttribs, ProAttribs, "pri-attribs", "private-attrib" ) \
279 ML_TYPE(PubStaticAttribs, Public, Invalid, Invalid, "pub-static-attribs", "public-static-attrib" ) \
280 ML_TYPE(ProStaticAttribs, Protected, PubStaticAttribs, Invalid, "pro-static-attribs", "protected-static-attrib" ) \
281 ML_TYPE(PacStaticAttribs, Package, Invalid, Invalid, "pac-static-attribs", "package-static-attrib" ) \
282 ML_TYPE(PriStaticAttribs, Private, PubStaticAttribs, ProStaticAttribs, "pri-static-attribs", "private-static-attrib" ) \
283 ML_TYPE(PubTypes, Public, Invalid, Invalid, "pub-types", "public-type" ) \
284 ML_TYPE(ProTypes, Protected, PubTypes, Invalid, "pro-types", "protected-type" ) \
285 ML_TYPE(PacTypes, Package, Invalid, Invalid, "pac-types", "package-type" ) \
286 ML_TYPE(PriTypes, Private, PubTypes, ProTypes, "pri-types", "private-type" ) \
287 ML_TYPE(Related, OnlyPublic, Invalid, Invalid, "related", "related" ) \
288 ML_TYPE(Signals, OnlyPublic, Invalid, Invalid, "signals", "signal" ) \
289 ML_TYPE(Friends, OnlyPublic, Invalid, Invalid, "friends", "friend" ) \
290 ML_TYPE(DcopMethods, OnlyPublic, Invalid, Invalid, "dcop-methods", "dcop-func" ) \
291 ML_TYPE(Properties, OnlyPublic, Invalid, Invalid, "properties", "property" ) \
292 ML_TYPE(Events, OnlyPublic, Invalid, Invalid, "events", "event" ) \
293 ML_TYPE(AllMembersList, OnlyPublic, Invalid, Invalid, "", "" ) \
294 ML_TYPE(EnumFields, OnlyPublic, Invalid, Invalid, "enum-fields", "" ) \
295 ML_TYPE(MemberGroup, OnlyPublic, Invalid, Invalid, "", "" ) \
296 ML_TYPE(Interfaces, OnlyPublic, Invalid, Invalid, "interfaces", "interfaces" ) \
297 ML_TYPE(Services, OnlyPublic, Invalid, Invalid, "services", "services" ) \
298 ML_TYPE(DecDefineMembers, Declaration, Invalid, Invalid, "define-members", "define" ) \
299 ML_TYPE(DecProtoMembers, Declaration, Invalid, Invalid, "proto-members", "prototype" ) \
300 ML_TYPE(DecTypedefMembers, Declaration, Invalid, Invalid, "typedef-members", "typedef" ) \
301 ML_TYPE(DecEnumMembers, Declaration, Invalid, Invalid, "enum-members", "enum" ) \
302 ML_TYPE(DecFuncMembers, Declaration, Invalid, Invalid, "func-members", "func" ) \
303 ML_TYPE(DecVarMembers, Declaration, Invalid, Invalid, "var-members", "var" ) \
304 ML_TYPE(DecEnumValMembers, Declaration, Invalid, Invalid, "enumval-members", "" ) \
305 ML_TYPE(DecPubSlotMembers, Declaration, Invalid, Invalid, "pub-slot-members", "" ) \
306 ML_TYPE(DecProSlotMembers, Declaration, Invalid, Invalid, "pro-slot-members", "" ) \
307 ML_TYPE(DecPriSlotMembers, Declaration, Invalid, Invalid, "pri-slot-members", "" ) \
308 ML_TYPE(DecSignalMembers, Declaration, Invalid, Invalid, "signal-members", "" ) \
309 ML_TYPE(DecEventMembers, Declaration, Invalid, Invalid, "event-members", "" ) \
310 ML_TYPE(DecFriendMembers, Declaration, Invalid, Invalid, "friend-members", "" ) \
311 ML_TYPE(DecPropMembers, Declaration, Invalid, Invalid, "prop-members", "" ) \
312 ML_TYPE(DecSequenceMembers, Declaration, Invalid, Invalid, "sequence-members", "sequence" ) \
313 ML_TYPE(DecDictionaryMembers,Declaration, Invalid, Invalid, "dictionary-members", "dictionary" ) \
314 ML_TYPE(TypedefMembers, Detailed, Invalid, Invalid, "", "" ) \
315 ML_TYPE(EnumMembers, Detailed, Invalid, Invalid, "", "" ) \
316 ML_TYPE(EnumValMembers, Detailed, Invalid, Invalid, "", "" ) \
317 ML_TYPE(FunctionMembers, Detailed, Invalid, Invalid, "", "" ) \
318 ML_TYPE(RelatedMembers, Detailed, Invalid, Invalid, "", "" ) \
319 ML_TYPE(VariableMembers, Detailed, Invalid, Invalid, "", "" ) \
320 ML_TYPE(PropertyMembers, Detailed, Invalid, Invalid, "", "" ) \
321 ML_TYPE(EventMembers, Detailed, Invalid, Invalid, "", "" ) \
322 ML_TYPE(Constructors, Detailed, Invalid, Invalid, "", "" ) \
323 ML_TYPE(InterfaceMembers, Detailed, Invalid, Invalid, "interface-members", "" ) \
324 ML_TYPE(ServiceMembers, Detailed, Invalid, Invalid, "service-members", "" ) \
325 ML_TYPE(DocDefineMembers, Documentation,Invalid, Invalid, "", "" ) \
326 ML_TYPE(DocProtoMembers, Documentation,Invalid, Invalid, "", "" ) \
327 ML_TYPE(DocTypedefMembers, Documentation,Invalid, Invalid, "", "" ) \
328 ML_TYPE(DocEnumMembers, Documentation,Invalid, Invalid, "", "" ) \
329 ML_TYPE(DocFuncMembers, Documentation,Invalid, Invalid, "", "" ) \
330 ML_TYPE(DocVarMembers, Documentation,Invalid, Invalid, "", "" ) \
331 ML_TYPE(DocEnumValMembers, Documentation,Invalid, Invalid, "", "" ) \
332 ML_TYPE(DocPubSlotMembers, Documentation,Invalid, Invalid, "", "" ) \
333 ML_TYPE(DocProSlotMembers, Documentation,Invalid, Invalid, "", "" ) \
334 ML_TYPE(DocPriSlotMembers, Documentation,Invalid, Invalid, "", "" ) \
335 ML_TYPE(DocSignalMembers, Documentation,Invalid, Invalid, "", "" ) \
336 ML_TYPE(DocEventMembers, Documentation,Invalid, Invalid, "", "" ) \
337 ML_TYPE(DocFriendMembers, Documentation,Invalid, Invalid, "", "" ) \
338 ML_TYPE(DocPropMembers, Documentation,Invalid, Invalid, "", "" ) \
339 ML_TYPE(DocSequenceMembers, Documentation,Invalid, Invalid, "", "" ) \
340 ML_TYPE(DocDictionaryMembers,Documentation,Invalid, Invalid, "", "" ) \
341

◆ MTSPEC [1/2]

#define MTSPEC ( x)
Value:
x,

Definition at line 120 of file types.h.

◆ MTSPEC [2/2]

#define MTSPEC ( x)
Value:
case MethodTypes::x: result = #x; break;

Definition at line 120 of file types.h.

◆ PROTECTION_SPECIFICATIONS

#define PROTECTION_SPECIFICATIONS
Value:
PROTSPEC(Public,public,public) \
PROTSPEC(Protected,protected,protected) \
PROTSPEC(Private,private,private) \
PROTSPEC(Package,package,protected)
#define PROTSPEC(x, y, z)
Definition types.h:33

Protection level of members.

Definition at line 26 of file types.h.

26#define PROTECTION_SPECIFICATIONS \
27 PROTSPEC(Public,public,public) \
28 PROTSPEC(Protected,protected,protected) \
29 PROTSPEC(Private,private,private) \
30 PROTSPEC(Package,package,protected)

Referenced by to_string(), to_string_lower(), and to_string_lower_class().

◆ PROTSPEC [1/4]

#define PROTSPEC ( x,
y,
z )
Value:
x,

Definition at line 33 of file types.h.

◆ PROTSPEC [2/4]

#define PROTSPEC ( x,
y,
z )
Value:
case Protection::x: result = #x; break;

Definition at line 33 of file types.h.

◆ PROTSPEC [3/4]

#define PROTSPEC ( x,
y,
z )
Value:
case Protection::x: result = #y; break;

Definition at line 33 of file types.h.

◆ PROTSPEC [4/4]

#define PROTSPEC ( x,
y,
z )
Value:
case Protection::x: result = #z; break;

Definition at line 33 of file types.h.

◆ RELATESTYPE_SPECIFICATIONS

#define RELATESTYPE_SPECIFICATIONS
Value:
RTSPEC(Simple) \
RTSPEC(Duplicate) \
RTSPEC(MemberOf)
#define RTSPEC(x)
Definition types.h:144

Type of member relation.

Definition at line 138 of file types.h.

138#define RELATESTYPE_SPECIFICATIONS \
139 RTSPEC(Simple) \
140 RTSPEC(Duplicate) \
141 RTSPEC(MemberOf)

Referenced by to_string().

◆ RELATIONSHIP_SPECIFICATIONS

#define RELATIONSHIP_SPECIFICATIONS
Value:
RSSPEC(Member) \
RSSPEC(Related) \
RSSPEC(Foreign)
#define RSSPEC(x)
Definition types.h:168

Kind of member relationship.

Definition at line 162 of file types.h.

162#define RELATIONSHIP_SPECIFICATIONS \
163 RSSPEC(Member) \
164 RSSPEC(Related) \
165 RSSPEC(Foreign)

Referenced by to_string().

◆ RSSPEC [1/2]

#define RSSPEC ( x)
Value:
x,

Definition at line 168 of file types.h.

◆ RSSPEC [2/2]

#define RSSPEC ( x)
Value:
case Relationship::x: result = #x; break;

Definition at line 168 of file types.h.

◆ RTSPEC [1/2]

#define RTSPEC ( x)
Value:
x,

Definition at line 144 of file types.h.

◆ RTSPEC [2/2]

#define RTSPEC ( x)
Value:
case RelatesType::x: result = #x; break;

Definition at line 144 of file types.h.

◆ SPECIFIER_SPECIFICATIONS

#define SPECIFIER_SPECIFICATIONS
Value:
SPECSPEC(Normal,non-virtual) \
SPECSPEC(Virtual,virtual) \
SPECSPEC(Pure,pure-virtual)
#define SPECSPEC(x, y)
Definition types.h:81

Virtualness of a member.

Definition at line 75 of file types.h.

75#define SPECIFIER_SPECIFICATIONS \
76 SPECSPEC(Normal,non-virtual) \
77 SPECSPEC(Virtual,virtual) \
78 SPECSPEC(Pure,pure-virtual)

Referenced by to_string(), and to_string_lower().

◆ SPECSPEC [1/3]

#define SPECSPEC ( x,
y )
Value:
x,

Definition at line 81 of file types.h.

◆ SPECSPEC [2/3]

#define SPECSPEC ( x,
y )
Value:
case Specifier::x: result = #x; break;

Definition at line 81 of file types.h.

◆ SPECSPEC [3/3]

#define SPECSPEC ( x,
y )
Value:
case Specifier::x: result = #y; break;

Definition at line 81 of file types.h.

◆ SRCLANGEXT [1/2]

#define SRCLANGEXT ( x,
v,
z )
Value:
x = v,

Definition at line 208 of file types.h.

◆ SRCLANGEXT [2/2]

#define SRCLANGEXT ( x,
v,
z )
Value:
case SrcLangExt::x: result = #z; break;

Definition at line 208 of file types.h.

◆ SRCLANGEXT_SPECIFICATIONS

#define SRCLANGEXT_SPECIFICATIONS
Value:
SRCLANGEXT(Unknown , 0x00000, Unknown) \
SRCLANGEXT(IDL , 0x00008, IDL) \
SRCLANGEXT(Java , 0x00010, Java) \
SRCLANGEXT(CSharp , 0x00020, C#) \
SRCLANGEXT(D , 0x00040, D) \
SRCLANGEXT(PHP , 0x00080, PHP) \
SRCLANGEXT(ObjC , 0x00100, Objective-C) \
SRCLANGEXT(Cpp , 0x00200, C++) \
SRCLANGEXT(JS , 0x00400, Javascript) \
SRCLANGEXT(Python , 0x00800, Python) \
SRCLANGEXT(Fortran , 0x01000, Fortran) \
SRCLANGEXT(VHDL , 0x02000, VHDL) \
SRCLANGEXT(XML , 0x04000, XML) \
SRCLANGEXT(Markdown , 0x10000, Markdown) \
SRCLANGEXT(SQL , 0x20000, SQL) \
SRCLANGEXT(Slice , 0x40000, Slice) \
SRCLANGEXT(Lex , 0x80000, Lex)
Helper class to process markdown formatted text.
Definition markdown.h:32
#define SRCLANGEXT(x, v, z)
Definition types.h:208

Language as given by extension.

Definition at line 186 of file types.h.

186#define SRCLANGEXT_SPECIFICATIONS \
187 SRCLANGEXT(Unknown , 0x00000, Unknown) \
188 SRCLANGEXT(IDL , 0x00008, IDL) \
189 SRCLANGEXT(Java , 0x00010, Java) \
190 SRCLANGEXT(CSharp , 0x00020, C#) \
191 SRCLANGEXT(D , 0x00040, D) \
192 SRCLANGEXT(PHP , 0x00080, PHP) \
193 SRCLANGEXT(ObjC , 0x00100, Objective-C) \
194 SRCLANGEXT(Cpp , 0x00200, C++) \
195 SRCLANGEXT(JS , 0x00400, Javascript) \
196 SRCLANGEXT(Python , 0x00800, Python) \
197 SRCLANGEXT(Fortran , 0x01000, Fortran) \
198 SRCLANGEXT(VHDL , 0x02000, VHDL) \
199 SRCLANGEXT(XML , 0x04000, XML) \
200 SRCLANGEXT(Markdown , 0x10000, Markdown) \
201 SRCLANGEXT(SQL , 0x20000, SQL) \
202 SRCLANGEXT(Slice , 0x40000, Slice) \
203 SRCLANGEXT(Lex , 0x80000, Lex)

Referenced by to_string().

◆ TSPEC [1/4]

#define TSPEC ( x)
Value:
m_is##x = m_is##x || other.is##x();

Definition at line 698 of file types.h.

698#define TSPEC(x) \
699 public: \
700 TypeSpecifier &set##x(bool b) { m_is##x = b; return *this; } \
701 bool is##x() const { return m_is##x; } \
702 private: \
703 bool m_is##x : 1;

◆ TSPEC [2/4]

#define TSPEC ( x)
Value:
eq = eq && (t1.m_is##x == t2.m_is##x);

Definition at line 698 of file types.h.

698#define TSPEC(x) \
699 public: \
700 TypeSpecifier &set##x(bool b) { m_is##x = b; return *this; } \
701 bool is##x() const { return m_is##x; } \
702 private: \
703 bool m_is##x : 1;

◆ TSPEC [3/4]

#define TSPEC ( x)
Value:
if (m_is##x) { \
if (!first) result+=","; \
result+=#x; first=false; \
}

Definition at line 698 of file types.h.

698#define TSPEC(x) \
699 public: \
700 TypeSpecifier &set##x(bool b) { m_is##x = b; return *this; } \
701 bool is##x() const { return m_is##x; } \
702 private: \
703 bool m_is##x : 1;

◆ TSPEC [4/4]

#define TSPEC ( x)
Value:
public: \
TypeSpecifier &set##x(bool b) { m_is##x = b; return *this; } \
bool is##x() const { return m_is##x; } \
private: \
bool m_is##x : 1;
Wrapper class for a number of boolean properties.
Definition types.h:654

Definition at line 698 of file types.h.

698#define TSPEC(x) \
699 public: \
700 TypeSpecifier &set##x(bool b) { m_is##x = b; return *this; } \
701 bool is##x() const { return m_is##x; } \
702 private: \
703 bool m_is##x : 1;

◆ TYPE_SPECIFIERS

#define TYPE_SPECIFIERS
Value:
/* 0 */ TSPEC(Template) TSPEC(Generic) TSPEC(Ref) TSPEC(Value) TSPEC(Interface) \
/* 10 */ TSPEC(SealedClass) TSPEC(AbstractClass) TSPEC(Enum) TSPEC(Service) TSPEC(Singleton) \
/* 15 */ TSPEC(ForwardDecl) TSPEC(Local) TSPEC(EnumStruct) TSPEC(ConstExpr) TSPEC(PrivateGettable) \
/* 20 */ TSPEC(ProtectedGettable) TSPEC(PrivateSettable) TSPEC(ProtectedSettable) TSPEC(Inline) TSPEC(Explicit) \
/* 25 */ TSPEC(Mutable) TSPEC(Settable) TSPEC(Gettable) TSPEC(Readable) TSPEC(Writable) \
/* 30 */ TSPEC(Final) TSPEC(Abstract) TSPEC(Addable) TSPEC(Removable) TSPEC(Raisable) \
/* 35 */ TSPEC(Override) TSPEC(New) TSPEC(Sealed) TSPEC(Initonly) TSPEC(Optional) \
/* 40 */ TSPEC(Required) TSPEC(NonAtomic) TSPEC(Copy) TSPEC(Retain) TSPEC(Assign) \
/* 45 */ TSPEC(Strong) TSPEC(Weak) TSPEC(Unretained) TSPEC(Alias) TSPEC(ConstExp) \
/* 50 */ TSPEC(Default) TSPEC(Delete) TSPEC(NoExcept) TSPEC(Attribute) TSPEC(Property) \
/* 55 */ TSPEC(Readonly) TSPEC(Bound) TSPEC(Constrained) TSPEC(Transient) TSPEC(MaybeVoid) \
/* 60 */ TSPEC(MaybeDefault) TSPEC(MaybeAmbiguous) TSPEC(Published) TSPEC(ConstEval) TSPEC(ConstInit) \
/* 65 */ TSPEC(NoDiscard)
@ Inline
command appears inline in the output which can be a brief description.
#define TSPEC(x)
Definition types.h:698

Definition at line 634 of file types.h.

634#define TYPE_SPECIFIERS \
635/* 0 */ TSPEC(Template) TSPEC(Generic) TSPEC(Ref) TSPEC(Value) TSPEC(Interface) \
636/* 5 */ TSPEC(Struct) TSPEC(Union) TSPEC(Exception) TSPEC(Protocol) TSPEC(Category) \
637/* 10 */ TSPEC(SealedClass) TSPEC(AbstractClass) TSPEC(Enum) TSPEC(Service) TSPEC(Singleton) \
638/* 15 */ TSPEC(ForwardDecl) TSPEC(Local) TSPEC(EnumStruct) TSPEC(ConstExpr) TSPEC(PrivateGettable) \
639/* 20 */ TSPEC(ProtectedGettable) TSPEC(PrivateSettable) TSPEC(ProtectedSettable) TSPEC(Inline) TSPEC(Explicit) \
640/* 25 */ TSPEC(Mutable) TSPEC(Settable) TSPEC(Gettable) TSPEC(Readable) TSPEC(Writable) \
641/* 30 */ TSPEC(Final) TSPEC(Abstract) TSPEC(Addable) TSPEC(Removable) TSPEC(Raisable) \
642/* 35 */ TSPEC(Override) TSPEC(New) TSPEC(Sealed) TSPEC(Initonly) TSPEC(Optional) \
643/* 40 */ TSPEC(Required) TSPEC(NonAtomic) TSPEC(Copy) TSPEC(Retain) TSPEC(Assign) \
644/* 45 */ TSPEC(Strong) TSPEC(Weak) TSPEC(Unretained) TSPEC(Alias) TSPEC(ConstExp) \
645/* 50 */ TSPEC(Default) TSPEC(Delete) TSPEC(NoExcept) TSPEC(Attribute) TSPEC(Property) \
646/* 55 */ TSPEC(Readonly) TSPEC(Bound) TSPEC(Constrained) TSPEC(Transient) TSPEC(MaybeVoid) \
647/* 60 */ TSPEC(MaybeDefault) TSPEC(MaybeAmbiguous) TSPEC(Published) TSPEC(ConstEval) TSPEC(ConstInit) \
648/* 65 */ TSPEC(NoDiscard)

Referenced by TypeSpecifier::merge(), TypeSpecifier::operator==, and TypeSpecifier::to_string().

Enumeration Type Documentation

◆ CodeSymbolType

enum class CodeSymbolType
strong
Enumerator
Default 
Class 
Struct 
Union 
Interface 
Protocol 
Category 
Exception 
Service 
Singleton 
Concept 
Namespace 
Package 
Module 
Define 
Function 
Variable 
Typedef 
EnumValue 
Enumeration 
Signal 
Slot 
Friend 
DCOP 
Property 
Event 
Sequence 
Dictionary 

Definition at line 480 of file types.h.

481{
482 Default,
483 // Class types
484 Class,
485 Struct,
486 Union,
487 Interface,
488 Protocol,
489 Category,
490 Exception,
491 Service,
492 Singleton,
493 // Other container types
494 Concept,
495 Namespace,
496 Package,
497 Module,
498 // Member types
499 Define,
500 Function,
501 Variable,
502 Typedef,
503 EnumValue,
505 Signal,
506 Slot,
507 Friend,
508 DCOP,
509 Property,
510 Event,
511 Sequence,
513};

◆ FortranFormat

enum class FortranFormat
strong
Enumerator
Unknown 
Free 
Fixed 

Definition at line 571 of file types.h.

572{
573 Unknown,
574 Free,
575 Fixed
576};

◆ MemberListContainer

enum class MemberListContainer
strong
Enumerator
File 
Namespace 
Group 
Class 
Module 

Definition at line 471 of file types.h.

◆ MemberType

enum class MemberType
strong
Enumerator
Define 
Function 
Variable 
Typedef 
Enumeration 
EnumValue 
Signal 
Slot 
Friend 
DCOP 
Property 
Event 
Interface 
Service 
Sequence 
Dictionary 

Definition at line 551 of file types.h.

552{
553 Define,
554 Function,
555 Variable,
556 Typedef,
558 EnumValue,
559 Signal,
560 Slot,
561 Friend,
562 DCOP,
563 Property,
564 Event,
565 Interface,
566 Service,
567 Sequence,
569};
@ Enumeration
Definition types.h:557
@ EnumValue
Definition types.h:558
@ Dictionary
Definition types.h:568
@ Interface
Definition types.h:565
@ Sequence
Definition types.h:567
@ Variable
Definition types.h:555
@ Property
Definition types.h:563
@ Typedef
Definition types.h:556
@ Function
Definition types.h:554
@ Service
Definition types.h:566

◆ MethodTypes

enum class MethodTypes
strong
Enumerator
METHODTYPE_SPECIFICATIONS 

Definition at line 119 of file types.h.

119 {
120#define MTSPEC(x) x,
122#undef MTSPEC
123};
@ METHODTYPE_SPECIFICATIONS
Definition types.h:121

◆ Protection

enum class Protection
strong
Enumerator
PROTECTION_SPECIFICATIONS 

Definition at line 32 of file types.h.

32 {
33#define PROTSPEC(x,y,z) x,
35#undef PROTSPEC
36};
@ PROTECTION_SPECIFICATIONS
Definition types.h:34

◆ RelatesType

enum class RelatesType
strong
Enumerator
RELATESTYPE_SPECIFICATIONS 

Definition at line 143 of file types.h.

143 {
144#define RTSPEC(x) x,
146#undef RTSPEC
147};
@ RELATESTYPE_SPECIFICATIONS
Definition types.h:145

◆ Relationship

enum class Relationship
strong
Enumerator
RELATIONSHIP_SPECIFICATIONS 

Definition at line 167 of file types.h.

167 {
168#define RSSPEC(x) x,
170#undef RSSPEC
171};
@ RELATIONSHIP_SPECIFICATIONS
Definition types.h:169

◆ Specifier

enum class Specifier
strong
Enumerator
SPECIFIER_SPECIFICATIONS 

Definition at line 80 of file types.h.

80 {
81#define SPECSPEC(x,y) x,
83#undef SPECSPEC
84};
@ SPECIFIER_SPECIFICATIONS
Definition types.h:82

◆ SrcLangExt

enum class SrcLangExt
strong
Enumerator
SRCLANGEXT_SPECIFICATIONS 

Definition at line 207 of file types.h.

207 {
208#define SRCLANGEXT(x, v, z) x = v,
210#undef SRCLANGEXT
211};
@ SRCLANGEXT_SPECIFICATIONS
Definition types.h:209

◆ VhdlSpecifier

enum class VhdlSpecifier
strong
Enumerator
UNKNOWN 
LIBRARY 
ENTITY 
PACKAGE_BODY 
ARCHITECTURE 
PACKAGE 
ATTRIBUTE 
SIGNAL 
COMPONENT 
CONSTANT 
TYPE 
SUBTYPE 
FUNCTION 
RECORD 
PROCEDURE 
USE 
PROCESS 
PORT 
UNITS 
GENERIC 
INSTANTIATION 
GROUP 
VFILE 
SHAREDVARIABLE 
CONFIG 
ALIAS 
MISCELLANEOUS 
UCF_CONST 

Definition at line 709 of file types.h.

710{
711 UNKNOWN=0,
712 LIBRARY,
713 ENTITY,
716 PACKAGE,
717 ATTRIBUTE,
718 SIGNAL,
719 COMPONENT,
720 CONSTANT,
721 TYPE,
722 SUBTYPE,
723 FUNCTION,
724 RECORD,
725 PROCEDURE,
726 USE,
727 PROCESS,
728 PORT,
729 UNITS,
730 GENERIC,
732 GROUP,
733 VFILE,
735 CONFIG,
736 ALIAS,
739};
@ INSTANTIATION
Definition types.h:731
@ MISCELLANEOUS
Definition types.h:737
@ SHAREDVARIABLE
Definition types.h:734

Function Documentation

◆ codeSymbolType2Str()

const char * codeSymbolType2Str ( CodeSymbolType type)
constexpr

Definition at line 515 of file types.h.

516{
517 switch (type)
518 {
519 case CodeSymbolType::Class: return "class";
520 case CodeSymbolType::Struct: return "struct";
521 case CodeSymbolType::Union: return "union";
522 case CodeSymbolType::Interface: return "interface";
523 case CodeSymbolType::Protocol: return "protocol";
524 case CodeSymbolType::Category: return "category";
525 case CodeSymbolType::Exception: return "exception";
526 case CodeSymbolType::Service: return "service";
527 case CodeSymbolType::Singleton: return "singleton";
528 case CodeSymbolType::Concept: return "concept";
529 case CodeSymbolType::Namespace: return "namespace";
530 case CodeSymbolType::Package: return "package";
531 case CodeSymbolType::Define: return "define";
532 case CodeSymbolType::Function: return "function";
533 case CodeSymbolType::Variable: return "variable";
534 case CodeSymbolType::Typedef: return "typedef";
535 case CodeSymbolType::EnumValue: return "enumvalue";
536 case CodeSymbolType::Enumeration: return "enumeration";
537 case CodeSymbolType::Signal: return "signal";
538 case CodeSymbolType::Slot: return "slot";
539 case CodeSymbolType::Friend: return "friend";
540 case CodeSymbolType::DCOP: return "dcop";
541 case CodeSymbolType::Property: return "property";
542 case CodeSymbolType::Event: return "event";
543 case CodeSymbolType::Sequence: return "sequence";
544 case CodeSymbolType::Dictionary: return "dictionary";
545 default:
546 return nullptr;
547 }
548}

References Category, Class, Concept, DCOP, Define, Dictionary, Enumeration, EnumValue, Event, Exception, Friend, Function, Interface, Namespace, Package, Property, Protocol, Sequence, Service, Signal, Singleton, Slot, Struct, Typedef, Union, and Variable.

Referenced by HtmlCodeGenerator::writeCodeLink().

◆ to_string() [1/6]

const char * to_string ( MethodTypes mt)
static

Definition at line 125 of file types.h.

126{
127 const char *result = "ERROR";
128 switch (mt)
129 {
130#define MTSPEC(x) case MethodTypes::x: result = #x; break;
132#undef MTSPEC
133 }
134 return result;
135}
#define METHODTYPE_SPECIFICATIONS
Kind of method.
Definition types.h:111

References METHODTYPE_SPECIFICATIONS.

◆ to_string() [2/6]

const char * to_string ( Protection prot)
static

Definition at line 38 of file types.h.

39{
40 const char *result = "ERROR";
41 switch (prot)
42 {
43#define PROTSPEC(x,y,z) case Protection::x: result = #x; break;
45#undef PROTSPEC
46 }
47 return result;
48}
#define PROTECTION_SPECIFICATIONS
Protection level of members.
Definition types.h:26

References PROTECTION_SPECIFICATIONS.

Referenced by fmt::formatter< MethodTypes >::format(), fmt::formatter< Protection >::format(), fmt::formatter< RelatesType >::format(), fmt::formatter< Relationship >::format(), fmt::formatter< Specifier >::format(), fmt::formatter< SrcLangExt >::format(), and langToString().

◆ to_string() [3/6]

const char * to_string ( RelatesType rt)
static

Definition at line 149 of file types.h.

150{
151 const char *result = "ERROR";
152 switch (rt)
153 {
154#define RTSPEC(x) case RelatesType::x: result = #x; break;
156#undef RTSPEC
157 }
158 return result;
159}
#define RELATESTYPE_SPECIFICATIONS
Type of member relation.
Definition types.h:138

References RELATESTYPE_SPECIFICATIONS.

◆ to_string() [4/6]

const char * to_string ( Relationship rs)
static

Definition at line 173 of file types.h.

174{
175 const char *result = "ERROR";
176 switch (rs)
177 {
178#define RSSPEC(x) case Relationship::x: result = #x; break;
180#undef RSSPEC
181 }
182 return result;
183}
#define RELATIONSHIP_SPECIFICATIONS
Kind of member relationship.
Definition types.h:162

References RELATIONSHIP_SPECIFICATIONS.

◆ to_string() [5/6]

const char * to_string ( Specifier spec)
static

Definition at line 86 of file types.h.

87{
88 const char *result = "ERROR";
89 switch (spec)
90 {
91#define SPECSPEC(x,y) case Specifier::x: result = #x; break;
93#undef SPECSPEC
94 }
95 return result;
96}
#define SPECIFIER_SPECIFICATIONS
Virtualness of a member.
Definition types.h:75

References SPECIFIER_SPECIFICATIONS.

◆ to_string() [6/6]

const char * to_string ( SrcLangExt sle)
static

Definition at line 213 of file types.h.

214{
215 const char *result = "ERROR";
216 switch (sle)
217 {
218#define SRCLANGEXT(x,v,z) case SrcLangExt::x: result = #z; break;
220#undef SRCLANGEXT
221 }
222 return result;
223}
#define SRCLANGEXT_SPECIFICATIONS
Language as given by extension.
Definition types.h:186

References SRCLANGEXT_SPECIFICATIONS.

◆ to_string_lower() [1/2]

const char * to_string_lower ( Protection prot)
static

Definition at line 50 of file types.h.

51{
52 const char *result = "error";
53 switch (prot)
54 {
55#define PROTSPEC(x,y,z) case Protection::x: result = #y; break;
57#undef PROTSPEC
58 }
59 return result;
60}

References PROTECTION_SPECIFICATIONS.

Referenced by generateDEFForClass(), generateDEFForMember(), generateXMLForClass(), generateXMLForMember(), getProtectionName(), getVirtualnessName(), writeInnerClasses(), and writeListOfAllMembers().

◆ to_string_lower() [2/2]

const char * to_string_lower ( Specifier spec)
static

Definition at line 98 of file types.h.

99{
100 const char *result = "error";
101 switch (spec)
102 {
103#define SPECSPEC(x,y) case Specifier::x: result = #y; break;
105#undef SPECSPEC
106 }
107 return result;
108}

References SPECIFIER_SPECIFICATIONS.

◆ to_string_lower_class()

const char * to_string_lower_class ( Protection prot)
static

Definition at line 62 of file types.h.

63{
64 const char *result = "error";
65 switch (prot)
66 {
67#define PROTSPEC(x,y,z) case Protection::x: result = #z; break;
69#undef PROTSPEC
70 }
71 return result;
72}

References PROTECTION_SPECIFICATIONS.

Referenced by generateDEFForClass().