|
Pin
|
Public Member Functions | |
| VOID | Set (const T &value) |
| VOID | Set (const T *pValue) |
| VOID | Reset () |
| BOOL | Get (T *pValue) const |
| BOOL | HasValue () const |
| T & | Value () |
| const T & | Value () const |
| T * | ValuePtr () |
| const T * | ValuePtr () const |
Public Attributes | |
| BOOL | m_hasValue |
| T | m_value |
Template POD structure that optionally keeps a value of type <T>.
| T | the value type |
|
inline |
Get the value of this object, if previously assigned.
| [out] | pValue | optional pointer to variable that receives the value assigned to this object, if any |
|
inline |
|
inline |
Remove the previous value assignment, if any.
|
inline |
Assign the specified value to this object.
| [in] | value | the new value to be assigned to this object |
|
inline |
Assign a value to this object or remove the previous assignment.
| [in] | pValue | pointer to the new value to be assigned to this object or NULL to remove the previous assignment |
|
inline |
|
inline |
Get a pointer to the value of this object, if the value has been assigned.
1.8.17