comparison generator/typesystem.h @ 304:04b52676b45f signals

fixed compiling all packages
author eldar_ins@eldar-laptop
date Sun, 13 Dec 2009 06:24:55 +0500
parents adae77fdc1ea
children 5896535a03cd
comparison
equal deleted inserted replaced
303:98b211f3ee34 304:04b52676b45f
434 434
435 TypeEntry(const QString &name, Type t) 435 TypeEntry(const QString &name, Type t)
436 : m_name(name), 436 : m_name(name),
437 m_type(t), 437 m_type(t),
438 m_code_generation(GenerateAll), 438 m_code_generation(GenerateAll),
439 m_preferred_conversion(true) 439 m_preferred_conversion(true),
440 { 440 m_has_copy_constructor(false)
441 }; 441 {
442 }
442 443
443 virtual ~TypeEntry() { } 444 virtual ~TypeEntry() { }
444 445
445 Type type() const { return m_type; } 446 Type type() const { return m_type; }
446 bool isPrimitive() const { return m_type == PrimitiveType; } 447 bool isPrimitive() const { return m_type == PrimitiveType; }
506 507
507 virtual bool isNativeIdBased() const { return false; } 508 virtual bool isNativeIdBased() const { return false; }
508 509
509 // qtd 510 // qtd
510 virtual bool isStructInD() const { return false; } 511 virtual bool isStructInD() const { return false; }
512 bool hasPrivateCopyConstructor() const { return m_has_copy_constructor; }
513 void setHasPrivateCopyConstructor(bool has_copy_constructor) { m_has_copy_constructor = has_copy_constructor; }
511 514
512 private: 515 private:
513 QString m_name; 516 QString m_name;
514 Type m_type; 517 Type m_type;
515 uint m_code_generation; 518 uint m_code_generation;
516 CustomFunction m_customConstructor; 519 CustomFunction m_customConstructor;
517 CustomFunction m_customDestructor; 520 CustomFunction m_customDestructor;
518 bool m_preferred_conversion; 521 bool m_preferred_conversion;
522 bool m_has_copy_constructor;
519 }; 523 };
520 typedef QHash<QString, QList<TypeEntry *> > TypeEntryHash; 524 typedef QHash<QString, QList<TypeEntry *> > TypeEntryHash;
521 typedef QHash<QString, TypeEntry *> SingleTypeEntryHash; 525 typedef QHash<QString, TypeEntry *> SingleTypeEntryHash;
522 526
523 527