34 BOOST_ASSERT(this->isQuery());
39 this->
setData(data, isUnsolicited);
40 BOOST_ASSERT(!this->isQuery());
44 EntryImpl::isQuery()
const 52 BOOST_ASSERT(!this->isQuery());
59 bool queryIsFullName = !queryName.empty() && queryName[-1].isImplicitSha256Digest();
61 int cmp = queryIsFullName ?
62 queryName.compare(0, queryName.size() - 1, data.getName()) :
63 queryName.compare(data.getName());
69 if (queryIsFullName) {
70 return queryName[-1].compare(data.getFullName()[-1]);
80 int cmp = lhs.getName().compare(rhs.getName());
85 return lhs.getFullName()[-1].compare(rhs.getFullName()[-1]);
91 if (this->isQuery()) {
92 if (other.isQuery()) {
93 return m_queryName < other.m_queryName;
100 if (other.isQuery()) {
const Data & getData() const
void setData(shared_ptr< const Data > data, bool isUnsolicited)
replaces the stored Data
bool operator<(const EntryImpl &other) const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
an Entry in ContentStore implementation
bool isUnsolicited() const
EntryImpl(const Name &name)
construct Entry for query
int compareQueryWithData(const Name &queryName, const Data &data)
int compareDataWithData(const Data &lhs, const Data &rhs)