Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPTemplateTemplateParameter

All Superinterfaces:
java.lang.Cloneable, IBinding, ICompositeType, ICPPBinding, ICPPClassTemplate, ICPPClassType, ICPPTemplateDefinition, ICPPTemplateParameter, IType

public interface ICPPTemplateTemplateParameter
extends ICPPTemplateParameter, ICPPClassTemplate

Template parameters of type template


Field Summary
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateParameter
EMPTY_TEMPLATE_PARAMETER_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType
EMPTY_CLASS_ARRAY, k_class, v_private, v_protected, v_public
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.ICompositeType
k_struct, k_union
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IType
EMPTY_TYPE_ARRAY, TYPE_MATCHER
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
EMPTY_BINDING_ARRAY
 
Method Summary
 IType getDefault()
          Return the default value for this parameter, or null.
 ICPPTemplateParameter[] getTemplateParameters()
          Returns an array of the template parameters.
 boolean isSameType(IType type)
          Types containing template parameters need to be compared even before it is known to which binding the template parameter belongs to.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateParameter
getDefaultValue, getParameterID, getParameterPosition, getTemplateNestingLevel, isParameterPack
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplate
asDeferredInstance, getPartialSpecializations
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType
findField, getAllDeclaredMethods, getBases, getConstructors, getDeclaredFields, getDeclaredMethods, getFields, getFriends, getMethods, getNestedClasses, getVisibility, isFinal
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.ICompositeType
getCompositeScope, getKey, isAnonymous
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IType
clone
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPBinding
getQualifiedName, getQualifiedNameCharArray, isGloballyQualified
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
getLinkage, getName, getNameCharArray, getOwner, getScope
 

Method Detail

getTemplateParameters

ICPPTemplateParameter[] getTemplateParameters()
Description copied from interface: ICPPTemplateDefinition
Returns an array of the template parameters. In the case of a specialization, the array will be empty, a partial specialization will have the specialized parameter list

Specified by:
getTemplateParameters in interface ICPPTemplateDefinition
Returns:
array of ICPPTemplateParameter

getDefault

IType getDefault()
                 throws DOMException
Return the default value for this parameter, or null.

Throws:
DOMException

isSameType

boolean isSameType(IType type)
Types containing template parameters need to be compared even before it is known to which binding the template parameter belongs to. Therefore isSameType(IType) compares the kind and the parameter position of the template parameter, only. The name and the owner is ignored.

Specified by:
isSameType in interface IType
Since:
5.1

Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.