Minsky
schema1 Namespace Reference

Namespaces

 anonymous_namespace{schema1.cc}
 

Classes

struct  Godley
 
struct  Group
 
struct  GroupLayout
 group layouts also have a width & height More...
 
struct  Item
 
struct  ItemFactory
 
struct  ItemLayout
 represents layouts of objects like variables and operators More...
 
struct  Join
 
struct  Layout
 
struct  Minsky
 
struct  MinskyModel
 
struct  Operation
 
struct  Plot
 
struct  PlotLayout
 
struct  Port
 
struct  PositionLayout
 represent objects whose layouts just have a position (ports, plots, godleyIcons) More...
 
struct  SizeLayout
 
struct  SliderLayout
 describes item with sliders - currently just constants More...
 
struct  SPoly
 
struct  SPolyBase
 
struct  Switch
 
struct  UnionLayout
 structure representing a union of all of the above Layout classes, for xml_unpack More...
 
struct  Variable
 
struct  VisibilityLayout
 represents items with a visibility attribute More...
 
struct  Wire
 
struct  WireLayout
 represents layouts of wires More...
 

Functions

template<class F >
void enumerateRegisterItems (F &f)
 utilities to call registerType for these class heirarchies, for different factory types More...
 
template<class Factory >
void enumerateRegisterLayout (Factory &f)
 
template<class T >
std::unique_ptr< T > factory (const std::string &)
 

Variables

ItemFactory itemFactory
 
Factory< schema1::Layout, string > factoryForLayout
 

Function Documentation

◆ enumerateRegisterItems()

template<class F >
void schema1::enumerateRegisterItems ( F &  f)

utilities to call registerType for these class heirarchies, for different factory types

Definition at line 31 of file enumerateSchema1.h.

References f.

Referenced by schema1::ItemFactory::ItemFactory().

32  {
33  f.template registerType<Item>();
34  f.template registerType<Port>();
35  f.template registerType<Wire>();
36  f.template registerType<Operation>();
37  f.template registerType<Variable>();
38  f.template registerType<Plot>();
39  f.template registerType<Group>();
40  f.template registerType<Switch>();
41  f.template registerType<Godley>();
42  f.template registerType<Group>();
43  }
function f
Definition: canvas.m:1
Here is the caller graph for this function:

◆ enumerateRegisterLayout()

template<class Factory >
void schema1::enumerateRegisterLayout ( Factory &  f)

Definition at line 46 of file enumerateSchema1.h.

References f.

47  {
48  f.template registerType<Layout>();
49  f.template registerType<PositionLayout>();
50  f.template registerType<WireLayout>();
51  f.template registerType<ItemLayout>();
52  f.template registerType<GroupLayout>();
53  f.template registerType<SliderLayout>();
54  f.template registerType<PlotLayout>();
55  f.template registerType<UnionLayout>();
56  }
function f
Definition: canvas.m:1

◆ factory()

template<class T >
std::unique_ptr<T> schema1::factory ( const std::string &  )

Referenced by schema3::Minsky::populateGroup(), and schema3::Minsky::populatePublicationTabs().

Here is the caller graph for this function:

Variable Documentation

◆ factoryForLayout

Factory<schema1::Layout,string> schema1::factoryForLayout

Definition at line 177 of file schema1.cc.

◆ itemFactory

ItemFactory schema1::itemFactory

Definition at line 176 of file schema1.cc.

Referenced by schema3::PhillipsDiagram::populatePhillipsDiagram().