// Copyright 2019 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CORE_FXCRT_TREE_NODE_H_ #define CORE_FXCRT_TREE_NODE_H_ #include <stdint.h> #include "core/fxcrt/check.h" #include "core/fxcrt/unowned_ptr_exclusion.h" namespace fxcrt { // Implements the usual DOM/XML-ish trees allowing for a variety of // pointer types with which to connect the nodes. Public methods maintain // the invariants of the tree. template <typename T> class TreeNodeBase { … }; // Tree connected using C-style pointers. template <typename T> class TreeNode : public TreeNodeBase<T> { … }; } // namespace fxcrt TreeNode; #endif // CORE_FXCRT_TREE_NODE_H_