```cpp
enum Type {
        InvalidNode = -1,
        TreeNode,
        ListNode
    };
```