30 #ifndef PT_JSON_FLOAT_H
31 #define PT_JSON_FLOAT_H
33 #include <Pt/Json/Api.h>
34 #include <Pt/Json/Node.h>
56 void setValue(
double n)
62 inline static const Node::Type nodeId()
77 return nodeCast<Float>(node);
86 return nodeCast<Float>(node);
95 return nodeCast<Float>(node);
104 return nodeCast<Float>(node);
111 #endif // nclude guard
Core module.
Definition: Allocator.h:33
Float & toFloat(Node &node)
Casts a generic node to a float node.
Definition: Float.h:93
Float()
Constructor.
Definition: Float.h:47
const Float * toFloat(const Node *node)
Casts a generic node to a float node.
Definition: Float.h:84
Float * toFloat(Node *node)
Casts a generic node to a float node.
Definition: Float.h:75
JSON document node.
Definition: Node.h:52
Represents a float.
Definition: Float.h:43
const Float & toFloat(const Node &node)
Casts a generic node to a float node.
Definition: Float.h:102