The types os_int32 and os_boolean, used throughout this manual, are each defined as a signed 32-bit integer type. The type os_unsigned_int32 is defined as an unsigned 32-bit integer type.
Programs using this class must include <ostore/ostore.hh>, followed by <ostore/coll.hh> (if used), followed by <ostore/mop.hh>.
static os_base_class &create( os_unsigned_int32 access, os_boolean is_virtual, os_class_type *associated_class );Creates an os_base_class. The arguments specify the initial values for the attributes access, is_virtual, and associated_class.
int get_access() const;Returns an enumerator describing the access to the base class members, os_base_class::Public, os_base_class::Private, or os_base_class::Protected.
const os_class_type &get_class() const;Returns a reference to a const os_class_type, the class serving as base class in the derivation represented by the specified os_base_class object.
os_class_type &get_class();Returns a reference to a non-const os_class_type, the class serving as base class in the derivation represented by the specified os_base_class object.
os_unsigned_int32 get_offset() const;Returns the offset in bytes to the base class from the immediately enclosing class. For virtual bases, this offset is only meaningful if the base class was obtained by a call to os_class_type::get_allocated_virtual_base_classes().
os_unsigned_int32 get_offset(const os_class_type&) const;Returns the offset in bytes to the base class from the specified most derived class. this must be a virtual base class.
os_unsigned_int32 get_size() const;Returns the size in bytes of the base class.
os_unsigned_int32 get_virtual_base_class_pointer_offset() const;Returns the offset of the virtual base class pointer.
os_boolean is_virtual() const;Returns 1 if and only if the specified base class is virtual.
void set_access(os_unsigned_int32);Specifies an enumerator describing the access to the base class members, os_base_class::Public, os_base_class::Private, or os_base_class::Protected.
void set_class(os_class_type &);Specifies the class serving as base class in the derivation represented by the specified os_base_class object.
void set_offset(os_unsigned_int32);Sets the offset in bytes of the base class from the immediately enclosing class.
void set_virtual_base_class_no_pointer();Specifies that the base class has no virtual base class pointer.
void set_virtual_base_class_pointer_offset(os_unsigned_int32);Sets the offset of the virtual base class pointer.
void set_virtuals_redefined(os_boolean);Specifies whether the base class redefines any virtual functions.
os_boolean virtual_base_class_has_pointer() const;Returns nonzero if the base class has a virtual base class pointer.
os_boolean virtuals_redefined() const;Returns nonzero if the base class redefines any virtual functions.
Updated: 03/31/98 17:25:09