Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPTemplateParameterMap
-
public interface ICPPTemplateParameterMapModels 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Integer[]getAllParameterPositions()Returns the array of template parameter positions, for which a mapping exists.ICPPTemplateArgumentgetArgument(int paramID)Returns the value for the template parameter with the given id.ICPPTemplateArgumentgetArgument(ICPPTemplateParameter param)Returns the value for the template parameter in the map, ornullif the parameter is not mapped or the parameter is a parameter pack.ICPPTemplateArgumentgetArgument(ICPPTemplateParameter param, int packOffset)If 'param' is not a parameter pack, returns the value for 'param' in the map.ICPPTemplateArgument[]getPackExpansion(int paramID)Returns the values for the template parameter pack with the given id in the map, ornullif the parameter is not mapped or is not a parameter pack.ICPPTemplateArgument[]getPackExpansion(ICPPTemplateParameter param)Returns the values for the template parameter pack in the map, ornullif the parameter is not mapped or is no parameter pack.
-
-
-
Method Detail
-
getArgument
ICPPTemplateArgument getArgument(int paramID)
Returns the value for the template parameter with the given id.- See Also:
ICPPTemplateParameter.getParameterID()
-
getArgument
ICPPTemplateArgument getArgument(ICPPTemplateParameter param)
Returns the value for the template parameter in the map, ornullif the parameter is not mapped or the parameter is a parameter pack.
-
getPackExpansion
ICPPTemplateArgument[] getPackExpansion(int paramID)
Returns the values for the template parameter pack with the given id in the map, ornullif the parameter is not mapped or is not a parameter pack.- Since:
- 5.2
-
getPackExpansion
ICPPTemplateArgument[] getPackExpansion(ICPPTemplateParameter param)
Returns the values for the template parameter pack in the map, ornullif the parameter is not mapped or is no parameter pack.- Since:
- 5.2
-
getArgument
ICPPTemplateArgument getArgument(ICPPTemplateParameter param, int packOffset)
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. Returnsnullis 'param' is not mapped.- Since:
- 5.5
-
getAllParameterPositions
java.lang.Integer[] getAllParameterPositions()
Returns the array of template parameter positions, for which a mapping exists.
-
-