Gambit::ModelHierarchy Class Reference Model hierarchy tree class. More...
Collaboration diagram for Gambit::ModelHierarchy:
![]()
Detailed DescriptionModel hierarchy tree class. Definition at line 36 of file modelgraph.hpp. Member Typedef Documentation◆ EdgeColor
Typedefs for central boost (model) graph. Definition at line 43 of file modelgraph.hpp. ◆ ModelEdgeID
Definition at line 46 of file modelgraph.hpp. ◆ ModelGraphType
Definition at line 44 of file modelgraph.hpp. ◆ ModelIndexMap
Definition at line 47 of file modelgraph.hpp. ◆ ModelVertexID
Definition at line 45 of file modelgraph.hpp. ◆ primodel_vec
Shorthand for vector of pointers to primary model functors. Definition at line 51 of file modelgraph.hpp. Constructor & Destructor Documentation◆ ModelHierarchy()
Constructor. ModelHierarchy method definitions Creates a graph of the model hierarchy for visualisation purposes. Constructor Definition at line 50 of file modelgraph.cpp. References makeGraph(). const Models::ModelFunctorClaw * boundClaw The model claw that provides all the model info. Definition: modelgraph.hpp:89 void makeGraph(const primodel_vec &) Add edges (relationships) to model hierarchy graph. Definition: modelgraph.cpp:57
Here is the call graph for this function:
![]() Member Function Documentation◆ addFunctorsToGraph()
Add model functors (vertices) to model hierarchy graph. Add model functors to the modelGraph. Definition at line 137 of file modelgraph.cpp. References modelGraph. Referenced by makeGraph(). ModelGraphType modelGraph The central boost graph object for the model hierarchy. Definition: modelgraph.hpp:98
Here is the caller graph for this function:
![]() ◆ makeGraph()
Add edges (relationships) to model hierarchy graph. Figure out relationships between primary model functors. Definition at line 57 of file modelgraph.cpp. References addFunctorsToGraph(), boundClaw, filename, Gambit::Printers::HDF5::get, Gambit::Models::ModelFunctorClaw::get_best_friends(), Gambit::Models::ModelFunctorClaw::get_parent(), modelGraph, and verbose. Referenced by ModelHierarchy(). 63 boost::property_map<ModelGraphType, edge_color_t>::type color(boost::get(edge_color_t(),modelGraph)); 97 // Add edges with all this model's best friends. Might want to make these another colour in future. 119 // Property writer for graph; see http://www.boost.org/doc/libs/1_36_0/libs/graph/doc/write-graphviz.html 132 write_graphviz(outf, modelGraph, labelWriter(&modelGraph), colorWriter(&modelGraph), graphWriter());
boost::graph_traits< ModelGraphType >::edge_descriptor ModelEdgeID Definition: modelgraph.hpp:46 str get_parent(const str &) const Retrieve the parent model for a given model. Definition: models.cpp:244 const Models::ModelFunctorClaw * boundClaw The model claw that provides all the model info. Definition: modelgraph.hpp:89 std::set< str > get_best_friends(const str &model) const Retrieve the best friends for a given model. Definition: models.cpp:262 ModelGraphType modelGraph The central boost graph object for the model hierarchy. Definition: modelgraph.hpp:98 void addFunctorsToGraph(const primodel_vec &) Add model functors (vertices) to model hierarchy graph. Definition: modelgraph.cpp:137
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() Member Data Documentation◆ boundClaw
The model claw that provides all the model info. Definition at line 89 of file modelgraph.hpp. Referenced by makeGraph(). ◆ filename
◆ modelGraph
The central boost graph object for the model hierarchy. Definition at line 98 of file modelgraph.hpp. Referenced by addFunctorsToGraph(), and makeGraph(). ◆ verbose
The documentation for this class was generated from the following files:
|