data: readded signature distinction for functions

This commit is contained in:
Eberhard Graether
2015-09-23 12:04:19 +02:00
parent 3d48145e47
commit b07bc7ed19
10 changed files with 119 additions and 144 deletions
@@ -1,25 +0,0 @@
#include "data/graph/token_component/TokenComponentSignature.h"
TokenComponentSignature::TokenComponentSignature(Id wordId)
: m_wordId(wordId)
{
}
TokenComponentSignature::~TokenComponentSignature()
{
}
std::shared_ptr<TokenComponent> TokenComponentSignature::copy() const
{
return std::make_shared<TokenComponentSignature>(*this);
}
Id TokenComponentSignature::getWordId() const
{
return m_wordId;
}
bool TokenComponentSignature::operator==(const TokenComponentSignature& other) const
{
return m_wordId == other.m_wordId;
}
@@ -1,24 +0,0 @@
#ifndef TOKEN_COMPONENT_SIGNATURE_H
#define TOKEN_COMPONENT_SIGNATURE_H
#include "data/graph/token_component/TokenComponent.h"
#include "utility/types.h"
class TokenComponentSignature
: public TokenComponent
{
public:
TokenComponentSignature(Id wordId);
virtual ~TokenComponentSignature();
virtual std::shared_ptr<TokenComponent> copy() const;
Id getWordId() const;
bool operator==(const TokenComponentSignature& other) const;
private:
const Id m_wordId;
};
#endif // TOKEN_COMPONENT_SIGNATURE_H