Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
91
trunk/paradiseo-eo/doc/html/eo_aged_8h-source.html
Normal file
91
trunk/paradiseo-eo/doc/html/eo_aged_8h-source.html
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>EO: eoAged.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.3.9.1 -->
|
||||
<div class="qindex"> <form class="search" action="search.php" method="get">
|
||||
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||||
<div class="nav">
|
||||
<a class="el" href="dir_000007.html">contrib</a></div>
|
||||
<h1>eoAged.h</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">// eoAged.h</span>
|
||||
00002 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
00003
|
||||
00004 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00005 <span class="comment">// eoAge.h</span>
|
||||
00006 <span class="comment">// (c) GeNeura Team, 1998</span>
|
||||
00007 <span class="comment">/* </span>
|
||||
00008 <span class="comment"> This library is free software; you can redistribute it and/or</span>
|
||||
00009 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
|
||||
00010 <span class="comment"> License as published by the Free Software Foundation; either</span>
|
||||
00011 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
|
||||
00012 <span class="comment"></span>
|
||||
00013 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
|
||||
00014 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
|
||||
00015 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
|
||||
00016 <span class="comment"> Lesser General Public License for more details.</span>
|
||||
00017 <span class="comment"></span>
|
||||
00018 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
|
||||
00019 <span class="comment"> License along with this library; if not, write to the Free Software</span>
|
||||
00020 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
|
||||
00021 <span class="comment"></span>
|
||||
00022 <span class="comment"> Contact: todos@geneura.ugr.es, http://geneura.ugr.es</span>
|
||||
00023 <span class="comment"> */</span>
|
||||
00024 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00025
|
||||
00026 <span class="preprocessor">#ifndef EOAGED_H</span>
|
||||
00027 <span class="preprocessor"></span><span class="preprocessor">#define EOAGED_H</span>
|
||||
00028 <span class="preprocessor"></span>
|
||||
00029 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00030
|
||||
00031 <span class="preprocessor">#include <iostream></span> <span class="comment">// istream, ostream</span>
|
||||
00032 <span class="preprocessor">#include <std::string></span> <span class="comment">// para std::string</span>
|
||||
00033
|
||||
00034 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
|
||||
00035
|
||||
00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00037 <span class="comment">// eoAge</span>
|
||||
00038 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00039
|
||||
00046 <span class="keyword">template</span> <<span class="keyword">class</span> Object>
|
||||
<a name="l00047"></a><a class="code" href="classeo_aged.html">00047</a> <span class="keyword">class </span><a class="code" href="classeo_aged.html">eoAged</a>: <span class="keyword">public</span> Object
|
||||
00048 {
|
||||
00049 <span class="keyword">public</span>:
|
||||
<a name="l00051"></a><a class="code" href="classeo_aged.html#a0">00051</a> <a class="code" href="classeo_aged.html#d0">eoAged</a>( <span class="keyword">const</span> Object& _o): Object( _o ), age(0) {};
|
||||
00052
|
||||
<a name="l00054"></a><a class="code" href="classeo_aged.html#a1">00054</a> <a class="code" href="classeo_aged.html#d0">eoAged</a>( <span class="keyword">const</span> <a class="code" href="classeo_aged.html">eoAged</a>& _a): Object( _a ), age( _a.age ) {};
|
||||
00055
|
||||
<a name="l00057"></a><a class="code" href="classeo_aged.html#a2">00057</a> <span class="keyword">virtual</span> <a class="code" href="classeo_aged.html#a2">~eoAged</a>() {};
|
||||
00058
|
||||
00059
|
||||
<a name="l00061"></a><a class="code" href="classeo_aged.html#a3">00061</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classeo_aged.html#a3">Age</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> age;}
|
||||
00062
|
||||
<a name="l00064"></a><a class="code" href="classeo_aged.html#a4">00064</a> <span class="keyword">const</span> <a class="code" href="classeo_aged.html">eoAged</a>& <a class="code" href="classeo_aged.html#a4">operator ++ </a>() { age++; <span class="keywordflow">return</span> *<span class="keyword">this</span>;}
|
||||
00065
|
||||
<a name="l00074"></a><a class="code" href="classeo_aged.html#z9_0">00074</a> <span class="keyword">virtual</span> std::string <a class="code" href="classeo_aged.html#z9_0">className</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> std::string(<span class="stringliteral">"eoAged"</span>)+Object::className(); };
|
||||
00075
|
||||
<a name="l00081"></a><a class="code" href="classeo_aged.html#z9_1">00081</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classeo_aged.html#z9_1">readFrom</a>(istream& _is) {
|
||||
00082 Object::readFrom( _is );
|
||||
00083 _is >> age;
|
||||
00084 }
|
||||
00085
|
||||
00086
|
||||
<a name="l00091"></a><a class="code" href="classeo_aged.html#z9_2">00091</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classeo_aged.html#z9_2">printOn</a>(ostream& _os)<span class="keyword"> const</span>{
|
||||
00092 Object::printOn( _os );
|
||||
00093 _os << age;
|
||||
00094 }
|
||||
00096
|
||||
00097 <span class="keyword">private</span>:
|
||||
00098
|
||||
<a name="l00103"></a><a class="code" href="classeo_aged.html#d0">00103</a> <a class="code" href="classeo_aged.html#d0">eoAged</a>(): Object(), age(0) {};
|
||||
00104
|
||||
00105 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> age;
|
||||
00106 };
|
||||
00107
|
||||
00108 <span class="preprocessor">#endif EOAGE_H</span>
|
||||
00109 <span class="preprocessor"></span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:34 2006 for EO by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue