1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: work/mixpp/bdm/userinfo.h Source File</title> |
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.5 --> |
---|
8 | <div class="navigation" id="top"> |
---|
9 | <div class="tabs"> |
---|
10 | <ul> |
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li><a href="annotated.html"><span>Classes</span></a></li> |
---|
14 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
15 | </ul> |
---|
16 | </div> |
---|
17 | <h1>work/mixpp/bdm/userinfo.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span> |
---|
18 | <a name="l00002"></a>00002 <span class="comment">// C++ Interface: userinfo</span> |
---|
19 | <a name="l00003"></a>00003 <span class="comment">//</span> |
---|
20 | <a name="l00004"></a>00004 <span class="comment">// Description:</span> |
---|
21 | <a name="l00005"></a>00005 <span class="comment">//</span> |
---|
22 | <a name="l00006"></a>00006 <span class="comment">//</span> |
---|
23 | <a name="l00007"></a>00007 <span class="comment">// Author: smidl <smidl@utia.cas.cz>, (C) 2008</span> |
---|
24 | <a name="l00008"></a>00008 <span class="comment">//</span> |
---|
25 | <a name="l00009"></a>00009 <span class="comment">// Copyright: See COPYING file that comes with this distribution</span> |
---|
26 | <a name="l00010"></a>00010 <span class="comment">//</span> |
---|
27 | <a name="l00011"></a>00011 <span class="comment">//</span> |
---|
28 | <a name="l00012"></a>00012 <span class="preprocessor">#include <itpp/itbase.h></span> |
---|
29 | <a name="l00013"></a>00013 <span class="preprocessor">#include <itpp/base/mat.h></span> |
---|
30 | <a name="l00014"></a>00014 |
---|
31 | <a name="l00015"></a>00015 <span class="keyword">using</span> std::cout; |
---|
32 | <a name="l00016"></a>00016 <span class="keyword">using</span> std::endl; |
---|
33 | <a name="l00017"></a>00017 <span class="keyword">using</span> std::string; |
---|
34 | <a name="l00018"></a>00018 |
---|
35 | <a name="l00024"></a><a class="code" href="classuibase.html">00024</a> <span class="keyword">class </span><a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
---|
36 | <a name="l00025"></a>00025 <span class="keyword">protected</span>: |
---|
37 | <a name="l00027"></a><a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3">00027</a> <span class="keywordtype">string</span> <a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a>; |
---|
38 | <a name="l00029"></a><a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a">00029</a> <span class="keywordtype">string</span> <a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a>; |
---|
39 | <a name="l00031"></a><a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7">00031</a> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* <a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a>; |
---|
40 | <a name="l00033"></a><a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1">00033</a> <span class="keywordtype">int</span> <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>; |
---|
41 | <a name="l00034"></a>00034 <span class="keyword">public</span>: |
---|
42 | <a name="l00036"></a><a class="code" href="classuibase.html#2f0551822ed7af25f8e7ffbe7c0a8f97">00036</a> <a class="code" href="classuibase.html#2f0551822ed7af25f8e7ffbe7c0a8f97" title="Default constructor.">uibase</a> ( <span class="keywordtype">string</span> com = <span class="stringliteral">"Abstract class, please ignore!"</span>, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a> ( com ),<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a> ( <span class="stringliteral">""</span> ),<a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a> ( par ) { |
---|
43 | <a name="l00037"></a>00037 <span class="keywordflow">if</span> ( <a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a>!=NULL ) {<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>=<a class="code" href="classuibase.html#0b6ae5af990c9edfa34fe9e1ea95afe7" title="Possible parent of the userinfo.">parent</a>-><a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037" title="access function">get_level</a>() +1;} |
---|
44 | <a name="l00038"></a>00038 <span class="keywordflow">else</span> {<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a> =0;} |
---|
45 | <a name="l00039"></a>00039 } |
---|
46 | <a name="l00040"></a>00040 |
---|
47 | <a name="l00042"></a><a class="code" href="classuibase.html#de805f1ce9c1b261dc47d57c506d36f1">00042</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#de805f1ce9c1b261dc47d57c506d36f1" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) {}; |
---|
48 | <a name="l00043"></a>00043 |
---|
49 | <a name="l00045"></a><a class="code" href="classuibase.html#d28232d94715c153afb9280a8a4552eb">00045</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#d28232d94715c153afb9280a8a4552eb" title="interaction with the user">askuser</a>() {}; |
---|
50 | <a name="l00046"></a>00046 |
---|
51 | <a name="l00048"></a><a class="code" href="classuibase.html#e7403110752e92a31db563556124742e">00048</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuibase.html#e7403110752e92a31db563556124742e" title="test if the info is valid">isvalid</a>() {<span class="keywordflow">return</span> <span class="keyword">true</span>;} |
---|
52 | <a name="l00050"></a><a class="code" href="classuibase.html#1972e8d075e083e0f033ac2e4fee3a7a">00050</a> <span class="keyword">virtual</span> <a class="code" href="classuibase.html#1972e8d075e083e0f033ac2e4fee3a7a" title="for future use">~uibase</a>() {}; |
---|
53 | <a name="l00052"></a><a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2">00052</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">save</a> ( std::ostream &os ) { |
---|
54 | <a name="l00053"></a>00053 os.width(<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>); |
---|
55 | <a name="l00054"></a>00054 os.fill(<span class="charliteral">' '</span>); |
---|
56 | <a name="l00055"></a>00055 os<<<span class="stringliteral">"#"</span><<<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a><<endl; |
---|
57 | <a name="l00056"></a>00056 os.width(<a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>); |
---|
58 | <a name="l00057"></a>00057 os.fill(<span class="charliteral">' '</span>); |
---|
59 | <a name="l00058"></a>00058 os<<<a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a><<<span class="stringliteral">" = "</span>; |
---|
60 | <a name="l00059"></a>00059 }; |
---|
61 | <a name="l00061"></a><a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3">00061</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">load</a> ( std::istream &is ) { |
---|
62 | <a name="l00062"></a>00062 <span class="keywordtype">char</span> tmp[200]; |
---|
63 | <a name="l00063"></a>00063 is.ignore ( <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>+1,<span class="charliteral">'#'</span> ); <span class="comment">// +1 is for #</span> |
---|
64 | <a name="l00064"></a>00064 is.getline ( tmp,200 );<a class="code" href="classuibase.html#4bf69e2353bf0620e0dd714e0d92473a" title="Explanation for a user what the field means.">help</a>=tmp; |
---|
65 | <a name="l00065"></a>00065 is.ignore ( <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>,<span class="charliteral">'\0'</span> ); |
---|
66 | <a name="l00066"></a>00066 is.getline ( tmp,200,<span class="charliteral">'='</span> ); <a class="code" href="classuibase.html#b093af7c0a2a8b9bc3e71c1dc83779c3" title="String identifier of a field.">name</a>=tmp; |
---|
67 | <a name="l00067"></a>00067 }; |
---|
68 | <a name="l00068"></a>00068 |
---|
69 | <a name="l00070"></a><a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037">00070</a> <span class="keywordtype">int</span> <a class="code" href="classuibase.html#e05d51c68e5e690110208ebad4c0a037" title="access function">get_level</a>(){<span class="keywordflow">return</span> <a class="code" href="classuibase.html#d903be35ad6f3932eb5d8df8777e0fa1" title="Indentation level, i.e. number of parents.">ilevel</a>;} |
---|
70 | <a name="l00071"></a>00071 }; |
---|
71 | <a name="l00072"></a>00072 |
---|
72 | <a name="l00074"></a>00074 <span class="keyword">template</span><<span class="keyword">class</span> T> |
---|
73 | <a name="l00075"></a><a class="code" href="classuiscalar.html">00075</a> <span class="keyword">class </span><a class="code" href="classuiscalar.html" title="User info for scalars.">uiscalar</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
---|
74 | <a name="l00076"></a>00076 <span class="keyword">protected</span>: |
---|
75 | <a name="l00078"></a><a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8">00078</a> T <a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>; |
---|
76 | <a name="l00079"></a>00079 <span class="keyword">public</span>: |
---|
77 | <a name="l00081"></a><a class="code" href="classuiscalar.html#4b71f9d9246a3715df44d9701b1cbfdd">00081</a> <a class="code" href="classuiscalar.html#4b71f9d9246a3715df44d9701b1cbfdd" title="Default constructor.">uiscalar</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par =NULL) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>=T ( 0 );}; |
---|
78 | <a name="l00082"></a>00082 |
---|
79 | <a name="l00083"></a><a class="code" href="classuiscalar.html#cc3639d49c2577e7c40ebaf48ced444f">00083</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#cc3639d49c2577e7c40ebaf48ced444f" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) {S=<span class="stringliteral">"Scalar"</span>;}; |
---|
80 | <a name="l00084"></a>00084 |
---|
81 | <a name="l00085"></a><a class="code" href="classuiscalar.html#9a21e792b929d081c33321714fbfe94f">00085</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#9a21e792b929d081c33321714fbfe94f" title="interaction with the user">askuser</a> () {}; |
---|
82 | <a name="l00086"></a>00086 |
---|
83 | <a name="l00087"></a><a class="code" href="classuiscalar.html#ccb9739e4989d7489dca75ea673238dd">00087</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#ccb9739e4989d7489dca75ea673238dd" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a><<endl;} |
---|
84 | <a name="l00088"></a><a class="code" href="classuiscalar.html#135480b7762b221331076227c292869c">00088</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#135480b7762b221331076227c292869c" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>;} |
---|
85 | <a name="l00090"></a><a class="code" href="classuiscalar.html#23b474d26466a4b11f3adfd515da5ed1">00090</a> <a class="code" href="classuiscalar.html#23b474d26466a4b11f3adfd515da5ed1" title="for future use">~uiscalar</a>() {}; |
---|
86 | <a name="l00091"></a>00091 |
---|
87 | <a name="l00093"></a><a class="code" href="classuiscalar.html#3db4fc9c4970f184d4e78c492842a2d2">00093</a> <span class="keywordtype">void</span> <a class="code" href="classuiscalar.html#3db4fc9c4970f184d4e78c492842a2d2" title="access function">set_value</a> ( T N0 ) {<a class="code" href="classuiscalar.html#42d6a9f5bc37168a76e735d1254b97b8" title="Value.">N</a>=N0;} |
---|
88 | <a name="l00094"></a>00094 }; |
---|
89 | <a name="l00095"></a>00095 |
---|
90 | <a name="l00097"></a><a class="code" href="classuistring.html">00097</a> <span class="keyword">class </span><a class="code" href="classuistring.html" title="User info for strings.">uistring</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
---|
91 | <a name="l00098"></a>00098 <span class="keyword">protected</span>: |
---|
92 | <a name="l00100"></a><a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd">00100</a> std::string <a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a>; |
---|
93 | <a name="l00101"></a>00101 <span class="keyword">public</span>: |
---|
94 | <a name="l00102"></a><a class="code" href="classuistring.html#e386e7738fec80d6ef80a14ac03e05e4">00102</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#e386e7738fec80d6ef80a14ac03e05e4" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &<a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a> ) {S=<span class="stringliteral">"String"</span>;}; |
---|
95 | <a name="l00103"></a>00103 |
---|
96 | <a name="l00105"></a><a class="code" href="classuistring.html#1853e3ed6881106360042949287c7dab">00105</a> <a class="code" href="classuistring.html#1853e3ed6881106360042949287c7dab" title="Default constructor.">uistring</a> ( std::string com , <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {} |
---|
97 | <a name="l00106"></a>00106 |
---|
98 | <a name="l00107"></a><a class="code" href="classuistring.html#cb9eb5da0ad7bcb09f0d59b037954eec">00107</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#cb9eb5da0ad7bcb09f0d59b037954eec" title="interaction with the user">askuser</a> () {}; |
---|
99 | <a name="l00108"></a>00108 |
---|
100 | <a name="l00109"></a><a class="code" href="classuistring.html#2f3c4c4ed42f720969dd6922063b784a">00109</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#2f3c4c4ed42f720969dd6922063b784a" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a><<endl;} |
---|
101 | <a name="l00110"></a><a class="code" href="classuistring.html#382d63a6a9ec8f10b9ceb2ed197f6e20">00110</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#382d63a6a9ec8f10b9ceb2ed197f6e20" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a>;} |
---|
102 | <a name="l00111"></a>00111 |
---|
103 | <a name="l00112"></a>00112 ~<a class="code" href="classuistring.html" title="User info for strings.">uistring</a>() {}; |
---|
104 | <a name="l00114"></a><a class="code" href="classuistring.html#89e96a96faca08d1847cd73cf8aaae9a">00114</a> <span class="keywordtype">void</span> <a class="code" href="classuistring.html#89e96a96faca08d1847cd73cf8aaae9a" title="access function">set_value</a> ( std::string S0 ) {<a class="code" href="classuistring.html#64e705aa389c10f7bc52b3860c40a2fd" title="Values.">S</a>=S0;} |
---|
105 | <a name="l00115"></a>00115 }; |
---|
106 | <a name="l00116"></a>00116 |
---|
107 | <a name="l00118"></a>00118 <span class="keyword">template</span><<span class="keyword">class</span> T> |
---|
108 | <a name="l00119"></a><a class="code" href="classuivector.html">00119</a> <span class="keyword">class </span><a class="code" href="classuivector.html" title="User info for vectors.">uivector</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
---|
109 | <a name="l00120"></a>00120 <span class="keyword">protected</span>: |
---|
110 | <a name="l00122"></a><a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253">00122</a> itpp::Vec<T> <a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>; |
---|
111 | <a name="l00123"></a>00123 <span class="keyword">public</span>: |
---|
112 | <a name="l00124"></a><a class="code" href="classuivector.html#5ccf01fcd3717975d3a330f03a2bc347">00124</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#5ccf01fcd3717975d3a330f03a2bc347" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) { S=<span class="stringliteral">"Vector of length "</span>+ <a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>.length();}; |
---|
113 | <a name="l00125"></a>00125 |
---|
114 | <a name="l00127"></a><a class="code" href="classuivector.html#b9cf7db05fe899cad8f2a42580c7c3cb">00127</a> <a class="code" href="classuivector.html#b9cf7db05fe899cad8f2a42580c7c3cb" title="Default constructor.">uivector</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {}; |
---|
115 | <a name="l00128"></a>00128 |
---|
116 | <a name="l00129"></a><a class="code" href="classuivector.html#46f823703a8de31ba14cbcc3406819db">00129</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#46f823703a8de31ba14cbcc3406819db" title="interaction with the user">askuser</a> () {}; |
---|
117 | <a name="l00130"></a>00130 |
---|
118 | <a name="l00131"></a><a class="code" href="classuivector.html#bb6488784b36f25eadcfbc02df0c99aa">00131</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#bb6488784b36f25eadcfbc02df0c99aa" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a><<endl;;} |
---|
119 | <a name="l00132"></a><a class="code" href="classuivector.html#c8e640c8013c4c69f8ce9014009dd8c6">00132</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#c8e640c8013c4c69f8ce9014009dd8c6" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>;} |
---|
120 | <a name="l00133"></a>00133 |
---|
121 | <a name="l00135"></a><a class="code" href="classuivector.html#08501b4bb9d1d93097488ec00da8677a">00135</a> <span class="keywordtype">void</span> <a class="code" href="classuivector.html#08501b4bb9d1d93097488ec00da8677a" title="access function">set_value</a> ( itpp::Vec<T> V0 ) {<a class="code" href="classuivector.html#47efd0dfdea8804638ef674644de4253" title="Value.">V</a>=V0;} |
---|
122 | <a name="l00136"></a>00136 |
---|
123 | <a name="l00137"></a>00137 }; |
---|
124 | <a name="l00138"></a>00138 |
---|
125 | <a name="l00140"></a>00140 <span class="keyword">template</span><<span class="keyword">class</span> T> |
---|
126 | <a name="l00141"></a><a class="code" href="classuimatrix.html">00141</a> <span class="keyword">class </span><a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix</a> : <span class="keyword">public</span> <a class="code" href="classuibase.html" title="User Info base class.">uibase</a> { |
---|
127 | <a name="l00142"></a>00142 <span class="keyword">protected</span>: |
---|
128 | <a name="l00144"></a><a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9">00144</a> itpp::Mat<T> <a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>; |
---|
129 | <a name="l00145"></a>00145 |
---|
130 | <a name="l00146"></a>00146 <span class="keyword">public</span>: |
---|
131 | <a name="l00148"></a><a class="code" href="classuimatrix.html#5817e2696f293a751b6690792f3e7aa8">00148</a> <a class="code" href="classuimatrix.html#5817e2696f293a751b6690792f3e7aa8" title="Default constructor.">uimatrix</a> ( std::string com, <a class="code" href="classuibase.html" title="User Info base class.">uibase</a>* par=NULL ) :<a class="code" href="classuibase.html" title="User Info base class.">uibase</a> ( com,par ) {} |
---|
132 | <a name="l00149"></a>00149 |
---|
133 | <a name="l00150"></a><a class="code" href="classuimatrix.html#72da139481128a8fc979cb38b031504c">00150</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#72da139481128a8fc979cb38b031504c" title="returns a summary of its contents (used in dialogs)">getsummary</a> ( std::string &S ) { S=<span class="stringliteral">"Matrix "</span>;}; |
---|
134 | <a name="l00151"></a>00151 |
---|
135 | <a name="l00152"></a><a class="code" href="classuimatrix.html#4b1649ae99267ee98164d4a3d3e3fb05">00152</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#4b1649ae99267ee98164d4a3d3e3fb05" title="interaction with the user">askuser</a> () {}; |
---|
136 | <a name="l00153"></a>00153 |
---|
137 | <a name="l00154"></a><a class="code" href="classuimatrix.html#8176b9d61acfe32cad75eca372190eb8">00154</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#8176b9d61acfe32cad75eca372190eb8" title="Save to file.">save</a> ( std::ostream &os ) {<a class="code" href="classuibase.html#6986cef72dc78d8caaddf05481dc9eb2" title="Save to file.">uibase::save</a> ( os );os<<<a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a><<endl;} |
---|
138 | <a name="l00155"></a><a class="code" href="classuimatrix.html#664307ac6fc483e506b831d80a60b7a8">00155</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#664307ac6fc483e506b831d80a60b7a8" title="load from file">load</a> ( std::istream &is ) {<a class="code" href="classuibase.html#eb22da8503624c0d52d84817b00acba3" title="load from file">uibase::load</a> ( is );is>><a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>;} |
---|
139 | <a name="l00156"></a>00156 |
---|
140 | <a name="l00158"></a><a class="code" href="classuimatrix.html#cc00f8af1706d634b11458c49a52a7b3">00158</a> <span class="keywordtype">void</span> <a class="code" href="classuimatrix.html#cc00f8af1706d634b11458c49a52a7b3" title="access function">set_value</a> ( itpp::Mat<T> M0 ) {<a class="code" href="classuimatrix.html#fd0ae0b8efd7cda2fb043d9a2d67b9e9" title="Value.">M</a>=M0;} |
---|
141 | <a name="l00159"></a>00159 }; |
---|
142 | <a name="l00160"></a>00160 |
---|
143 | <a name="l00161"></a>00161 |
---|
144 | <a name="l00162"></a>00162 <span class="keyword">typedef</span> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix<double></a> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimat</a>; |
---|
145 | <a name="l00163"></a>00163 <span class="keyword">typedef</span> <a class="code" href="classuimatrix.html" title="User info for matrices.">uimatrix<int></a> <a class="code" href="classuimatrix.html" title="User info for matrices.">uiimat</a>; |
---|
146 | <a name="l00164"></a>00164 |
---|
147 | <a name="l00165"></a>00165 <span class="keyword">typedef</span> <a class="code" href="classuivector.html" title="User info for vectors.">uivector<double></a> <a class="code" href="classuivector.html" title="User info for vectors.">uivec</a>; |
---|
148 | <a name="l00166"></a>00166 <span class="keyword">typedef</span> <a class="code" href="classuivector.html" title="User info for vectors.">uivector<int></a> <a class="code" href="classuivector.html" title="User info for vectors.">uiivec</a>; |
---|
149 | <a name="l00167"></a>00167 |
---|
150 | </pre></div></div> |
---|
151 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri May 9 23:06:28 2008 for mixpp by |
---|
152 | <a href="http://www.doxygen.org/index.html"> |
---|
153 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> |
---|
154 | </body> |
---|
155 | </html> |
---|