class PDI::Array_datatype::Index_accessor

Description

Accessor to get single element from array.

Content

Member Functions

Index_accessor ( size_t index )
Construct a new index accessor.
std::pair< void *, Datatype_uptr > access ( 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 Array_datatype & type )
Access function for array datatype.
std::unique_ptr< Accessor_base > clone ( )
Creates and returns clone of accessor.

Documentation

Member Functions

Index_accessor ( size_t index )

Description

Construct a new index accessor.

Parameters

index
index of element that will be returned

std::pair< void *, Datatype_uptr > access ( 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 Array_datatype & type )

Description

Access function for array datatype.

Parameters

from
pointer to data of type datatype
remaining_begin
iterator to the beginning of remaining accessors
remaining_end
iterator to the end of remaining accessors
type
a datatype to get access

Result

string that inform what access is made

std::unique_ptr< Accessor_base > clone ( )

Description

Creates and returns clone of accessor.

Result

clone of accessor


Last modified January 1, 0001