PDI 1.8.0

the PDI data interface

PDI::Tuple_datatype::Element Class Reference

A Element is one of the elements inside a Tuple_datatype. More...

Public Member Functions

 Element (size_t offset, Datatype_sptr type)
 Construct a new element.
 
 Element (const Element &o)
 Construct a new element by copy.
 
size_t offset () const
 Access the offset in byte from the Tuple_datatype start.
 
Datatype_sptr type () const
 Access the type of the contained element.
 
bool operator== (const Element &rhs) const
 Tests another element for equality.
 
bool operator!= (const Element &rhs) const
 Tests another element for inequality.
 

Detailed Description

A Element is one of the elements inside a Tuple_datatype.

Constructor & Destructor Documentation

◆ Element() [1/2]

PDI::Tuple_datatype::Element::Element ( size_t offset,
Datatype_sptr type )

Construct a new element.

Parameters
offsetoffset in byte from the Tuple_datatype start
typetype of the contained element

◆ Element() [2/2]

PDI::Tuple_datatype::Element::Element ( const Element & o)

Construct a new element by copy.

Parameters
othe element to copy

Member Function Documentation

◆ offset()

size_t PDI::Tuple_datatype::Element::offset ( ) const

Access the offset in byte from the Tuple_datatype start.

Returns
the offset in byte from the Tuple_datatype start

◆ type()

Datatype_sptr PDI::Tuple_datatype::Element::type ( ) const

Access the type of the contained element.

Returns
the type of the contained element

◆ operator==()

bool PDI::Tuple_datatype::Element::operator== ( const Element & rhs) const

Tests another element for equality.

Parameters
rhsthe other element to compare
Returns
true if the elements are equal

◆ operator!=()

bool PDI::Tuple_datatype::Element::operator!= ( const Element & rhs) const

Tests another element for inequality.

Parameters
rhsthe other element to compare
Returns
true if the elements are different

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