Eclipse CDT
7.0

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

All Superinterfaces:
IASTNameOwner, IASTNode, ICPPASTTemplateParameter

public interface ICPPASTTemplatedTypeTemplateParameter
extends ICPPASTTemplateParameter, IASTNameOwner

This is a template template parameter as V in template<template<typename T> class V> class CT;


Field Summary
static ASTNodeProperty DEFAULT_VALUE
          Relation between template template parameter and its default value.
static ASTNodeProperty PARAMETER
          Relation between template template parameter and its (nested) template parameters.
static ASTNodeProperty PARAMETER_NAME
          Relation between template template parameter and its name.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateParameter
EMPTY_TEMPLATEPARAMETER_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
 
Method Summary
 void addTemplateParamter(ICPPASTTemplateParameter parm)
          Add a nested template parameter.
 ICPPASTTemplatedTypeTemplateParameter copy()
          Returns a mutable copy of the tree rooted at this node.
 IASTExpression getDefaultValue()
          Get default value for template template parameter or null.
 IASTName getName()
          Get the (optional) name of this template template parameter.
 ICPPASTTemplateParameter[] getTemplateParameters()
          Get the nested template parameters.
 void setDefaultValue(IASTExpression expression)
          Set default value for the template template parameter.
 void setIsParameterPack(boolean val)
          Set whether this template template parameter is a parameter pack.
 void setName(IASTName name)
          Set the name of this template template parameter.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateParameter
isParameterPack
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
 

Field Detail

PARAMETER

static final ASTNodeProperty PARAMETER
Relation between template template parameter and its (nested) template parameters.


PARAMETER_NAME

static final ASTNodeProperty PARAMETER_NAME
Relation between template template parameter and its name.


DEFAULT_VALUE

static final ASTNodeProperty DEFAULT_VALUE
Relation between template template parameter and its default value.

Method Detail

getTemplateParameters

ICPPASTTemplateParameter[] getTemplateParameters()
Get the nested template parameters.


getName

IASTName getName()
Get the (optional) name of this template template parameter. In case there is no name an empty name is returned.


getDefaultValue

IASTExpression getDefaultValue()
Get default value for template template parameter or null.


copy

ICPPASTTemplatedTypeTemplateParameter copy()
Description copied from interface: IASTNode
Returns a mutable copy of the tree rooted at this node. The following postconditions hold: copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.

Specified by:
copy in interface IASTNode
Specified by:
copy in interface ICPPASTTemplateParameter
Since:
5.1

addTemplateParamter

void addTemplateParamter(ICPPASTTemplateParameter parm)
Add a nested template parameter.


setIsParameterPack

void setIsParameterPack(boolean val)
Set whether this template template parameter is a parameter pack.

Since:
5.2

setName

void setName(IASTName name)
Set the name of this template template parameter.


setDefaultValue

void setDefaultValue(IASTExpression expression)
Set default value for the template template parameter.


Eclipse CDT
7.0

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