PrevUpHomeNext

Struct trie_match_result

boost::text::trie_match_result

Synopsis

// In header: <boost/text/trie.hpp>


struct trie_match_result {
  // construct/copy/destruct
  trie_match_result();
  trie_match_result(void const *, std::ptrdiff_t, bool, bool);

  // public data members
  void const  * node;
  std::ptrdiff_t size;
  bool match;
  bool leaf;
};

Description

The result type for trie operations that produce a matching subsequence.

trie_match_result public construct/copy/destruct

  1. trie_match_result();
  2. trie_match_result(void const * n, std::ptrdiff_t s, bool m, bool l);

trie_match_result public public data members

  1. void const  * node;

    An opaque pointer to the underlying trie node.

  2. std::ptrdiff_t size;

    The size/length of the match, from the root through node, inclusive.

  3. bool match;

    True iff this result represents a match. Stated another way, match is true iff node represents an element in the trie (whether or not node has children).

  4. bool leaf;

    True iff node is a leaf (that is, that node hs no children).


PrevUpHomeNext