xref.h
来自「著名的uncle Bob的Agile software development的」· C头文件 代码 · 共 42 行
H
42 行
#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 + =
减小字号Ctrl + -
显示快捷键?