![]() |
Qore reflection Module
1.7.0
|
This class provides information about Qore typed hash (hashdecl) members. More...
Public Member Methods | |
constructor () | |
Throws an exception; this class cannot be created directly or used in a user class hierarchy. More... | |
auto | getValue (hash< auto > h) |
Returns the value of the member for the given object. More... | |
bool | isBuiltin () |
returns True if the typed hash (hashdecl) defining the member is a builtin typed hash (hashdecl) More... | |
bool | isUser () |
returns True if the typed hash (hashdecl) defining the member is a user typed hash (hashdecl) More... | |
![]() | |
constructor () | |
Throws an exception; this class cannot be created directly or used in a user class hierarchy. More... | |
auto | getDefaultValue () |
Returns the default value for the member or nothing if the member has no default value. More... | |
string | getName () |
returns the member's name More... | |
hash< SourceLocationInfo > | getSourceLocation () |
Returns the source location of the member declaration. More... | |
Type | getType () |
Returns the type object for this member. More... | |
bool | isEqual (AbstractMember mem) |
Returns True if the AbstractMember object passed as an argument is equal to the current object; False if not. More... | |
This class provides information about Qore typed hash (hashdecl) members.
There is no setter method in this class due to design issues related to lvalue restrictions with non-object data.
Qore::Reflection::TypedHashMember::constructor | ( | ) |
Throws an exception; this class cannot be created directly or used in a user class hierarchy.
TYPEDHASHMEMBER-CONSTRUCTOR-ERROR | the TypedHashMember class cannot be constructed directly or inherited directly by a user-defined class |
auto Qore::Reflection::TypedHashMember::getValue | ( | hash< auto > | h | ) |
Returns the value of the member for the given object.
h | a hash to get the member value from; must have been declared with the typed hash (hashdecl)'s type declaring the member, or a MEMBER-ERROR exception is thrown |
MEMBER-ERROR
exception is thrownPROGRAM-ERROR | thrown if the Program object holding the class has been destroyed |
MEMBER-ERROR | the hash was not declared with the typed hash (hashdecl)'s type implementing this member |
bool Qore::Reflection::TypedHashMember::isBuiltin | ( | ) |
returns True if the typed hash (hashdecl) defining the member is a builtin typed hash (hashdecl)
PROGRAM-ERROR | thrown if the Program object holding the typed hash (hashdecl) has been destroyed |
bool Qore::Reflection::TypedHashMember::isUser | ( | ) |
returns True if the typed hash (hashdecl) defining the member is a user typed hash (hashdecl)
PROGRAM-ERROR | thrown if the Program object holding the cltyped hash (hashdecl)ass has been destroyed |