blob: e37532cf09b9ecccb18d8962a8f40ead92792afc [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef INCLUDED_idlc_inc_idlc_aststructinstance_hxx
#define INCLUDED_idlc_inc_idlc_aststructinstance_hxx
#include "idlc/asttype.hxx"
#include "idlc/idlctypes.hxx"
class AstDeclaration;
class AstScope;
class AstStructInstance: public AstType {
public:
AstStructInstance(
AstType const * typeTemplate, DeclList const * typeArguments,
AstScope * scope);
AstType const * getTypeTemplate() const { return m_typeTemplate; }
DeclList::const_iterator getTypeArgumentsBegin() const
{ return m_typeArguments.begin(); }
DeclList::const_iterator getTypeArgumentsEnd() const
{ return m_typeArguments.end(); }
private:
AstType const * m_typeTemplate;
DeclList m_typeArguments;
};
#endif