Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPTemplateParameterMap
public interface ICPPTemplateParameterMap
Models the mapping of template parameters to values, or pack-expansions.
- Since:
- 5.1
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionInteger[]
Returns the array of template parameter positions, for which a mapping exists.getArgument
(int paramID) Returns the value for the template parameter with the given id.getArgument
(ICPPTemplateParameter param) Returns the value for the template parameter in the map, ornull
if the parameter is not mapped or the parameter is a parameter pack.getArgument
(ICPPTemplateParameter param, int packOffset) If 'param' is not a parameter pack, returns the value for 'param' in the map.getPackExpansion
(int paramID) Returns the values for the template parameter pack with the given id in the map, ornull
if the parameter is not mapped or is not a parameter pack.Returns the values for the template parameter pack in the map, ornull
if the parameter is not mapped or is no parameter pack.
-
Method Details
-
getArgument
Returns the value for the template parameter with the given id.- See Also:
-
getArgument
Returns the value for the template parameter in the map, ornull
if the parameter is not mapped or the parameter is a parameter pack. -
getPackExpansion
Returns the values for the template parameter pack with the given id in the map, ornull
if the parameter is not mapped or is not a parameter pack.- Since:
- 5.2
-
getPackExpansion
Returns the values for the template parameter pack in the map, ornull
if the parameter is not mapped or is no parameter pack.- Since:
- 5.2
-
getArgument
If 'param' is not a parameter pack, returns the value for 'param' in the map. If 'param' is a parameter pack, returns the value at position 'packOffset' in the pack of values for 'param' in the map. Returnsnull
is 'param' is not mapped.- Since:
- 5.5
-
getAllParameterPositions
Integer[] getAllParameterPositions()Returns the array of template parameter positions, for which a mapping exists.
-