ERUCES::TEObjectTemplate
#include <teobject.h>
The TEObjectTemplate class is a template class used to define primitive TE objects; this class is derived from the TEObject class.
Inheritance
- Inherits ERUCES::TEObject
Protected Attributes
| Type | Name | Description |
|---|---|---|
| T | _t |
Public Member Functions
| Member | Description |
|---|---|
TEObjectTemplate(T t) | The TEObjectTemplate constructor is a copy constructor. |
void operator=(const TEObjectTemplate< T > &_obj) | The = operator assigns the content of one object to another. |
const T & getValue() const | The getValue method gets the object value. |
void setValue(const T &t) | The setValue method sets the object value. |
TEObject * clone() const | The clone method clones an object. |
Member Function Documentation
TEObjectTemplate(T t)
The TEObjectTemplate constructor is a copy constructor.
void operator=(const TEObjectTemplate< T > &_obj)
The = operator assigns the content of one object to another.
Parameters
| Parameter | Description |
|---|---|
_obj | Reference to an object which will be assigned to the current object. |
const T & getValue() const
The getValue method gets the object value.
Returns: Returns the value of an object.
void setValue(const T &t)
The setValue method sets the object value.
Parameters
| Parameter | Description |
|---|---|
t | An object value to be set. |
TEObject * clone() const
The clone method clones an object.
Returns: Returns a cloned object.