Changeset 523 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
- Timestamp:
- May 1, 2008, 11:03:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
r507 r523 4 4 #include <Compiler.h> 5 5 6 TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine )6 TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ) 7 7 : Symbol( namespaceScopes, name ) 8 8 , baseName( baseName ) … … 14 14 } 15 15 /* 16 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const st ring &name ) const16 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const std::string &name ) const 17 17 { 18 18 if( GetName() != name ){ … … 21 21 return compiler.GetNamespaceSupporter().IsSameAreaNamespace( this->namespaceScopes, namespaceScopes ); 22 22 } 23 bool TypeDef::IsEqualSymbol( const st ring &fullName ) const23 bool TypeDef::IsEqualSymbol( const std::string &fullName ) const 24 24 { 25 25 char AreaName[VN_SIZE] = ""; //オブジェクト変数 … … 52 52 TypeDefCollection::~TypeDefCollection(){ 53 53 } 54 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine ){54 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ){ 55 55 TypeDef typeDef( namespaceScopes, name, baseName, nowLine ); 56 56 this->push_back( typeDef ); 57 57 } 58 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const st ring &name ) const{58 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name ) const{ 59 59 int max = (int)(*this).size(); 60 60 for( int i=0; i<max; i++ ){ … … 65 65 return -1; 66 66 } 67 int TypeDefCollection::GetIndex( const st ring &fullName ) const{67 int TypeDefCollection::GetIndex( const std::string &fullName ) const{ 68 68 char AreaName[VN_SIZE] = ""; //オブジェクト変数 69 69 char NestName[VN_SIZE] = ""; //入れ子メンバ … … 73 73 } 74 74 75 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const st ring &expression, int nowLine ){75 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine ){ 76 76 int i; 77 77 char temporary[VN_SIZE];
Note:
See TracChangeset
for help on using the changeset viewer.