source: dev/BasicCompiler_Common/src/Prototype.cpp@ 134

Last change on this file since 134 was 134, checked in by dai_9181, 17 years ago

Prototype::IsEqualSymbolメソッドを実装。

File size: 743 bytes
Line 
1#include "../common.h"
2#include <Prototype.h>
3
4bool Prototype::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
5{
6 if( GetName() != name ){
7 return false;
8 }
9
10 return NamespaceScopes::IsSameArea( GetNamespaceScopes(), namespaceScopes );
11}
12bool Prototype::IsEqualSymbol( const Prototype &prototype ) const
13{
14 return IsEqualSymbol( prototype.GetNamespaceScopes(), prototype.GetName() );
15}
16bool Prototype::IsEqualSymbol( const string &fullName ) const
17{
18 char AreaName[VN_SIZE] = ""; //オブジェクト変数
19 char NestName[VN_SIZE] = ""; //入れ子メンバ
20 bool isNest = SplitMemberName( fullName.c_str(), AreaName, NestName );
21
22 return IsEqualSymbol( NamespaceScopes( AreaName ), NestName );
23}
Note: See TracBrowser for help on using the repository browser.