Minsky
schema1::Wire Struct Reference

#include <schema1.h>

Inheritance diagram for schema1::Wire:
Inheritance graph
Collaboration diagram for schema1::Wire:
Collaboration graph

Public Member Functions

 Wire ()
 
 Wire (int id, int from, int to)
 
- Public Member Functions inherited from schema1::SPoly< Wire, Item >
SPolyoperator= (const SPoly &)=default
 
SPolyclone () const override
 
string type () const override
 
void xml_pack (xml_pack_t &x, const string &d) const override
 
void xml_unpack (xml_unpack_t &x, const string &d) override
 
void json_pack (json_pack_t &x, const string &d) const override
 
void json_unpack (json_unpack_t &x, const string &d) override
 
- Public Member Functions inherited from schema1::Item
 Item (int id=-1)
 
template<class T >
 Item (int id, const T &it)
 
string typeName () const
 
- Public Member Functions inherited from schema1::SPoly< Item, SPolyBase >
SPolyoperator= (const SPoly &)=default
 
SPolyclone () const override
 
string type () const override
 
void xml_pack (xml_pack_t &x, const string &d) const override
 
void xml_unpack (xml_unpack_t &x, const string &d) override
 
void json_pack (json_pack_t &x, const string &d) const override
 
void json_unpack (json_unpack_t &x, const string &d) override
 

Public Attributes

int from
 
int to
 
- Public Attributes inherited from schema1::Item
int id
 
string detailedText
 commentary and short commentary on this item More...
 
string tooltip
 

Detailed Description

Definition at line 114 of file schema1.h.

Constructor & Destructor Documentation

◆ Wire() [1/2]

schema1::Wire::Wire ( )
inline

Definition at line 117 of file schema1.h.

117 : from(-1), to(-1) {}

◆ Wire() [2/2]

schema1::Wire::Wire ( int  id,
int  from,
int  to 
)
inline

Definition at line 118 of file schema1.h.

118 : Item(id), from(from), to(to) {}
Item(int id=-1)
Definition: schema1.h:99

Member Data Documentation

◆ from

int schema1::Wire::from

Definition at line 116 of file schema1.h.

◆ to

int schema1::Wire::to

Definition at line 116 of file schema1.h.


The documentation for this struct was generated from the following file: