ObjectStore C++ API Reference

os_member

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. An instance of this class represents a class member.

Programs using this class must include <ostore/ostore.hh>, followed by <ostore/coll.hh> (if used), followed by <ostore/mop.hh>.

os_member::Access_modifier

This enumerator is a possible return value from os_member::kind(), indicating an access modification to an inherited member. See os_access_modifier.

os_member::defining_class()

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::Field_variable

This enumerator is a possible return value from os_member::kind(), indicating a bit field. See os_instantiated_class_type.

os_member::Function

This enumerator is a possible return value from os_member::kind(), indicating a member function. See os_member_function.

os_member::get_access()

int get_access() const;
Returns an enumerator describing the access to the specified member, os_member::Private, os_member::Protected, or os_member::Public.

os_member::get_defining_class()

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.

os_member::get_kind()

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_member::is_unspecified()

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::Namespace

This enumerator is a possible return value from os_member::get_kind(), indicating a member function. See os_member_namespace.

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.

os_member::operator const os_field_member_variable&()

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.

os_member::operator const os_member_function&()

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.

os_member::operator const os_member_type&()

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.

os_member::operator const os_member_variable&()

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.

os_member::operator const os_relationship_member_variable&()

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.

os_member::operator os_access_modifier&()

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.

os_member::operator os_field_member_variable&()

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.

os_member::operator os_member_function&()

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.

os_member::operator os_member_type&()

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.

os_member::operator os_member_variable&()

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.

os_member::operator os_relationship_member_variable&()

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.

os_member::Private

This enumerator is a possible return value from os_member::get_access(), indicating private access.

os_member::Protected

This enumerator is a possible return value from os_member::get_access(), indicating protected access.

os_member::Public

This enumerator is a possible return value from os_member::get_access(), indicating public access.

os_member::Relationship

This enumerator is a possible return value from os_member::kind(), indicating a relationship (inverse) member. See os_relationship_member_variable.

os_member::set_access()

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::Type

This enumerator is a possible return value from os_member::kind(), indicating that the specified member is a nested type definition. See os_member_type.

os_member::Variable

This enumerator is a possible return value from os_member::kind(), indicating a data member. See os_member_variable.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09