Minsky
schema2::Wire Struct Reference

#include <schema2.h>

Inheritance diagram for schema2::Wire:
Inheritance graph
Collaboration diagram for schema2::Wire:
Collaboration graph

Public Member Functions

 Wire ()
 
 Wire (const schema1::Wire &w)
 
void addLayout (const schema1::UnionLayout &layout)
 
- Public Member Functions inherited from schema2::Note
 Note ()
 
 Note (const minsky::NoteBase &x)
 
 Note (const schema1::Item &x)
 

Public Attributes

int id =-1
 
int from =-1
 
int to =-1
 
Optional< std::vector< float > > coords
 
- Public Attributes inherited from schema2::Note
Optional< std::string > detailedText
 
Optional< std::string > tooltip
 

Detailed Description

Definition at line 173 of file schema2.h.

Constructor & Destructor Documentation

◆ Wire() [1/2]

schema2::Wire::Wire ( )
inline

Definition at line 178 of file schema2.h.

178 {}

◆ Wire() [2/2]

schema2::Wire::Wire ( const schema1::Wire w)
inline

Definition at line 179 of file schema2.h.

Member Function Documentation

◆ addLayout()

void schema2::Wire::addLayout ( const schema1::UnionLayout layout)
inline

Definition at line 180 of file schema2.h.

References schema1::WireLayout::coords.

180  {
181  if (layout.coords.size()>4)
182  coords.reset(new std::vector<float>(layout.coords));
183  }
Optional< std::vector< float > > coords
Definition: schema2.h:177
vector< float > coords
Definition: schema1.h:259

Member Data Documentation

◆ coords

Optional<std::vector<float> > schema2::Wire::coords

Definition at line 177 of file schema2.h.

◆ from

int schema2::Wire::from =-1

Definition at line 176 of file schema2.h.

◆ id

int schema2::Wire::id =-1

Definition at line 175 of file schema2.h.

◆ to

int schema2::Wire::to =-1

Definition at line 176 of file schema2.h.


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