Skip to main content

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

Protected Attributes

TypeNameDescription
T_t

Public Member Functions

MemberDescription
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() constThe getValue method gets the object value.
void setValue(const T &t)The setValue method sets the object value.
TEObject * clone() constThe 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

ParameterDescription
_objReference 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

ParameterDescription
tAn object value to be set.

TEObject * clone() const

The clone method clones an object.

Returns: Returns a cloned object.