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);
const Float * toFloat(const Node *node)
Casts a generic node to a float node.
Definition Float.h:84
Float()
Constructor.
Definition Float.h:47
const Float & toFloat(const Node &node)
Casts a generic node to a float node.
Definition Float.h:102
Float & toFloat(Node &node)
Casts a generic node to a float node.
Definition Float.h:93
Float * toFloat(Node *node)
Casts a generic node to a float node.
Definition Float.h:75
Node(Type type)
Constructs a new Node object with the specified node type.
Definition Node.h:83
Read and write JSON ducuments.
Core module.
Definition Allocator.h:33