/// \return a string representation of the <code>LabelSequence</code>.
std::string toText() const;
- /// \brief Returns the original Name object associated with this
- /// LabelSequence
- ///
- /// While the Name should still be in scope during the lifetime of
- /// the LabelSequence, it can still be useful to have access to it,
- /// for instance in helper functions that are only passed the
- /// LabelSequence itself.
- ///
- /// \return Reference to the original Name object
- const Name& getName() const { return (name_); }
-
/// \brief Calculate a simple hash for the label sequence.
///
/// This method calculates a hash value for the label sequence as binary
size_t len;
const uint8_t* data = ls.getData(&len);
ASSERT_EQ(expected_len, len) << "Expected data: " << expected_data <<
- " name: " << ls.getName().toText();
+ ", label sequence: " << ls;
EXPECT_EQ(expected_len, ls.getDataLength()) <<
"Expected data: " << expected_data <<
- " name: " << ls.getName().toText();
+ ", label sequence: " << ls;
for (size_t i = 0; i < len; ++i) {
EXPECT_EQ(expected_data[i], data[i]) <<
"Difference at pos " << i << ": Expected data: " << expected_data <<
- " name: " << ls.getName().toText();;
+ ", label sequence: " << ls;
}
}