Smithy Qt 0.1.0-pre
Internal development documentation
Loading...
Searching...
No Matches
shape.h File Reference

Declares the Shape class. More...

#include "shapeid.h"
#include <QCoreApplication>
#include <QJsonObject>
#include <QJsonValue>
Include dependency graph for shape.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Shape
 The Shape class provides a Qt representation of a Smithy semantic shape. More...
 
struct  Shape::ShapeReference
 
struct  Shape::Member
 

Functions

QTSMITHY_EXPORT size_t qHash (const Shape::ShapeReference &key, size_t seed=0)
 
QTSMITHY_EXPORT bool operator== (const Shape::ShapeReference &lhs, const Shape::ShapeReference &rhs)
 

Detailed Description

Declares the Shape class.

Definition in file shape.h.

Function Documentation

◆ operator==()

QTSMITHY_EXPORT bool operator== ( const Shape::ShapeReference & lhs,
const Shape::ShapeReference & rhs )

Definition at line 293 of file shape.cpp.

294{
295 return lhs.target == rhs.target;
296}

◆ qHash()

QTSMITHY_EXPORT size_t qHash ( const Shape::ShapeReference & key,
size_t seed = 0 )

Definition at line 287 of file shape.cpp.

289{
290 return ::qHash(key.target, seed);
291}