InterfaceDeclaration

Members

Functions

isBaseOf
bool isBaseOf(ClassDeclaration cd, int* poffset)

Determine if 'this' is a base class of cd. (Actually, if it is an interface supported by cd) Output: *poffset offset to start of class OFFSET_RUNTIME must determine offset at runtime

kind
const(char)* kind()
vtblOffset
int vtblOffset()

Determine if slot 0 of the vtbl[] is reserved for something else. For class objects, yes, this is where the ClassInfo ptr goes. For COM interfaces, no. For non-COM interfaces, yes, this is where the Interface ptr goes.

Inherited Members

From ClassDeclaration

isBaseOf2
bool isBaseOf2(ClassDeclaration cd)

Determine if 'this' is a base class of cd. This is used to detect circular inheritance only.

isBaseOf
bool isBaseOf(ClassDeclaration cd, int* poffset)

Determine if 'this' is a base class of cd.

isBaseInfoComplete
bool isBaseInfoComplete()

Determine if 'this' has complete base class information. This is used to detect forward references in covariant overloads.

searchBase
ClassDeclaration searchBase(Identifier ident)

Search base classes in depth-first, left-to-right order for a class or interface named 'ident'. Stops at first found. Does not look for additional matches.

findFunc
FuncDeclaration findFunc(Identifier ident, TypeFunction tf)

Find virtual function matching identifier and type. Used to build virtual function tables for interface implementations.

isCOMclass
bool isCOMclass()
isAbstract
bool isAbstract()
vtblOffset
int vtblOffset()

Determine if slot 0 of the vtbl[] is reserved for something else. For class objects, yes, this is where the classinfo ptr goes. For COM interfaces, no. For non-COM interfaces, yes, this is where the Interface ptr goes.

kind
const(char)* kind()
addLocalClass
void addLocalClass(ClassDeclarations* aclasses)

Meta