te::vp::ComplexData< T > Class Template Reference

A template for complex data types. More...

#include <ComplexData.h>

Inheritance diagram for te::vp::ComplexData< T >:
te::dt::AbstractData

Public Member Functions

ComplexDataclone () const
 It returns a clone of this object. More...
 
 ComplexData (T value)
 Constructor. More...
 
 ComplexData (const ComplexData &rhs)
 Copy constructor. More...
 
virtual int getTypeCode () const
 It returns the data type code associated to the data value. More...
 
getValue () const
 It returns the associated value. More...
 
ComplexDataoperator= (const ComplexData &rhs)
 Copy constructor. More...
 
virtual std::string toString () const
 It returns the data value in a string representation. More...
 
virtual ~ComplexData ()
 Virtual destructor. More...
 

Private Attributes

m_val
 The data value. More...
 

Detailed Description

template<class T>
class te::vp::ComplexData< T >

A template for complex data types.

Requirements on type T:

  • T must be a copy constructible type.
See also
AbstractData, CompositeData, DataType, DateTime, ByteArray

Definition at line 52 of file ComplexData.h.

Constructor & Destructor Documentation

◆ ComplexData() [1/2]

template<class T >
te::vp::ComplexData< T >::ComplexData ( value)
inline

Constructor.

Parameters
valueThe value associated.

Definition at line 61 of file ComplexData.h.

Referenced by te::vp::ComplexData< T >::clone().

◆ ComplexData() [2/2]

template<class T >
te::vp::ComplexData< T >::ComplexData ( const ComplexData< T > &  rhs)
inline

Copy constructor.

Parameters
rhsThe right-hand-side data.

Definition at line 71 of file ComplexData.h.

◆ ~ComplexData()

template<class T >
virtual te::vp::ComplexData< T >::~ComplexData ( )
inlinevirtual

Virtual destructor.

Definition at line 77 of file ComplexData.h.

Member Function Documentation

◆ clone()

template<class T >
ComplexData* te::vp::ComplexData< T >::clone ( ) const
inlinevirtual

It returns a clone of this object.

Returns
A clone of this object.

Implements te::dt::AbstractData.

Definition at line 99 of file ComplexData.h.

References te::vp::ComplexData< T >::ComplexData().

◆ getTypeCode()

template<class T >
virtual int te::vp::ComplexData< T >::getTypeCode ( ) const
inlinevirtual

It returns the data type code associated to the data value.

Returns
The data type code associated to the data value.

Implements te::dt::AbstractData.

Definition at line 109 of file ComplexData.h.

References te::dt::UNKNOWN_TYPE.

◆ getValue()

template<class T >
T te::vp::ComplexData< T >::getValue ( ) const
inline

It returns the associated value.

Returns
The associated value.

Definition at line 129 of file ComplexData.h.

References te::vp::ComplexData< T >::m_val.

◆ operator=()

template<class T >
ComplexData& te::vp::ComplexData< T >::operator= ( const ComplexData< T > &  rhs)
inline

Copy constructor.

Parameters
rhsThe right-hand-side data.

Definition at line 84 of file ComplexData.h.

References te::vp::ComplexData< T >::m_val.

◆ toString()

template<class T >
virtual std::string te::vp::ComplexData< T >::toString ( void  ) const
inlinevirtual

It returns the data value in a string representation.

Returns
The data value in a string representation.

Implements te::dt::AbstractData.

Definition at line 119 of file ComplexData.h.

Member Data Documentation

◆ m_val

template<class T >
T te::vp::ComplexData< T >::m_val
private

The data value.

Definition at line 136 of file ComplexData.h.

Referenced by te::vp::ComplexData< T >::getValue(), and te::vp::ComplexData< T >::operator=().


The documentation for this class was generated from the following file: