This class provides information about Qore typed hash (hashdecl) members.
More...
This class provides information about Qore typed hash (hashdecl) members.
- Restrictions:
- Qore::PO_NO_REFLECTION
There is no setter method in this class due to design issues related to lvalue restrictions with non-object data.
- Since
- Qore 0.9.0
◆ constructor()
Qore::Reflection::TypedHashMember::constructor |
( |
| ) |
|
Throws an exception; this class cannot be created directly or used in a user class hierarchy.
- Exceptions
-
TYPEDHASHMEMBER-CONSTRUCTOR-ERROR | the TypedHashMember class cannot be constructed directly or inherited directly by a user-defined class |
◆ getValue()
auto Qore::Reflection::TypedHashMember::getValue |
( |
hash< auto > |
h | ) |
|
Returns the value of the member for the given object.
- Code Flags:
- RET_VALUE_ONLY
- Example:
auto val = m.getValue(h);
- Parameters
-
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 |
- Returns
- the value of the member for the given object; must have been declared with the typed hash (hashdecl)'s type declaring the member, or a
MEMBER-ERROR
exception is thrown
- Exceptions
-
PROGRAM-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 |
◆ isBuiltin()
bool Qore::Reflection::TypedHashMember::isBuiltin |
( |
| ) |
|
◆ isUser()
bool Qore::Reflection::TypedHashMember::isUser |
( |
| ) |
|
The documentation for this class was generated from the following file:
- /export/home/dnichols/src/qore/git/qore/build/modules/reflection/QC_TypedHashMember.dox.h