You must derive your own traits class from this class template, telling the DynamicSegmentTree how to interact with your node class.
More...
#include <dynamic_segment_tree.hpp>
|
using | KeyT = typename Node::KeyT |
|
using | ValueT = typename Node::ValueT |
|
template<class Node>
class ygg::DynSegTreeNodeTraits< Node >
You must derive your own traits class from this class template, telling the DynamicSegmentTree how to interact with your node class.
You must derive from this class template and supply the DynamicSegmentTree with your own derived class. At the least, you have to implement the methods get_lower, get_upper and get_value for the DynamicSegmentTree to work. See the respective methods' documentation for details.
- Template Parameters
-
◆ KeyT
◆ ValueT
◆ get_lower()
Must be implemented to return the lower bound of the interval represented by n.
- Parameters
-
n | The node whose lower interval bound should be returned. |
- Returns
- Must return the lower interval bound of n
◆ get_upper()
Must be implemented to return the upper bound of the interval represented by n.
- Parameters
-
n | The node whose upper interval bound should be returned. |
- Returns
- Must return the upper interval bound of n
◆ get_value()
Must be implemented to return the value associated with the interval represented by n.
- Parameters
-
n | The node whose associated value should be returned |
- Returns
- Must return the value associated with n
◆ is_lower_closed()
Should be implemented to indicate whether an interval contains its lower border or not.
The default (if this method is not implemented) is true.
◆ is_upper_closed()
Should be implemented to indicate whether an interval contains its upper border or not.
The default (if this method is not implemented) is false.
The documentation for this class was generated from the following file: