Minsky
schema1::Group Struct Reference

#include <schema1.h>

Inheritance diagram for schema1::Group:
Inheritance graph
Collaboration diagram for schema1::Group:
Collaboration graph

Public Member Functions

 Group ()
 
 Group (int id, const schema0::GroupIcon &g)
 note this assumes that ids have been uniquified prior to this call More...
 
- Public Member Functions inherited from schema1::SPoly< Group, 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

vector< int > items
 
vector< int > ports
 
vector< int > createdVars
 
string name
 
- 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 162 of file schema1.h.

Constructor & Destructor Documentation

◆ Group() [1/2]

schema1::Group::Group ( )
inline

Definition at line 171 of file schema1.h.

171 {}

◆ Group() [2/2]

schema1::Group::Group ( int  id,
const schema0::GroupIcon g 
)
inline

note this assumes that ids have been uniquified prior to this call

Definition at line 173 of file schema1.h.

References schema0::GroupIcon::variables.

173  :
174  Item(id), items(g.operations), ports(g.m_ports.begin(),g.m_ports.end()) {
175  items.insert(items.end(), g.variables.begin(), g.variables.end());
176  }
std::vector< int > operations
Definition: schema0.h:151
vector< int > ports
Definition: schema1.h:168
vector< int > items
Definition: schema1.h:167
Item(int id=-1)
Definition: schema1.h:99
ecolab::array< int > m_ports
Definition: schema0.h:154
std::vector< int > variables
Definition: schema0.h:152

Member Data Documentation

◆ createdVars

vector<int> schema1::Group::createdVars

Definition at line 169 of file schema1.h.

◆ items

vector<int> schema1::Group::items

Definition at line 167 of file schema1.h.

◆ name

string schema1::Group::name

Definition at line 170 of file schema1.h.

◆ ports

vector<int> schema1::Group::ports

Definition at line 168 of file schema1.h.


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