Programs using this class must include <ostore/ostore.hh>, followed by <ostore/coll.hh> (if used), followed by <ostore/mop.hh>.
const os_class_type &defining_class() const;Returns a reference to a const os_class_type, the class that defines the specified member.
os_class_type &defining_class();Returns a reference to a non-const os_class_type, the class that defines the specified member.
os_member::Function
This enumerator is a possible return value from os_member::kind(), indicating a member function. See os_member_function.
int get_access() const;Returns an enumerator describing the access to the specified member, os_member::Private, os_member::Protected, or os_member::Public.
const os_class_type &defining_class() const;Returns a reference to a const os_class_type, the type that defines the specified member.
const os_class_type &defining_type() const;Returns a reference to a non-const os_class_type, the type that defines the specified member.
int get_kind() const;Returns an enumerator indicating the subtype of os_member of which the specified object is a direct instance. The possible return values are os_member::Variable, os_member::Function, os_member::Type, os_member::Access_modifier, os_member::Field_variable, os_member::Namespace, or os_member::Relationship.
os_boolean is_unspecified() const;Returns nonzero (that is, true) if and only if the specified os_member is the unspecified member. Some os_member-valued attributes in the metaobject protocol are required to have values in a consistent schema, but might lack values in the transient schema, before schema installation or evolution is performed. The get function for such an attribute returns a reference to an os_member. The fact that a reference rather than pointer is returned indicates that the value is required in a consistent schema. In the transient schema, if such an attribute lacks a value (because you have not yet specified it), the get function returns the unspecified member. This is the only os_member for which is_unspecified() returns nonzero.
os_member::operator const os_access_modifier&()
operator const os_access_modifier&() const;Provides for safe casts from const os_member to const os_access_modifier&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator const os_field_member_variable&() const;Provides for safe casts from const os_member to const os_field_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator const os_member_function&() const;Provides for safe casts from const os_member to const os_member_function&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator const os_member_type&() const;Provides for safe casts from const os_member to const os_member_type&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator const os_member_variable&() const;Provides for safe casts from const os_member to const os_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator const os_relationship_member_variable&() const;Provides for safe casts from const os_member to const os_relationship_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_access_modifier&();Provides for safe casts from os_member to os_access_modifier&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_field_member_variable&();Provides for safe casts from os_member to os_field_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_member_function&();Provides for safe casts from os_member to os_member_function&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_member_type&();Provides for safe casts from os_member to os_member_type&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_member_variable&();Provides for safe casts from os_member to os_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
operator os_relationship_member_variable&();Provides for safe casts from os_member to os_relationship_member_variable&. If the cast is not permissible, err_mop_illegal_cast is signaled.
void set_access(int);Specifies an enumerator describing the access to the specified member, os_member::Private, os_member::Protected, or os_member::Public.
os_member::Variable
This enumerator is a possible return value from os_member::kind(), indicating a data member. See os_member_variable.
Updated: 03/31/98 17:25:09