Last change
on this file since 623 was 603, checked in by dai_9181, 16 years ago |
ObjectModuleに関連するクラス一式をab_commonプロジェクトに移動した。
|
File size:
790 bytes
|
Line | |
---|
1 | #include "stdafx.h"
|
---|
2 |
|
---|
3 | TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, const Type &baseType )
|
---|
4 | : Symbol( namespaceScopes, name )
|
---|
5 | , baseName( baseName )
|
---|
6 | , baseType( baseType )
|
---|
7 | {
|
---|
8 | }
|
---|
9 |
|
---|
10 | TypeDefCollection::TypeDefCollection(){
|
---|
11 | }
|
---|
12 | TypeDefCollection::~TypeDefCollection(){
|
---|
13 | }
|
---|
14 | void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ){
|
---|
15 | TypeDef typeDef( namespaceScopes, name, baseName, nowLine );
|
---|
16 | this->push_back( typeDef );
|
---|
17 | }
|
---|
18 |
|
---|
19 | int TypeDefCollection::GetIndex( const Symbol &symbol ) const{
|
---|
20 | int max = (int)(*this).size();
|
---|
21 | for( int i=0; i<max; i++ ){
|
---|
22 | if( (*this)[i].IsEqualSymbol( symbol ) ){
|
---|
23 | return i;
|
---|
24 | }
|
---|
25 | }
|
---|
26 | return -1;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.