📄 classwgui_1_1cvaluemessage.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title> TemplatewGui::CValueMessage< T > class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</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">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wGui::CValueMessage< T > Class Template Reference</h1><code>#include <<a class="el" href="wg__message_8h-source.html">wg_message.h</a>></code><p><p>Inheritance diagram for wGui::CValueMessage< T >:<p><center><img src="classwGui_1_1CValueMessage.png" usemap="#wGui::CValueMessage< T >_map" border="0" alt=""></center><map name="wGui::CValueMessage< T >_map"><area href="classwGui_1_1CMessage.html" alt="wGui::CMessage" shape="rect" coords="0,0,170,24"></map><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CValueMessage.html#a0">CValueMessage</a> (const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> MessageType, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pDestination, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pSource, const T &Value)<li>const T & <a class="el" href="classwGui_1_1CValueMessage.html#a1">Value</a> (void)<li>void <a class="el" href="classwGui_1_1CValueMessage.html#a2">SetValue</a> (const T &Value)</ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CValueMessage::m_Value"></a>T <a class="el" href="classwGui_1_1CValueMessage.html#n0">m_Value</a><dl class="el"><dd><font size=-1><em>The internal value.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2><h3>template<typename T><br> class wGui::CValueMessage< T ></h3>A template for messages that contain values Type T must have a valid copy constructor and assignment operator <p><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00166">166</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="wGui::CValueMessage::CValueMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4">template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> wGui::CValueMessage< T >::CValueMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> </td> <td class="mdname" nowrap> <em>MessageType</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * </td> <td class="mdname" nowrap> <em>pDestination</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * </td> <td class="mdname" nowrap> <em>pSource</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const T & </td> <td class="mdname" nowrap> <em>Value</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Construct a new template based Value message <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MessageType</em> </td><td>The type of message being created </td></tr><tr><td valign=top><em>pDestination</em> </td><td>A pointer to the window that the message is destined for (0 for no specific destination, or to broadcast to all) </td></tr><tr><td valign=top><em>pSource</em> </td><td>A pointer to the control that triggered the message </td></tr><tr><td valign=top><em>Value</em> </td><td>A template type data the user has </td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00175">175</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00048">wGui::CMessage::EMessageType</a>, <a class="el" href="wg__message_8h-source.html#l00191">wGui::CValueMessage< T >::m_Value</a>, <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>, and <a class="el" href="wg__message_8h-source.html#l00182">wGui::CValueMessage< T >::Value()</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a2" doxytag="wGui::CValueMessage::SetValue"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4">template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> void wGui::CValueMessage< T >::SetValue </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const T & </td> <td class="mdname1" valign="top" nowrap> <em>Value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the value of the message <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Value</em> </td><td>The value </td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00186">186</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00191">wGui::CValueMessage< T >::m_Value</a>, and <a class="el" href="wg__message_8h-source.html#l00182">wGui::CValueMessage< T >::Value()</a>. </td> </tr></table><a name="a1" doxytag="wGui::CValueMessage::Value"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4">template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> const T& wGui::CValueMessage< T >::Value </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Returns the value of the message <dl compact><dt><b>Returns: </b></dt><dd>A constant reference to the internal value </dl><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00182">182</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00191">wGui::CValueMessage< T >::m_Value</a>.<p>Referenced by <a class="el" href="wg__message_8h-source.html#l00175">wGui::CValueMessage< T >::CValueMessage()</a>, and <a class="el" href="wg__message_8h-source.html#l00186">wGui::CValueMessage< T >::SetValue()</a>. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="wg__message_8h-source.html">wg_message.h</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:29 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -