abstractmetalang.h | abstractmetalang.h | |||
---|---|---|---|---|
skipping to change at line 798 | skipping to change at line 798 | |||
m_type(0), | m_type(0), | |||
m_class(0), | m_class(0), | |||
m_implementingClass(0), | m_implementingClass(0), | |||
m_declaringClass(0), | m_declaringClass(0), | |||
m_interfaceClass(0), | m_interfaceClass(0), | |||
m_propertySpec(0), | m_propertySpec(0), | |||
m_constant(false), | m_constant(false), | |||
m_invalid(false), | m_invalid(false), | |||
m_reverse(false), | m_reverse(false), | |||
m_userAdded(false), | m_userAdded(false), | |||
m_explicit(false) | m_explicit(false), | |||
m_pointerOperator(false) | ||||
{ | { | |||
} | } | |||
~AbstractMetaFunction(); | ~AbstractMetaFunction(); | |||
QString name() const | QString name() const | |||
{ | { | |||
return m_name; | return m_name; | |||
} | } | |||
skipping to change at line 834 | skipping to change at line 835 | |||
void setReverseOperator(bool reverse) | void setReverseOperator(bool reverse) | |||
{ | { | |||
m_reverse = reverse; | m_reverse = reverse; | |||
} | } | |||
bool isReverseOperator() const | bool isReverseOperator() const | |||
{ | { | |||
return m_reverse; | return m_reverse; | |||
} | } | |||
/** | ||||
* Returns true if this is a operator and the "self" operand is a poin | ||||
ter. | ||||
* e.g. class Foo {}; operator+(SomeEnum, Foo*); | ||||
*/ | ||||
bool isPointerOperator() const | ||||
{ | ||||
return m_pointerOperator; | ||||
} | ||||
void setPointerOperator(bool value) | ||||
{ | ||||
m_pointerOperator = value; | ||||
} | ||||
void setExplicit(bool isExplicit) | void setExplicit(bool isExplicit) | |||
{ | { | |||
m_explicit = isExplicit; | m_explicit = isExplicit; | |||
} | } | |||
/** | /** | |||
* Says if the function (a constructor) was declared as explicit in C+ +. | * Says if the function (a constructor) was declared as explicit in C+ +. | |||
* \return true if the function was declared as explicit in C++ | * \return true if the function was declared as explicit in C++ | |||
*/ | */ | |||
bool isExplicit() const | bool isExplicit() const | |||
{ | { | |||
skipping to change at line 1160 | skipping to change at line 1175 | |||
const AbstractMetaClass *m_implementingClass; | const AbstractMetaClass *m_implementingClass; | |||
const AbstractMetaClass *m_declaringClass; | const AbstractMetaClass *m_declaringClass; | |||
const AbstractMetaClass *m_interfaceClass; | const AbstractMetaClass *m_interfaceClass; | |||
QPropertySpec *m_propertySpec; | QPropertySpec *m_propertySpec; | |||
AbstractMetaArgumentList m_arguments; | AbstractMetaArgumentList m_arguments; | |||
uint m_constant : 1; | uint m_constant : 1; | |||
uint m_invalid : 1; | uint m_invalid : 1; | |||
uint m_reverse : 1; | uint m_reverse : 1; | |||
uint m_userAdded : 1; | uint m_userAdded : 1; | |||
uint m_explicit : 1; | uint m_explicit : 1; | |||
uint m_pointerOperator : 1; | ||||
}; | }; | |||
class AbstractMetaEnumValue | class AbstractMetaEnumValue | |||
{ | { | |||
public: | public: | |||
AbstractMetaEnumValue() | AbstractMetaEnumValue() | |||
: m_valueSet(false), m_value(0) | : m_valueSet(false), m_value(0) | |||
{ | { | |||
} | } | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 18 lines changed or added | |||