⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xref.h

📁 著名的uncle Bob的Agile software development的代码
💻 H
字号:
#ifndef XREF_XREF_H
#define XREF_XREF_H

#include <set>
#include "XRef/identifierReferenceList.h"
#include "Parser/parserClient.h"

//----------------------------------------------
// Name
//  XRef
// 
// Description
//  This class implements the ParserClient interface by
//  accumulating the references and definitions into a list of
//  references to identifiers.  This is used to print cross-
//  reference reports.

namespace XRef
{
	class XRef;
};

class XRef::XRef : public Parser::ParserClient
{
  public:
    virtual void 
		AddReference(Parser::Identifier* theIdentifier, 
                     string theFileName, 
                     int theLineNumber);

    virtual void 
		AddDefinition(Parser::Identifier* theIdentifier, 
                      string theFileName, 
                      int theLineNumber);
    
    void PrintReport(std::ostream&);

  private:
    set<IdentifierReferenceList> itsIdentifierSet;
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -