Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c200d180bc1063a7706e0da42a546b51 > files > 77

atlascpp-devel-0.6.1-7.fc12.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Atlas-C++: Generic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>Generic.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This file may be redistributed and modified only under the terms of</span>
<a name="l00002"></a>00002 <span class="comment">// the GNU Lesser General Public License (See COPYING for details).</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright 2000-2001 Stefanus Du Toit and Aloril.</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright 2001-2005 Alistair Riddoch.</span>
<a name="l00005"></a>00005 <span class="comment">// Automatically generated using gen_cpp.py.</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef ATLAS_OBJECTS_OPERATION_GENERIC_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define ATLAS_OBJECTS_OPERATION_GENERIC_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;Atlas/Objects/RootOperation.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;Atlas/Objects/SmartPtr.h&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">namespace </span>Atlas { <span class="keyword">namespace </span>Objects { <span class="keyword">namespace </span>Operation { 
<a name="l00014"></a>00014 
<a name="l00025"></a>00025 <span class="keyword">class </span>GenericData;
<a name="l00026"></a>00026 <span class="keyword">typedef</span> SmartPtr&lt;GenericData&gt; Generic;
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> GENERIC_NO = 41;
<a name="l00029"></a>00029 
<a name="l00032"></a>00032 
<a name="l00038"></a><a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html">00038</a> <span class="keyword">class </span><a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> : <span class="keyword">public</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_root_operation_data.html" title="Base operation for all operators.">RootOperationData</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">protected</span>:
<a name="l00042"></a><a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#6a470b92a484eb82951dd199b5269056">00042</a>     <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#6a470b92a484eb82951dd199b5269056" title="Construct a GenericData class definition.">GenericData</a>(<a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *defaults = NULL) : 
<a name="l00043"></a>00043         <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_root_operation_data.html" title="Base operation for all operators.">RootOperationData</a>((<a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_root_operation_data.html" title="Base operation for all operators.">RootOperationData</a>*)defaults)
<a name="l00044"></a>00044     {
<a name="l00045"></a>00045         m_class_no = GENERIC_NO;
<a name="l00046"></a>00046     }
<a name="l00048"></a>00048     <span class="keyword">virtual</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#829e3119cf741e16c249d72c2e0fa7ca" title="Default destructor.">~GenericData</a>();
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">public</span>:
<a name="l00052"></a>00052     <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#4318e6893ea9e9ffcf5ce168a4cc2620" title="Set the type of this object.">setType</a>(<span class="keyword">const</span> std::string &amp;, <span class="keywordtype">int</span>);
<a name="l00053"></a>00053 
<a name="l00055"></a>00055     <span class="keyword">virtual</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> * <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#ff0d888cd030e3cfb87e4db4034839a2" title="Copy this object.">copy</a>() <span class="keyword">const</span>;
<a name="l00056"></a>00056 
<a name="l00058"></a>00058     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#e94638d12d336fb3c99057e210c7cf06" title="Is this instance of some class?">instanceOf</a>(<span class="keywordtype">int</span> classNo) <span class="keyword">const</span>;
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#24b80d78e455615b17aecf08849d5f34">00061</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#24b80d78e455615b17aecf08849d5f34" title="Iterate over the attributes of this instance.">iterate</a>(<span class="keywordtype">int</span>&amp; current_class, std::string&amp; attr)<span class="keyword"> const</span>
<a name="l00062"></a>00062 <span class="keyword">        </span>{<span class="keywordflow">if</span>(current_class == GENERIC_NO) current_class = -1; <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#24b80d78e455615b17aecf08849d5f34" title="Iterate over the attributes of this instance.">RootOperationData::iterate</a>(current_class, attr);}
<a name="l00063"></a>00063 
<a name="l00064"></a>00064     <span class="comment">//freelist related things</span>
<a name="l00065"></a>00065 <span class="keyword">public</span>:
<a name="l00066"></a>00066     <span class="keyword">static</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *<a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#30a802fde1f9683981886c32ef76dcdd" title="Allocate a new instance of this class, using an existing instance if available.">alloc</a>();
<a name="l00067"></a>00067     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#b18eb402ee8e0f7f920d704bd6078bb2" title="Free an instance of this class, returning it to the memory pool.">free</a>();
<a name="l00068"></a>00068 
<a name="l00073"></a>00073     <span class="keyword">virtual</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *<a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#918d4b7a3ab18cf8a4584e401c258eb8" title="Get the reference object that contains the default values for attributes of instances...">getDefaultObject</a>();
<a name="l00074"></a>00074 
<a name="l00079"></a>00079     <span class="keyword">static</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *<a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html#4862f5fc15f24ca2b9c18aa88241defc" title="Get the reference object that contains the default values for attributes of instances...">getDefaultObjectInstance</a>();
<a name="l00080"></a>00080 <span class="keyword">private</span>:
<a name="l00081"></a>00081     <span class="keyword">static</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *defaults_GenericData;
<a name="l00082"></a>00082     <span class="keyword">static</span> <a class="code" href="class_atlas_1_1_objects_1_1_operation_1_1_generic_data.html" title="Base operation for all operators.">GenericData</a> *begin_GenericData;
<a name="l00083"></a>00083 };
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 } } } <span class="comment">// namespace Atlas::Objects::Operation</span>
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="preprocessor">#endif // ATLAS_OBJECTS_OPERATION_GENERIC_H</span>
</pre></div></div>
<HR>
<P>Copyright 2000-2004 the respective authors.</P>
<P>This document can be licensed under the terms of the GNU Free Documentation
License or the GNU General Public License and may be freely distributed under
the terms given by one of these licenses.</P>