git-svn-id: svn://db.shs.com.ru/pip@313 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.9.1"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>PIP: PICollection Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
@@ -14,7 +15,6 @@
|
||||
<script type="text/javascript" src="navtree.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(initResizable);
|
||||
$(window).load(resizeHeight);
|
||||
</script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
@@ -24,9 +24,9 @@
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">PIP
|
||||
 <span id="projectnumber">0.5.0_alpha</span>
|
||||
 <span id="projectnumber">0.7.1</span>
|
||||
</div>
|
||||
<div id="projectbrief">Platform-Independent Primitives</div>
|
||||
</td>
|
||||
@@ -35,24 +35,15 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.9.1 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<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="inherits.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',false,false,'search.php','Search');
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
@@ -83,14 +74,14 @@ $(document).ready(function(){initNavTree('class_p_i_collection.html','');});
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
||||
Static Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a84d0050eaeb3187ed61a46ac31aa812f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84d0050eaeb3187ed61a46ac31aa812f"></a>
|
||||
<tr class="memitem:a84d0050eaeb3187ed61a46ac31aa812f"><td class="memItemLeft" align="right" valign="top"><a id="a84d0050eaeb3187ed61a46ac31aa812f"></a>
|
||||
static <a class="el" href="class_p_i_string_list.html">PIStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_i_collection.html#a84d0050eaeb3187ed61a46ac31aa812f">groups</a> ()</td></tr>
|
||||
<tr class="memdesc:a84d0050eaeb3187ed61a46ac31aa812f"><td class="mdescLeft"> </td><td class="mdescRight">Returns all existing groups by their names. <br /></td></tr>
|
||||
<tr class="separator:a84d0050eaeb3187ed61a46ac31aa812f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a74ed1ec578c1c1749f72a92c714b9243"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74ed1ec578c1c1749f72a92c714b9243"></a>
|
||||
static <a class="el" href="class_p_i_vector.html">PIVector</a>< const <a class="el" href="class_p_i_object.html">PIObject</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_i_collection.html#a74ed1ec578c1c1749f72a92c714b9243">groupElements</a> (const <a class="el" href="class_p_i_string.html">PIString</a> &group)</td></tr>
|
||||
<tr class="memdesc:a74ed1ec578c1c1749f72a92c714b9243"><td class="mdescLeft"> </td><td class="mdescRight">Returns all elements of group "group". <br /></td></tr>
|
||||
<tr class="separator:a74ed1ec578c1c1749f72a92c714b9243"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad8f8eb883104f57c4fd7a9937a8821d1"><td class="memItemLeft" align="right" valign="top"><a id="ad8f8eb883104f57c4fd7a9937a8821d1"></a>
|
||||
static <a class="el" href="class_p_i_vector.html">PIVector</a>< const <a class="el" href="class_p_i_object.html">PIObject</a> *> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_i_collection.html#ad8f8eb883104f57c4fd7a9937a8821d1">groupElements</a> (const <a class="el" href="class_p_i_string.html">PIString</a> &group)</td></tr>
|
||||
<tr class="memdesc:ad8f8eb883104f57c4fd7a9937a8821d1"><td class="mdescLeft"> </td><td class="mdescRight">Returns all elements of group "group". <br /></td></tr>
|
||||
<tr class="separator:ad8f8eb883104f57c4fd7a9937a8821d1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
|
||||
Related Functions</h2></td></tr>
|
||||
@@ -107,53 +98,10 @@ Related Functions</h2></td></tr>
|
||||
<div class="textblock"><p>Interface to discover element groups. </p>
|
||||
<h1><a class="anchor" id="PICollection_sec0"></a>
|
||||
Synopsis</h1>
|
||||
<p>This class has only static functions so no need to create instance of the PICollection. This class provide macros to add some classes or existing objects to global collection and access to them from any place of the code. </p><div class="fragment"><div class="line"><span class="keyword">class </span>ElementA: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div>
|
||||
<div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementA)</div>
|
||||
<div class="line"> <span class="comment">// ...</span></div>
|
||||
<div class="line">};</div>
|
||||
<div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(ab_group, ElementA)</div>
|
||||
<div class="line"></div>
|
||||
<div class="line">class ElementB: public <a class="code" href="class_p_i_object.html">PIObject</a> {</div>
|
||||
<div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementB)</div>
|
||||
<div class="line"> <span class="comment">// ...</span></div>
|
||||
<div class="line">};</div>
|
||||
<div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(ab_group, ElementB)</div>
|
||||
<div class="line"></div>
|
||||
<div class="line">class ElementC: public <a class="code" href="class_p_i_object.html">PIObject</a> {</div>
|
||||
<div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementC)</div>
|
||||
<div class="line"> <span class="comment">// ...</span></div>
|
||||
<div class="line">};</div>
|
||||
<div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(c_group, ElementC)</div>
|
||||
<div class="line"></div>
|
||||
<div class="line">class ElementD: public <a class="code" href="class_p_i_object.html">PIObject</a> {</div>
|
||||
<div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementD)</div>
|
||||
<div class="line"> <span class="comment">// ...</span></div>
|
||||
<div class="line">};</div>
|
||||
<div class="line"></div>
|
||||
<div class="line"><span class="keywordtype">int</span> main() {</div>
|
||||
<div class="line"> ElementD * el_d = <span class="keyword">new</span> ElementD();</div>
|
||||
<div class="line"> <a class="code" href="class_p_i_collection.html#a450e8ac720c8b0f6223ad2bf42f83ae2">ADD_TO_COLLECTION</a>(ab_group, el_d)</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"> <a class="code" href="class_p_i_string_list.html">PIStringList</a> gl = <a class="code" href="class_p_i_collection.html">PICollection</a>::<a class="code" href="class_p_i_collection.html#a84d0050eaeb3187ed61a46ac31aa812f">groups</a>();</div>
|
||||
<div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << gl; <span class="comment">// {"ab_group", "c_group"}</span></div>
|
||||
<div class="line"> <a class="code" href="picontainers_8h.html#a807914d038e5a193d2e36b4b82b6df96">piForeachC</a> (<a class="code" href="class_p_i_string.html">PIString</a> g, gl) {</div>
|
||||
<div class="line"> <a class="code" href="class_p_i_vector.html">PIVector<const PIObject * ></a> go = <a class="code" href="class_p_i_collection.html#a74ed1ec578c1c1749f72a92c714b9243">PICollection::groupElements</a>(g);</div>
|
||||
<div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << <span class="stringliteral">"group"</span> << g << <span class="stringliteral">":"</span>;</div>
|
||||
<div class="line"> <a class="code" href="picontainers_8h.html#a807914d038e5a193d2e36b4b82b6df96">piForeachC</a> (<a class="code" href="class_p_i_object.html">PIObject</a> * o, go)</div>
|
||||
<div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << <a class="code" href="namespace_p_i_cout_manipulators.html#a66678520ac7701c016e3e90e17a7dfa2a9d183ab2eef93987077269cad1047bcb">Tab</a> << o->className();</div>
|
||||
<div class="line"> }</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"> <span class="comment">/*</span></div>
|
||||
<div class="line"><span class="comment"> group ab_group :</span></div>
|
||||
<div class="line"><span class="comment"> ElementA</span></div>
|
||||
<div class="line"><span class="comment"> ElementB</span></div>
|
||||
<div class="line"><span class="comment"> ElementD</span></div>
|
||||
<div class="line"><span class="comment"> group c_group :</span></div>
|
||||
<div class="line"><span class="comment"> ElementC</span></div>
|
||||
<div class="line"><span class="comment"> */</span></div>
|
||||
<div class="line">};</div>
|
||||
</div><!-- fragment --></div><h2 class="groupheader">Friends And Related Function Documentation</h2>
|
||||
<a class="anchor" id="a450e8ac720c8b0f6223ad2bf42f83ae2"></a>
|
||||
<p>This class has only static functions so no need to create instance of the PICollection. This class provide macros to add some classes or existing objects to global collection and access to them from any place of the code. </p><div class="fragment"><div class="line"><span class="keyword">class </span>ElementA: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div><div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementA)</div><div class="line"> <span class="comment">// ...</span></div><div class="line">};</div><div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(ab_group, ElementA)</div><div class="line"></div><div class="line"><span class="keyword">class </span>ElementB: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div><div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementB)</div><div class="line"> <span class="comment">// ...</span></div><div class="line">};</div><div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(ab_group, ElementB)</div><div class="line"></div><div class="line"><span class="keyword">class </span>ElementC: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div><div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementC)</div><div class="line"> <span class="comment">// ...</span></div><div class="line">};</div><div class="line"><a class="code" href="class_p_i_collection.html#a78cc4937360f5e286cdd8baf403edfec">ADD_NEW_TO_COLLECTION</a>(c_group, ElementC)</div><div class="line"></div><div class="line"><span class="keyword">class </span>ElementD: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div><div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(ElementD)</div><div class="line"> <span class="comment">// ...</span></div><div class="line">};</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main() {</div><div class="line"> ElementD * el_d = <span class="keyword">new</span> ElementD();</div><div class="line"> <a class="code" href="class_p_i_collection.html#a450e8ac720c8b0f6223ad2bf42f83ae2">ADD_TO_COLLECTION</a>(ab_group, el_d)</div><div class="line"> </div><div class="line"> <a class="code" href="class_p_i_string_list.html">PIStringList</a> gl = <a class="code" href="class_p_i_collection.html#a84d0050eaeb3187ed61a46ac31aa812f">PICollection::groups</a>();</div><div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << gl; <span class="comment">// {"ab_group", "c_group"}</span></div><div class="line"> <a class="code" href="picontainers_8h.html#a807914d038e5a193d2e36b4b82b6df96">piForeachC</a> (<a class="code" href="class_p_i_string.html">PIString</a> g, gl) {</div><div class="line"> <a class="code" href="class_p_i_vector.html">PIVector<const PIObject * ></a> go = <a class="code" href="class_p_i_collection.html#ad8f8eb883104f57c4fd7a9937a8821d1">PICollection::groupElements</a>(g);</div><div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << <span class="stringliteral">"group"</span> << g << <span class="stringliteral">":"</span>;</div><div class="line"> <a class="code" href="picontainers_8h.html#a807914d038e5a193d2e36b4b82b6df96">piForeachC</a> (<a class="code" href="class_p_i_object.html">PIObject</a> * o, go)</div><div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << <a class="code" href="namespace_p_i_cout_manipulators.html#a66678520ac7701c016e3e90e17a7dfa2a9d183ab2eef93987077269cad1047bcb">Tab</a> << o->className();</div><div class="line"> }</div><div class="line"> </div><div class="line"> <span class="comment">/*</span></div><div class="line"><span class="comment"> group ab_group :</span></div><div class="line"><span class="comment"> ElementA</span></div><div class="line"><span class="comment"> ElementB</span></div><div class="line"><span class="comment"> ElementD</span></div><div class="line"><span class="comment"> group c_group :</span></div><div class="line"><span class="comment"> ElementC</span></div><div class="line"><span class="comment"> */</span></div><div class="line">};</div></div><!-- fragment --></div><h2 class="groupheader">Friends And Related Function Documentation</h2>
|
||||
<a id="a450e8ac720c8b0f6223ad2bf42f83ae2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a450e8ac720c8b0f6223ad2bf42f83ae2">◆ </a></span>ADD_TO_COLLECTION</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
@@ -187,11 +135,13 @@ Synopsis</h1>
|
||||
|
||||
<p>Add existing element "object" in group with name "group". </p>
|
||||
<p>If there is no group with name "group" it will be created. Only one element of the class "object" can be in group "group". If this is already exists nothing be happens. <br />
|
||||
"object" should to be pointer to object based on <a class="el" href="class_p_i_object.html" title="This is base class for any classes which use events -> handlers mechanism. ">PIObject</a>. </p>
|
||||
"object" should to be pointer to object based on <a class="el" href="class_p_i_object.html" title="This is base class for any classes which use events -> handlers mechanism. ">PIObject</a>. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a78cc4937360f5e286cdd8baf403edfec"></a>
|
||||
<a id="a78cc4937360f5e286cdd8baf403edfec"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a78cc4937360f5e286cdd8baf403edfec">◆ </a></span>ADD_NEW_TO_COLLECTION</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
@@ -225,7 +175,7 @@ Synopsis</h1>
|
||||
|
||||
<p>Add new element of class "class" in group with name "group". </p>
|
||||
<p>If there is no group with name "group" it will be created. Only one element of the class "class" can be in group "group". If this is already exists nothing be happens. <br />
|
||||
"class" should to be name of the any class based on <a class="el" href="class_p_i_object.html" title="This is base class for any classes which use events -> handlers mechanism. ">PIObject</a>. </p>
|
||||
"class" should to be name of the any class based on <a class="el" href="class_p_i_object.html" title="This is base class for any classes which use events -> handlers mechanism. ">PIObject</a>. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -235,9 +185,9 @@ Synopsis</h1>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="class_p_i_collection.html">PICollection</a></li>
|
||||
<li class="footer">Generated on Sat Jan 30 2016 21:43:28 for PIP by
|
||||
<li class="footer">Generated on Mon Feb 27 2017 15:24:46 for PIP by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user