Minsky
schema1::Operation Struct Reference

#include <schema1.h>

Inheritance diagram for schema1::Operation:
Inheritance graph
Collaboration diagram for schema1::Operation:
Collaboration graph

Public Member Functions

 Operation ()
 
 Operation (int id, const schema0::Operation &op)
 
- Public Member Functions inherited from schema1::SPoly< Operation, 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

minsky::OperationType::Type type
 
double value
 
vector< int > ports
 
map< double, double > data
 
string name
 
int intVar
 
- 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 121 of file schema1.h.

Constructor & Destructor Documentation

◆ Operation() [1/2]

schema1::Operation::Operation ( )
inline

Definition at line 129 of file schema1.h.

◆ Operation() [2/2]

schema1::Operation::Operation ( int  id,
const schema0::Operation op 
)
inline

Definition at line 130 of file schema1.h.

130  :
131  Item(id), type(op.m_type), value(op.value),
132  ports(op.m_ports),
133  name(op.m_description.empty()? op.description: op.m_description),
134  intVar(op.intVar) {}
Item(int id=-1)
Definition: schema1.h:99
string type() const override
Definition: schema1.h:67
vector< int > ports
Definition: schema1.h:125

Member Data Documentation

◆ data

map<double,double> schema1::Operation::data

Definition at line 126 of file schema1.h.

◆ intVar

int schema1::Operation::intVar

Definition at line 128 of file schema1.h.

Referenced by schema2::Item::Item().

◆ name

string schema1::Operation::name

Definition at line 127 of file schema1.h.

◆ ports

vector<int> schema1::Operation::ports

Definition at line 125 of file schema1.h.

Referenced by schema2::Item::Item().

◆ type

minsky::OperationType::Type schema1::Operation::type

Definition at line 123 of file schema1.h.

Referenced by schema2::Item::Item().

◆ value

double schema1::Operation::value

Definition at line 124 of file schema1.h.

Referenced by schema2::Item::Item().


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