Minsky
schema0::VariablePtr Struct Reference

#include <schema0.h>

Inheritance diagram for schema0::VariablePtr:
Inheritance graph
Collaboration diagram for schema0::VariablePtr:
Collaboration graph

Public Member Functions

bool operator< (const VariablePtr &x) const
 

Public Attributes

minsky::VariableType::Type m_type
 
double x {0}
 
double y {0}
 position in canvas More...
 
std::string init {"0"}
 initial value of variable More...
 
std::string name
 variable name More...
 
double rotation {0}
 rotation if icon, in degrees More...
 
bool visible {true}
 
int m_outPort
 
int m_inPort
 where wires connect to More...
 
bool m_godley {false}
 variable is in a Godley table More...
 

Detailed Description

Definition at line 78 of file schema0.h.

Member Function Documentation

◆ operator<()

bool schema0::VariablePtr::operator< ( const VariablePtr x) const
inline

Definition at line 95 of file schema0.h.

References name, and x.

96  {return name<x.name;}
std::string name
variable name
Definition: schema0.h:84

Member Data Documentation

◆ init

std::string schema0::VariablePtr::init {"0"}

initial value of variable

Definition at line 83 of file schema0.h.

◆ m_godley

bool schema0::VariablePtr::m_godley {false}

variable is in a Godley table

Definition at line 93 of file schema0.h.

◆ m_inPort

int schema0::VariablePtr::m_inPort

where wires connect to

Definition at line 92 of file schema0.h.

Referenced by schema1::Variable::Variable().

◆ m_outPort

int schema0::VariablePtr::m_outPort

Definition at line 92 of file schema0.h.

Referenced by schema1::Variable::Variable().

◆ m_type

minsky::VariableType::Type schema0::VariablePtr::m_type

Definition at line 80 of file schema0.h.

◆ name

std::string schema0::VariablePtr::name

variable name

Definition at line 84 of file schema0.h.

Referenced by operator<().

◆ rotation

double schema0::VariablePtr::rotation {0}

rotation if icon, in degrees

Definition at line 85 of file schema0.h.

◆ visible

bool schema0::VariablePtr::visible {true}

whether variable is visible on Canvas (note godley variables are never visible, as they appear as part of the godley icon

Definition at line 91 of file schema0.h.

◆ x

double schema0::VariablePtr::x {0}

Definition at line 82 of file schema0.h.

Referenced by operator<().

◆ y

double schema0::VariablePtr::y {0}

position in canvas

Definition at line 82 of file schema0.h.


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