| 
    Neo
    0.5.0
    
   Developer Documentation 
   | 
 
This templacte class is used to provide access to custom data without messing with void*'s. More...
#include <Variable.h>
Public Member Functions | |
| Variable (T data, VARIABLE_TYPE type) | |
| Constructs a new object.  More... | |
| T | getData () | 
| Returns the currently saved data.  More... | |
| VARIABLE_TYPE | getType () | 
| Returns the type of the currently saved data.  More... | |
| void | setData (T data) | 
| Changes the value of the currently saved data.  More... | |
This templacte class is used to provide access to custom data without messing with void*'s.
      
  | 
  inline | 
Constructs a new object.
The data in the given variable will be copied to an internal buffer. If it is an address, only the address willa be saved.
Attention: Don't free memory that will be needed!
| data | The variable to save. | 
| type | The type of the variable. | 
      
  | 
  inline | 
Returns the currently saved data.
      
  | 
  inline | 
Returns the type of the currently saved data.
      
  | 
  inline | 
Changes the value of the currently saved data.
| data | The new value. |