libcsdbg  1.28
C++ exception (and generic) stack trace debug library
template<class T >
node< T > * csdbg::node< T >::link ( const node< T > *  prev = NULL) const
inlineprotectedvirtual

Get the next node (using direct or XOR linking)

Parameters
[in]prevthe previous node (NULL for direct linking)
Returns
the next node

Definition at line 156 of file node.hpp.

Referenced by csdbg::chain< T >::clear(), csdbg::chain< T >::detach_node(), csdbg::chain< T >::foreach(), csdbg::chain< T >::node_at(), csdbg::chain< T >::node_with(), and csdbg::chain< T >::operator=().

157 {
158  mem_addr_t addr = reinterpret_cast<mem_addr_t> (m_link);
159  mem_addr_t mask = reinterpret_cast<mem_addr_t> (prev);
160  return reinterpret_cast<node<T>*> (addr ^ mask);
161 }
unsigned long long mem_addr_t
64-bit memory address
Definition: config.hpp:120
node * m_link
Next node link (direct or XOR link)
Definition: node.hpp:42

+ Here is the caller graph for this function: