1
/*******************************************************************************
2
* Copyright (c) 2005, 2009 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.core.dom.ast.cpp;
14
import org.eclipse.cdt.core.dom.ast.IType;
17
* This interface represents an instantiation of a class or function template.
18
* An instantiated template is a specialization of that template.
20
* An instance of a class template will also implement ICPPClassType and similarly
21
* a function template instance will also implement ICPPFunction (or even ICPPMethod
22
* or ICPPConstructor as appropriate)
24
* @noimplement This interface is not intended to be implemented by clients.
25
* @noextend This interface is not intended to be extended by clients.
27
public interface ICPPTemplateInstance extends ICPPSpecialization {
31
ICPPTemplateInstance[] EMPTY_TEMPLATE_INSTANCE_ARRAY = {};
34
* get the template that this was instantiated from
36
public ICPPTemplateDefinition getTemplateDefinition();
39
* Returns the template arguments of this instance.
42
public ICPPTemplateArgument[] getTemplateArguments();
45
* @deprecated use {@link #getTemplateArguments()}, instead.
48
public IType[] getArguments();