Xrtti::Base Class Reference

#include <Xrtti.h>

List of all members.

Public Member Functions

const StructureGetStructure () const
U32 GetOffset () const


Detailed Description

************************************************************************** Base describes a super class (or super struct or super union) of a class, struct, or union. It gives both the Structure that is the base class, and also the offset from the sub class to the super class; this is the value which, when added to a pointer to a sub class, yields a pointer to the base class.


Member Function Documentation

const Structure& Xrtti::Base::GetStructure  )  const [inline]
 

Returns the structure which is the base class/struct/union.

Returns:
the structure which is the base class/struct/union.

U32 Xrtti::Base::GetOffset  )  const [inline]
 

Returns the offset from an instance of the subclass, to the instance of the superclass.

class Foo { }; class Bar : public Foo { };

Foo *pF; Bar *pB = (Bar *) ((void *) pF + offset);

NOTE that this value will be 0 when the Base is the base of an anonymous Structure.

Returns:
the offset from an instance of the subclass, to the instance of the superclass


The documentation for this class was generated from the following file:
Generated on Fri May 4 11:55:14 2007 by  doxygen 1.4.6