<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>C++ API frePPLe: frepple::CommandPlanSize Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="../styles.css" rel="stylesheet" type="text/css"> </head> <body> <div id="container"> <div id="menubar"> <div id="logo" align="center"> <br/><img src='../frepple.bmp' alt="frepple" /><br/> <a href='http://www.frepple.com/'> <strong>a Free<br/>Production Planning<br/>Library</strong> </a> </div> <div id="menu"> <br/> <h3><a href='../Main/HomePage.html'>Main</a></h3> <h3><a href='../UI/Main.html'>User Manual</a></h3> <h3><a href='../Tutorial/Main.html'>Tutorial</a></h3> <h3><a href='../Frepple/Main.html'>Reference Manual</a></h3> <h3><a href='../Main/FAQ.html'>FAQ</a></h3> <h3><a href='index.html'>C++ API</a></h3> <br/> </div> </div> <div id="content"> <br/> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="a00256.html">frepple</a>::<a class="el" href="a00032.html">CommandPlanSize</a> </div> </div> <div class="contents"> <h1>frepple::CommandPlanSize Class Reference</h1><!-- doxytag: class="frepple::CommandPlanSize" --><!-- doxytag: inherits="frepple::utils::Command" --> <p>This command prints a summary of the dynamically allocated memory to the standard output. This is useful for understanding better the size of your model. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="a00218_source.html">model.h</a>></code></p> <div class="dynheader"> Inheritance diagram for frepple::CommandPlanSize:</div> <div class="dynsection"> <div class="center"><img src="a00392.png" border="0" usemap="#frepple_1_1_command_plan_size_inherit__map" alt="Inheritance graph"/></div> <map name="frepple_1_1_command_plan_size_inherit__map" id="frepple_1_1_command_plan_size_inherit__map"> <area shape="rect" id="node2" href="a00025.html" title="Abstract base class for all commands." alt="" coords="16,6,173,34"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a00393.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#ad33fe5ed372ca4819ef20f9455decde4">CommandPlanSize</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#abe79c62a3bde89e96b20af44d87d4e09">execute</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a73945c2c13c24a388855abbb39f30eea">undo</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a213c42967a420e488e44bdfc9319f914">undoable</a> () const </td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static PyObject * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html#a7d436f60ff72c813e82501de29635732">executePython</a> (PyObject *self, PyObject *args)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This command prints a summary of the dynamically allocated memory to the standard output. This is useful for understanding better the size of your model. </p> <p>The numbers reported by this function won't match the memory size as reported by the operating system, since the dynamically allocated memory is only a part of the total memory used by a program. </p> <p>Definition at line <a class="el" href="a00218_source.html#l04520">4520</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad33fe5ed372ca4819ef20f9455decde4"></a><!-- doxytag: member="frepple::CommandPlanSize::CommandPlanSize" ref="ad33fe5ed372ca4819ef20f9455decde4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">frepple::CommandPlanSize::CommandPlanSize </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l04523">4523</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="abe79c62a3bde89e96b20af44d87d4e09"></a><!-- doxytag: member="frepple::CommandPlanSize::execute" ref="abe79c62a3bde89e96b20af44d87d4e09" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void frepple::CommandPlanSize::execute </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This method is used to actually execute the action.<br/> A couple of notes on how this method should be implemented by the subclasses:</p> <ul> <li>Calling the method multiple times is harmless and results in the same state change as calling it only once. </li> </ul> <p>Implements <a class="el" href="a00025.html#acc6f6bc4f9a9ce8cfa2de41fd12f3024">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00210_source.html#l00203">203</a> of file <a class="el" href="a00210_source.html">model/library.cpp</a>.</p> </div> </div> <a class="anchor" id="a7d436f60ff72c813e82501de29635732"></a><!-- doxytag: member="frepple::CommandPlanSize::executePython" ref="a7d436f60ff72c813e82501de29635732" args="(PyObject *self, PyObject *args)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static PyObject* frepple::CommandPlanSize::executePython </td> <td>(</td> <td class="paramtype">PyObject * </td> <td class="paramname"> <em>self</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">PyObject * </td> <td class="paramname"> <em>args</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l04525">4525</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a73945c2c13c24a388855abbb39f30eea"></a><!-- doxytag: member="frepple::CommandPlanSize::undo" ref="a73945c2c13c24a388855abbb39f30eea" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void frepple::CommandPlanSize::undo </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This method is undoing the state change of the <a class="el" href="a00032.html#abe79c62a3bde89e96b20af44d87d4e09">execute()</a> method.<br/> Reversing the action is not possible for all commands. Command subclasses should override the <a class="el" href="a00032.html#a73945c2c13c24a388855abbb39f30eea">undo()</a> and <a class="el" href="a00032.html#a213c42967a420e488e44bdfc9319f914">undoable()</a> method in case they are reversible.<br/> A couple of notes on how this method should be implemented by the subclasses:</p> <ul> <li>Calling the <a class="el" href="a00032.html#a73945c2c13c24a388855abbb39f30eea">undo()</a> method is harmless if the <a class="el" href="a00032.html#abe79c62a3bde89e96b20af44d87d4e09">execute()</a> hasn't been called yet.</li> <li>Calling the <a class="el" href="a00032.html#a73945c2c13c24a388855abbb39f30eea">undo()</a> method multiple times is harmless and results in the same state change as calling it only once. </li> </ul> <p>Reimplemented from <a class="el" href="a00025.html#a908c201250c653dad3c93f1df886b3fc">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l04527">4527</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a213c42967a420e488e44bdfc9319f914"></a><!-- doxytag: member="frepple::CommandPlanSize::undoable" ref="a213c42967a420e488e44bdfc9319f914" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool frepple::CommandPlanSize::undoable </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if the execution of this command can be undone. </p> <p>Reimplemented from <a class="el" href="a00025.html#aebd560086e9d6e041a9d5d0fd3d38364">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l04528">4528</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="a00218_source.html">model.h</a></li> <li><a class="el" href="a00210_source.html">model/library.cpp</a></li> </ul> </div> <hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address> </div> </div> </body> </html>