PDI 1.0.1

Data exchange made easy

PDI::Array_datatype::Slice_accessor Class Reference

Accessor to get a slice of an array, returns array of the same subtype. More...

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

Public Member Functions

 Slice_accessor (size_t start, size_t end)
 Construct a new slice 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 a slice of an array, returns array of the same subtype.

Constructor & Destructor Documentation

◆ Slice_accessor()

PDI::Array_datatype::Slice_accessor::Slice_accessor ( size_t  start,
size_t  end 
)

Construct a new slice accessor.

Parameters
startstart index of the slice
endend index of the slice

Member Function Documentation

◆ access()

std::pair<void*, Datatype_uptr> PDI::Array_datatype::Slice_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::Slice_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: