30 #ifndef PT_JSON_ENDOBJECT_H
31 #define PT_JSON_ENDOBJECT_H
33 #include <Pt/Json/Api.h>
34 #include <Pt/Json/Node.h>
52 inline static const Node::Type nodeId()
53 {
return Node::EndObject; }
62 return nodeCast<EndObject>(node);
71 return nodeCast<EndObject>(node);
80 return nodeCast<EndObject>(node);
89 return nodeCast<EndObject>(node);
96 #endif // include guard
Core module.
Definition: Allocator.h:33
EndObject * toEndObject(Node *node)
Casts a generic node to a EndObject node.
Definition: EndObject.h:60
EndObject & toEndObject(Node &node)
Casts a generic node to a EndObject node.
Definition: EndObject.h:78
JSON document node.
Definition: Node.h:52
EndObject()
Constructor.
Definition: EndObject.h:47
const EndObject * toEndObject(const Node *node)
Casts a generic node to a EndObject node.
Definition: EndObject.h:69
const EndObject & toEndObject(const Node &node)
Casts a generic node to a EndObject node.
Definition: EndObject.h:87
Represents the end of an object.
Definition: EndObject.h:43