Minsky: 3.17.0
|
#include <variable.h>
Public Types | |
typedef VariableType::Type | Type |
![]() | |
enum | Type { undefined, constant, parameter, flow, integral, stock, tempFlow, numVarTypes } |
Public Member Functions | |
virtual std::size_t | numPorts () const =0 |
virtual Type | type () const =0 |
void | retype (VariableType::Type type) |
attempt to replace this variable with variable of type. More... | |
bool | visible () const override |
whether this item is visible on the canvas. More... | |
const VariableBase * | variableCast () const override |
VariableBase * | variableCast () override |
float | zoomFactor () const override |
bool | local () const |
void | toggleLocal () |
toggle local status More... | |
const std::string & | rawName () const |
accessor for the name member (may differ from name() with top level variables) More... | |
bool | ioVar () const override |
indicates this is a group I/O variable More... | |
void | ensureValueExists (VariableValue *vv, const std::string &name) const |
ensure an associated variableValue exists More... | |
virtual std::string | valueId () const |
string used to link to the VariableValue associated with this More... | |
std::string | valueIdInCurrentScope (const std::string &nm) const |
returns valueId for nm. If nm is not qualified, this variable's scope is used More... | |
std::shared_ptr< VariableValue > | vValue () const |
variableValue associated with this. nullptr if not associated with a variableValue More... | |
std::vector< unsigned > | dims () const |
variable's tensor shape More... | |
std::vector< std::string > | dimLabels () const |
labels along each axis More... | |
std::pair< std::string, std::string > | getDimLabelsPicked () const |
std::pair< std::string, std::string > | setDimLabelsPicked (const std::string &dimLabel1, const std::string &dimLabel2) |
const std::string & | detailedText () const override |
const std::string & | detailedText (const std::string &x) override |
const std::string & | tooltip () const override |
const std::string & | tooltip (const std::string &x) override |
bool | sliderVisible () const |
returns true if slider is to be drawn More... | |
Units | units (bool check) const override |
sets/gets the units associated with this type More... | |
Units | units () const |
void | setUnits (const std::string &) const |
std::string | unitsStr () const |
bool | onKeyPress (int, const std::string &, int) override |
respond to key press events More... | |
bool | lhs () const |
variable is on left hand side of flow calculation More... | |
bool | temp () const |
variable is temporary More... | |
virtual VariableBase * | clone () const override=0 |
bool | isStock () const |
std::string | definition () const |
formula defining this variable More... | |
void | draw (cairo_t *) const override |
void | resize (const LassoBox &b) override |
resize this item on the canvas More... | |
ClickType::Type | clickType (float x, float y) const override |
returns the clicktype given a mouse click at x, y. More... | |
bool | defined () const |
bool | inputWired () const |
std::vector< std::string > | accessibleVars () const |
return a list of existing variables this could be connected to More... | |
EngNotation | engExp () const |
return formatted mantissa and exponent in engineering format More... | |
std::string | mantissa (const EngNotation &e, int digits=3) const |
void | exportAsCSV (const std::string &filename, bool tabular) const |
export this variable as a CSV file More... | |
void | importFromCSV (const std::vector< std::string > &filenames, const DataSpecSchema &spec) const |
import CSV files, using spec More... | |
void | reloadCSV () |
reload CSV file if previously imported More... | |
void | destroyFrame () override |
clean up popup window structures on window close More... | |
bool | miniPlotEnabled () const |
bool | miniPlotEnabled (bool) |
void | resetMiniPlot () |
bool | onMouseMotion (float x, float y) override |
respond to mouse motion events with button pressed More... | |
void | adjustSliderBounds () const |
virtual std::string | name () const |
variable displayed name More... | |
virtual std::string | name (const std::string &nm) |
variable displayed name More... | |
const std::string & | canonicalName () const |
variable displayed name More... | |
std::string | init () const |
the initial value of this variable More... | |
std::string | init (const std::string &) |
< return initial value for this variable More... | |
virtual double | value (const double &) |
< set the initial value for this variable More... | |
virtual double | value () const override |
< set the initial value for this variable More... | |
double | sliderMin () const |
slider parameters More... | |
double | sliderMin (double) const |
slider parameters More... | |
double | sliderMax () const |
slider parameters More... | |
double | sliderMax (double) const |
slider parameters More... | |
double | sliderStep () const |
slider parameters More... | |
double | sliderStep (double) const |
slider parameters More... | |
bool | sliderStepRel () const |
slider parameters More... | |
bool | sliderStepRel (bool) const |
slider parameters More... | |
bool | enableSlider () const |
slider parameters More... | |
bool | enableSlider (bool) const |
slider parameters More... | |
![]() | |
bool | onResizeHandle (float x, float y) const override |
void | drawResizeHandles (cairo_t *cairo) const override |
virtual Point | resizeHandleCoords () const |
returns coordinates of the resizer handle More... | |
![]() | |
Item ()=default | |
virtual std::weak_ptr< Port > | ports (std::size_t i) const |
callback to be run when item deleted from group More... | |
std::size_t | portsSize () const |
number of ports More... | |
float | portX (std::size_t i) |
float | portY (std::size_t i) |
virtual bool | contains (float xx, float yy) const |
bool | contains (const Point &p) const |
void | updateBoundingBox () override |
void | throw_error (const std::string &) const |
mark item on canvas, then throw More... | |
double | rotation () const |
double | rotation (const double &r) |
std::pair< double, bool > | rotationAsRadians () const |
return the rotation as radians, and whether rotation should have additional straight angle added for text that stays upright. More... | |
float | iWidth () const |
float | iWidth (const float &w) |
float | iHeight () const |
float | iHeight (const float &h) |
virtual void | flip () |
rotate icon though 180∘ More... | |
virtual std::string | classType () const |
std::string | id () const |
return an id uniquely identifying this item More... | |
virtual float | x () const |
virtual float | y () const |
void | ensureBBValid () const |
float | width () const |
float | height () const |
virtual std::vector< Point > | corners () const |
float | left () const |
float | right () const |
float | top () const |
float | bottom () const |
std::string | bookmarkId () const |
Id of bookmark associated with this. More... | |
void | adjustBookmark () const override |
adjust bookmark list to reflect current configuration More... | |
float | resizeHandleSize () const |
resize handles should be at least a percentage if the icon size (#1025) More... | |
virtual bool | inItem (float x, float y) const |
virtual bool | onItem (float x, float y) const |
returns true if (x,y) is on the icon More... | |
virtual void | onMouseDown (float x, float y) |
respond to mouse down events More... | |
virtual void | onMouseUp (float x, float y) |
respond to mouse up events More... | |
virtual bool | onMouseOver (float x, float y) |
respond to mouse motion events (hover) without button pressed More... | |
virtual void | onMouseLeave () |
respond to mouse leave events (when mouse leaves item) More... | |
virtual void | deleteAttachedWires () |
delete all attached wires More... | |
void | moveTo (float x, float y) |
virtual float | scaleFactor () const |
factor by which item has been resized More... | |
virtual float | scaleFactor (const float &sf) |
void | dummyDraw () const |
draw into a dummy cairo context, for purposes of calculating port positions More... | |
virtual void | displayTooltip (cairo_t *, const std::string &) const |
display tooltip text, eg on mouseover More... | |
virtual void | updateIcon (double t) |
update display after a step() More... | |
Item (const Item &)=default | |
Item & | operator= (const Item &)=default |
virtual | ~Item () |
void | drawPorts (cairo_t *cairo) const |
virtual std::shared_ptr< Port > | closestOutPort (float x, float y) const |
returns closest output port to x,y More... | |
virtual std::shared_ptr< Port > | closestInPort (float x, float y) const |
virtual std::shared_ptr< Item > | select (float x, float y) const |
returns the variable if point (x,y) is within a visible variable icon, null otherwise. More... | |
void | RESTProcess (classdesc::RESTProcess_t &rp, const std::string &d) override |
runs the RESTProcess descriptor suitable for this type More... | |
void | RESTProcess (classdesc::RESTProcess_t &rp, const std::string &d) const override |
virtual void | json_pack (classdesc::json_pack_t &j) const |
virtual void | displayDelayedTooltip (float x, float y) |
enable extended tooltip help message appropriate for mouse at (x,y) More... | |
virtual void | disableDelayedTooltip () |
virtual bool | editorMode () const |
some items have an editor mode attribute More... | |
virtual void | toggleEditorMode () |
Units | checkUnits () const |
perform units consistency checks More... | |
ItemPtr | itemPtrFromThis () const |
return a shared_ptr to this More... | |
![]() | |
virtual | ~NoteBase ()=default |
![]() | |
VariableCaches ()=default | |
VariableCaches (const VariableCaches &) | |
VariableCaches & | operator= (const VariableCaches &) |
Static Public Member Functions | |
static VariableBase * | create (Type type) |
![]() | |
static void | drawSelected (cairo_t *cairo) |
![]() | |
static std::string | typeName (int t) |
Public Attributes | |
classdesc::Exclude< std::weak_ptr< Item > > | controller |
reference to a controlling item - eg GodleyIcon, IntOp or a Group if an IOVar. More... | |
![]() | |
float | m_x =0 |
float | m_y =0 |
position in canvas, or within group More... | |
float | m_sf =1 |
scale factor of item on canvas, or within group More... | |
bool | onResizeHandles =false |
set to true to indicate mouse is ovcaler resize handles More... | |
bool | onBorder =false |
true to indicate mouse hovering over border More... | |
std::string | deleteCallback |
BoundingBox | bb |
canvas bounding box. More... | |
![]() | |
bool | mouseFocus =false |
true if target of a mouseover More... | |
bool | selected =false |
true if selected for cut, copy or group operation More... | |
bool | bookmark =false |
Is this item also a bookmark? More... | |
Static Public Attributes | |
static int | varsPassed =0 |
for caching units calculation factory method More... | |
Protected Member Functions | |
void | addPorts () |
Private Member Functions | |
CLASSDESC_ACCESS (VariableBase) | |
void | insertControlled (Selection &selection) override |
Private Attributes | |
std::string | m_name |
std::string | m_canonicalName |
latex processed and active stripped version of name More... | |
std::pair< std::string, std::string > | m_dimLabelsPicked |
int | unitsCtr =0 |
for detecting reentrancy in units() More... | |
classdesc::Exclude< std::shared_ptr< ecolab::Plot > > | miniPlot |
miniature plot feature More... | |
Static Private Attributes | |
static int | stockVarsPassed =0 |
for detecting reentrancy in units() More... | |
Friends | |
struct | minsky::SchemaHelper |
Additional Inherited Members | |
![]() | |
static void | drawResizeHandle (cairo_t *cairo, double x, double y, double sf, double angle) |
![]() | |
double | m_width =20 |
double | m_height =20 |
ItemPortVector | m_ports |
minsky::Item::MemoisedRotator | memoisedRotator |
![]() | |
classdesc::Exclude< std::shared_ptr< RenderVariable > > | cachedNameRender |
cached Pango objects More... | |
classdesc::Exclude< std::shared_ptr< ecolab::Pango > > | cachedMantissa |
classdesc::Exclude< std::shared_ptr< ecolab::Pango > > | cachedExponent |
double | cachedValue |
double | cachedTime |
Definition at line 77 of file variable.h.
Definition at line 83 of file variable.h.
std::vector< std::string > VariableBase::accessibleVars | ( | ) | const |
return a list of existing variables this could be connected to
Definition at line 74 of file variable.cc.
References minsky::group.
|
protected |
Definition at line 54 of file variable.cc.
Referenced by minsky::Variable< VariableType::constant >::operator=(), minsky::PhillipsStock::PhillipsStock(), and minsky::Variable< VariableType::constant >::Variable().
void VariableBase::adjustSliderBounds | ( | ) | const |
Definition at line 549 of file variable.cc.
|
inline |
variable displayed name
Definition at line 132 of file variable.h.
References m_canonicalName.
|
private |
|
overridevirtual |
returns the clicktype given a mouse click at x, y.
Reimplemented from minsky::Item.
Definition at line 82 of file variable.cc.
References minsky::flipped(), minsky::RenderVariable::handlePos(), minsky::RenderVariable::height(), minsky::Rotate::x(), and minsky::Rotate::y().
|
overridepure virtual |
Reimplemented from minsky::Item.
Implemented in minsky::VarConstant, minsky::Variable< T >, minsky::Variable< VariableType::constant >, and minsky::ItemT< Variable< T >, VariableBase >.
|
static |
Definition at line 101 of file variable.cc.
Referenced by schema3::MinskyItemFactory::create().
|
inline |
Definition at line 206 of file variable.h.
References controller, inputWired(), and isStock().
std::string VariableBase::definition | ( | ) | const |
formula defining this variable
Definition at line 572 of file variable.cc.
References minsky::cminsky(), MathDAG::SystemOfEquations::getDefFromIntVar(), and MathDAG::SystemOfEquations::getNodeFromVar().
|
overridevirtual |
clean up popup window structures on window close
Reimplemented from minsky::Item.
Definition at line 486 of file variable.cc.
|
overridevirtual |
Reimplemented from minsky::NoteBase.
Definition at line 338 of file variable.cc.
References emptyString.
|
overridevirtual |
Reimplemented from minsky::NoteBase.
Definition at line 345 of file variable.cc.
References emptyString.
vector< string > VariableBase::dimLabels | ( | ) | const |
labels along each axis
Definition at line 164 of file variable.cc.
vector< unsigned > VariableBase::dims | ( | ) | const |
variable's tensor shape
Definition at line 154 of file variable.cc.
|
overridevirtual |
draws the icon onto the given cairo context
Reimplemented from minsky::Item.
Definition at line 698 of file variable.cc.
References minsky::cminsky(), MathDAG::cos(), minsky::engExp(), minsky::expMultiplier(), minsky::flipped(), minsky::group, minsky::anonymous_namespace{userFunction.cc}::isinf(), minsky::anonymous_namespace{userFunction.cc}::isnan(), M_PI, minsky::mantissa(), MathDAG::sin(), minsky::sliderHandleRadius, minsky::RungeKutta::t, minsky::Rotate::x(), and minsky::Rotate::y().
Referenced by minsky::RenderVariable::draw(), minsky::PhillipsStock::draw(), and minsky::anonymous_namespace{godleyIcon.cc}::DrawVars::operator()().
bool VariableBase::enableSlider | ( | ) | const |
slider parameters
Definition at line 683 of file variable.cc.
Referenced by schema3::Item::Item().
bool VariableBase::enableSlider | ( | bool | x | ) | const |
slider parameters
Definition at line 690 of file variable.cc.
|
inline |
return formatted mantissa and exponent in engineering format
Definition at line 214 of file variable.h.
References minsky::engExp(), and value().
Referenced by minsky::RenderVariable::RenderVariable().
void VariableBase::ensureValueExists | ( | VariableValue * | vv, |
const std::string & | name | ||
) | const |
ensure an associated variableValue exists
Definition at line 247 of file variable.cc.
References minsky::group, minsky::isValueId(), pyminsky::minsky, minsky::scope(), minsky::valueId(), and minsky::Minsky::variableValues.
Referenced by MathDAG::SystemOfEquations::makeDAG(), minsky::VarConstant::name(), and minsky::VarConstant::VarConstant().
void VariableBase::exportAsCSV | ( | const std::string & | filename, |
bool | tabular | ||
) | const |
export this variable as a CSV file
tabular | - if true, the longest dimension is split across columns as a horizontal dimension |
Definition at line 457 of file variable.cc.
References pyminsky::minsky, minsky::valueId(), and minsky::Minsky::variableValues.
|
inline |
Definition at line 156 of file variable.h.
References m_dimLabelsPicked.
void VariableBase::importFromCSV | ( | const std::vector< std::string > & | filenames, |
const DataSpecSchema & | spec | ||
) | const |
import CSV files, using spec
Definition at line 464 of file variable.cc.
References minsky::loadValueFromCSVFile(), pyminsky::minsky, and minsky::Minsky::populateMissingDimensionsFromVariable().
string VariableBase::init | ( | ) | const |
the initial value of this variable
Definition at line 270 of file variable.cc.
References pyminsky::minsky, minsky::valueId(), and minsky::Minsky::variableValues.
Referenced by minsky::VarConstant::name(), and minsky::VarConstant::value().
string VariableBase::init | ( | const std::string & | x | ) |
< return initial value for this variable
Definition at line 293 of file variable.cc.
References minsky::cminsky(), minsky::VariableValue::init(), minsky::isValueId(), pyminsky::minsky, minsky::VariableValues::resetValue(), minsky::valueId(), and minsky::Minsky::variableValues.
bool VariableBase::inputWired | ( | ) | const |
Definition at line 67 of file variable.cc.
Referenced by defined().
|
overrideprivate |
Definition at line 492 of file variable.cc.
References minsky::Selection::ensureItemInserted().
|
overridevirtual |
indicates this is a group I/O variable
Reimplemented from minsky::Item.
Definition at line 243 of file variable.cc.
Referenced by minsky::RenderVariable::RenderVariable().
|
inline |
Definition at line 193 of file variable.h.
References minsky::VariableType::integral, minsky::VariableType::stock, and type().
Referenced by defined().
|
inline |
variable is on left hand side of flow calculation
Definition at line 189 of file variable.h.
References minsky::VariableType::flow, minsky::VariableType::tempFlow, and type().
bool VariableBase::local | ( | ) | const |
Definition at line 181 of file variable.cc.
References minsky::Minsky::canvas, minsky::cminsky(), minsky::group, and minsky::Canvas::model.
|
inline |
Definition at line 216 of file variable.h.
References minsky::mantissa(), and value().
Referenced by minsky::RenderVariable::RenderVariable().
|
inline |
Definition at line 231 of file variable.h.
References miniPlot.
bool VariableBase::miniPlotEnabled | ( | bool | enabled | ) |
Definition at line 589 of file variable.cc.
|
virtual |
variable displayed name
Reimplemented in minsky::VarConstant.
Definition at line 186 of file variable.cc.
Referenced by MathDAG::SystemOfEquations::makeDAG(), minsky::GroupItems::renameVar(), minsky::RenderVariable::RenderVariable(), toggleLocal(), and minsky::Variable< VariableType::constant >::Variable().
|
virtual |
variable displayed name
Reimplemented in minsky::VarConstant.
Definition at line 218 of file variable.cc.
References minsky::canonicalName(), anonymous_namespace{variable.cc}::quoteLaTeX(), anonymous_namespace{variable.cc}::specialLatex, and minsky::valueId().
|
pure virtual |
Implemented in minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, minsky::Variable< T >, minsky::Variable< VariableType::constant >, and minsky::PhillipsStock.
|
overridevirtual |
respond to key press events
Reimplemented from minsky::Item.
Definition at line 555 of file variable.cc.
References pyminsky::minsky, and minsky::Minsky::requestReset().
|
overridevirtual |
respond to mouse motion events with button pressed
Reimplemented from minsky::Item.
Definition at line 607 of file variable.cc.
References MathDAG::cos(), minsky::RungeKutta::evalEquations(), M_PI, pyminsky::minsky, minsky::Minsky::pushHistory(), minsky::Minsky::requestReset(), and minsky::RenderVariable::width().
|
inline |
accessor for the name member (may differ from name() with top level variables)
Definition at line 137 of file variable.h.
References m_name.
Referenced by schema3::Item::Item(), and minsky::GroupItems::renameVar().
void VariableBase::reloadCSV | ( | ) |
reload CSV file if previously imported
Definition at line 478 of file variable.cc.
References minsky::loadValueFromCSVFile().
void VariableBase::resetMiniPlot | ( | ) |
Definition at line 601 of file variable.cc.
|
overridevirtual |
resize this item on the canvas
Reimplemented from minsky::Item.
Definition at line 869 of file variable.cc.
References minsky::LassoBox::x0, minsky::LassoBox::x1, minsky::LassoBox::y0, and minsky::LassoBox::y1.
void VariableBase::retype | ( | VariableType::Type | type | ) |
attempt to replace this variable with variable of type.
if | not possible |
Definition at line 117 of file variable.cc.
References minsky::Minsky::convertVarType(), minsky::group, pyminsky::minsky, minsky::VariablePtr::retype(), and minsky::valueId().
|
inline |
Definition at line 157 of file variable.h.
References m_dimLabelsPicked.
void VariableBase::setUnits | ( | const std::string & | x | ) | const |
Definition at line 449 of file variable.cc.
References minsky::isValueId(), pyminsky::minsky, minsky::valueId(), and minsky::Minsky::variableValues.
double VariableBase::sliderMax | ( | ) | const |
slider parameters
Definition at line 641 of file variable.cc.
Referenced by schema3::Item::Item().
double VariableBase::sliderMax | ( | double | x | ) | const |
slider parameters
Definition at line 648 of file variable.cc.
double VariableBase::sliderMin | ( | ) | const |
slider parameters
Definition at line 626 of file variable.cc.
Referenced by schema3::Item::Item().
double VariableBase::sliderMin | ( | double | x | ) | const |
slider parameters
Definition at line 634 of file variable.cc.
double VariableBase::sliderStep | ( | ) | const |
slider parameters
Definition at line 655 of file variable.cc.
Referenced by schema3::Item::Item().
double VariableBase::sliderStep | ( | double | x | ) | const |
slider parameters
Definition at line 662 of file variable.cc.
bool VariableBase::sliderStepRel | ( | ) | const |
slider parameters
Definition at line 669 of file variable.cc.
Referenced by schema3::Item::Item().
bool VariableBase::sliderStepRel | ( | bool | x | ) | const |
slider parameters
Definition at line 676 of file variable.cc.
bool VariableBase::sliderVisible | ( | ) | const |
returns true if slider is to be drawn
Definition at line 538 of file variable.cc.
References minsky::cminsky(), minsky::Minsky::definingVar(), and minsky::valueId().
|
inline |
variable is temporary
Definition at line 191 of file variable.h.
References minsky::VariableType::tempFlow, type(), and minsky::VariableType::undefined.
|
inline |
toggle local status
Definition at line 127 of file variable.h.
References m_name, and name().
|
overridevirtual |
Reimplemented from minsky::NoteBase.
Definition at line 352 of file variable.cc.
References emptyString.
|
overridevirtual |
Reimplemented from minsky::NoteBase.
Definition at line 359 of file variable.cc.
References emptyString.
|
pure virtual |
Implemented in minsky::Variable< T >, and minsky::Variable< VariableType::constant >.
Referenced by isStock(), lhs(), MathDAG::SystemOfEquations::makeDAG(), minsky::RenderVariable::RenderVariable(), and temp().
|
overridevirtual |
sets/gets the units associated with this type
Reimplemented from minsky::Item.
Definition at line 369 of file variable.cc.
References minsky::cminsky(), pyminsky::minsky, minsky::Minsky::model, minsky::FlowCoef::name, minsky::VariableValues::resetUnitsCache(), minsky::Units::str(), minsky::valueId(), and minsky::Minsky::variableValues.
|
inline |
Definition at line 182 of file variable.h.
References units().
Referenced by minsky::PhillipsStock::draw(), units(), and unitsStr().
|
inline |
Definition at line 184 of file variable.h.
References minsky::Units::str(), and units().
|
virtual |
< set the initial value for this variable
current value associated with this variable
Reimplemented in minsky::VarConstant.
Definition at line 325 of file variable.cc.
References minsky::isValueId(), pyminsky::minsky, minsky::VariableValues::reset(), minsky::valueId(), and minsky::Minsky::variableValues.
|
overridevirtual |
< set the initial value for this variable
current value associated with this variable
Reimplemented from minsky::Item.
Definition at line 317 of file variable.cc.
References minsky::cminsky(), minsky::valueId(), and minsky::Minsky::variableValues.
Referenced by minsky::PhillipsStock::draw(), engExp(), and mantissa().
|
virtual |
string used to link to the VariableValue associated with this
Reimplemented in minsky::VarConstant.
Definition at line 171 of file variable.cc.
References minsky::group, and minsky::valueId().
Referenced by MathDAG::SystemOfEquations::getDefFromIntVar(), MathDAG::SubexpressionCache::key(), MathDAG::SystemOfEquations::makeDAG(), and schema3::PhillipsDiagram::populatePhillipsDiagram().
std::string VariableBase::valueIdInCurrentScope | ( | const std::string & | nm | ) | const |
returns valueId for nm. If nm is not qualified, this variable's scope is used
Definition at line 176 of file variable.cc.
References minsky::group, and minsky::valueId().
|
inlineoverride |
Definition at line 119 of file variable.h.
|
inlineoverride |
Definition at line 120 of file variable.h.
|
overridevirtual |
whether this item is visible on the canvas.
Reimplemented from minsky::Item.
Definition at line 529 of file variable.cc.
References minsky::group.
shared_ptr< VariableValue > VariableBase::vValue | ( | ) | const |
variableValue associated with this. nullptr if not associated with a variableValue
Definition at line 146 of file variable.cc.
References minsky::cminsky(), pyminsky::minsky, minsky::valueId(), and minsky::Minsky::variableValues.
Referenced by minsky::RenderVariable::handlePos(), schema3::Item::Item(), MathDAG::SystemOfEquations::makeDAG(), and schema3::Item::packTensorInit().
|
overridevirtual |
Reimplemented from minsky::Item.
Definition at line 135 of file variable.cc.
References minsky::group.
Referenced by minsky::PhillipsStock::draw().
|
friend |
Definition at line 84 of file variable.h.
classdesc::Exclude<std::weak_ptr<Item> > minsky::VariableBase::controller |
reference to a controlling item - eg GodleyIcon, IntOp or a Group if an IOVar.
Definition at line 116 of file variable.h.
Referenced by defined(), minsky::Variable< VariableType::constant >::operator=(), and minsky::GroupItems::removeItem().
|
private |
latex processed and active stripped version of name
Definition at line 89 of file variable.h.
Referenced by canonicalName().
|
private |
Definition at line 90 of file variable.h.
Referenced by getDimLabelsPicked(), and setDimLabelsPicked().
|
private |
Definition at line 88 of file variable.h.
Referenced by rawName(), and toggleLocal().
|
private |
|
staticprivate |
for detecting reentrancy in units()
Definition at line 92 of file variable.h.
|
mutableprivate |
for detecting reentrancy in units()
Definition at line 91 of file variable.h.
|
static |
for caching units calculation factory method
Definition at line 103 of file variable.h.