Minsky
schema3::Wire Struct Reference

#include <schema3.h>

Inheritance diagram for schema3::Wire:
Inheritance graph
Collaboration diagram for schema3::Wire:
Collaboration graph

Public Member Functions

 Wire ()
 
 Wire (int id, const minsky::Wire &w)
 
 Wire (const schema2::Wire &w)
 
- Public Member Functions inherited from schema3::Note
 Note ()
 
 Note (const minsky::NoteBase &x)
 
 Note (const schema2::Note &x)
 

Public Attributes

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

Detailed Description

Definition at line 193 of file schema3.h.

Constructor & Destructor Documentation

◆ Wire() [1/3]

schema3::Wire::Wire ( )
inline

Definition at line 198 of file schema3.h.

198 {}

◆ Wire() [2/3]

schema3::Wire::Wire ( int  id,
const minsky::Wire w 
)
inline

Definition at line 199 of file schema3.h.

199  : Note(w), id(id) {
200  if (w.coords().size()>4)
201  coords.reset(new std::vector<float>(w.coords()));
202  }
Optional< std::vector< float > > coords
Definition: schema3.h:197

◆ Wire() [3/3]

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

Definition at line 203 of file schema3.h.

203 : Note(w), id(w.id), from(w.from), to(w.to), coords(w.coords) {}
Optional< std::vector< float > > coords
Definition: schema3.h:197

Member Data Documentation

◆ coords

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

Definition at line 197 of file schema3.h.

Referenced by schema3::populateWire().

◆ from

int schema3::Wire::from =-1

Definition at line 196 of file schema3.h.

◆ id

int schema3::Wire::id =-1

Definition at line 195 of file schema3.h.

◆ to

int schema3::Wire::to =-1

Definition at line 196 of file schema3.h.


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