class PDI::Array_datatype::Slice_accessor

Description

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

Content

Member Functions

Slice_accessor ( size_t end, size_t start )
Construct a new slice 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

Slice_accessor ( size_t end, size_t start )

Description

Construct a new slice accessor.

Parameters

end
end index of the slice
start
start index of the slice

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