PDI 1.2.2

Data exchange made easy

PDI::Array_datatype::Index_accessor Class Reference

Accessor to get single element from array. More...

Inheritance diagram for PDI::Array_datatype::Index_accessor:
PDI::Datatype::Accessor_base

Public Member Functions

 Index_accessor (size_t index)
 Construct a new index accessor. More...
 
std::pair< void *, Datatype_uptraccess (const Array_datatype &array_type, void *from, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_begin, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_end) const override
 Access function for array datatype. More...
 
std::unique_ptr< Accessor_baseclone () const override
 Creates and returns clone of accessor. More...
 
- Public Member Functions inherited from PDI::Datatype::Accessor_base
virtual std::pair< void *, Datatype_uptraccess (const Pointer_datatype &type, void *from, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_begin, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_end) const
 Access function for pointer datatype. More...
 
virtual std::pair< void *, Datatype_uptraccess (const Record_datatype &type, void *from, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_begin, std::vector< std::unique_ptr< Accessor_base >>::const_iterator remaining_end) const
 Access function for record datatype. More...
 
virtual ~Accessor_base ()=default
 Destroys the accessor. More...
 

Detailed Description

Accessor to get single element from array.

Constructor & Destructor Documentation

◆ Index_accessor()

PDI::Array_datatype::Index_accessor::Index_accessor ( size_t  index)

Construct a new index accessor.

Parameters
indexindex of element that will be returned

Member Function Documentation

◆ access()

std::pair<void*, Datatype_uptr> PDI::Array_datatype::Index_accessor::access ( const Array_datatype type,
void *  from,
std::vector< std::unique_ptr< Accessor_base >>::const_iterator  remaining_begin,
std::vector< std::unique_ptr< Accessor_base >>::const_iterator  remaining_end 
) const
overridevirtual

Access function for array datatype.

Parameters
typea datatype to get access
frompointer to data of type datatype
remaining_beginiterator to the beginning of remaining accessors
remaining_enditerator to the end of remaining accessors
Returns
string that inform what access is made

Reimplemented from PDI::Datatype::Accessor_base.

◆ clone()

std::unique_ptr<Accessor_base> PDI::Array_datatype::Index_accessor::clone ( ) const
overridevirtual

Creates and returns clone of accessor.

Returns
clone of accessor

Implements PDI::Datatype::Accessor_base.


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