Functions | |
std::string | getAddressDescription (const ClientInterface &aClient, const uint32_t aAddress, const size_t &aMaxListSize) |
Generates a short string summarising which nodes match the specified address. More... | |
std::string | getAddressDescription (const Node &aNode, const uint32_t aAddress, const size_t &aMaxListSize) |
Generates a short string summarising which nodes match the specified address. More... | |
bool | compareNodeAddr (const Node *aNodeL, const Node *aNodeR) |
std::vector< std::pair< const Node *, const Node * > > | getAddressOverlaps (const Node &aNode) |
void | printNodeOverlapDescription (std::ostream &aStream, const Node &aNode1, const Node &aNode2) |
bool | writeNodeOverlapReport (const std::string &aFilePath, const std::vector< std::pair< const Node *, const Node * > > &aNodes, const std::string &aHeader) |
Definition at line 115 of file utilities.cpp.
References uhal::Node::getAddress().
Referenced by uhal::NodeTreeBuilder::calculateHierarchicalAddresses(), and getAddressOverlaps().
std::string uhal::detail::getAddressDescription | ( | const ClientInterface & | aClient, |
const uint32_t | aAddress, | ||
const size_t & | aMaxListSize | ||
) |
Generates a short string summarising which nodes match the specified address.
Definition at line 106 of file utilities.cpp.
References uhal::ClientInterface::mNode.
Referenced by uhal::tests::BOOST_FIXTURE_TEST_CASE(), and uhal::exception::IPbusCoreResponseCodeSet::IPbusCoreResponseCodeSet().
std::string uhal::detail::getAddressDescription | ( | const Node & | aNode, |
const uint32_t | aAddress, | ||
const size_t & | aMaxListSize | ||
) |
Generates a short string summarising which nodes match the specified address.
Definition at line 47 of file utilities.cpp.
References uhal::Node::begin(), uhal::Node::end(), uhal::Node::getLineage(), uhal::Node::getPath(), uhal::defs::HIERARCHICAL, uhal::defs::INCREMENTAL, and uhal::min.
std::vector< std::pair< const Node *, const Node * > > uhal::detail::getAddressOverlaps | ( | const Node & | aNode | ) |
Definition at line 121 of file utilities.cpp.
References uhal::Node::begin(), compareNodeAddr(), uhal::Node::getAddress(), uhal::Node::getMask(), uhal::Node::getMode(), uhal::Node::getSize(), uhal::defs::HIERARCHICAL, uhal::defs::INCREMENTAL, uhal::Node::isChildOf(), uhal::Node::const_iterator::next(), uhal::defs::NOMASK, and uhal::defs::SINGLE.
Referenced by uhal::tests::BOOST_FIXTURE_TEST_CASE(), and uhal::NodeTreeBuilder::checkForAddressCollisions().
void uhal::detail::printNodeOverlapDescription | ( | std::ostream & | aStream, |
const Node & | aNode1, | ||
const Node & | aNode2 | ||
) |
Definition at line 170 of file utilities.cpp.
References uhal::Node::getAddress(), uhal::Node::getMask(), uhal::Node::getMode(), uhal::Node::getPath(), uhal::Node::getSize(), uhal::hex, and uhal::defs::INCREMENTAL.
Referenced by writeNodeOverlapReport().
bool uhal::detail::writeNodeOverlapReport | ( | const std::string & | aFilePath, |
const std::vector< std::pair< const Node *, const Node * > > & | aNodes, | ||
const std::string & | aHeader | ||
) |
Definition at line 198 of file utilities.cpp.
References uhal::hex, and printNodeOverlapDescription().
Referenced by uhal::NodeTreeBuilder::checkForAddressCollisions().