LibreOffice Module bridges (master) 1
vtables.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sal/types.h>
23#include <typelib/typedescription.h>
24
26{
40sal_Int32 getLocalFunctions(typelib_InterfaceTypeDescription const* type);
41
54sal_Int32 getPrimaryFunctions(typelib_InterfaceTypeDescription* type);
55
60{
68 sal_Int32 offset;
69
76 sal_Int32 index;
77};
78
86VtableSlot getVtableSlot(typelib_InterfaceAttributeTypeDescription const* ifcMember);
87
94VtableSlot getVtableSlot(typelib_InterfaceMethodTypeDescription const* ifcMember);
95}
96
97/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 getLocalFunctions(typelib_InterfaceTypeDescription const *type)
Calculate the number of local functions of an interface type.
Definition: vtables.cxx:114
sal_Int32 getPrimaryFunctions(typelib_InterfaceTypeDescription *type)
Calculate the number of primary functions of an interface type.
Definition: vtables.cxx:122
VtableSlot getVtableSlot(typelib_InterfaceAttributeTypeDescription const *ifcMember)
Calculates the vtable slot associated with an interface attribute member.
Definition: vtables.cxx:132
Represents a vtable slot of a C++ class.
Definition: vtables.hxx:60
sal_Int32 index
The index within the vtable.
Definition: vtables.hxx:76
sal_Int32 offset
The offset of the vtable.
Definition: vtables.hxx:68