struct PDI::Datatype::Accessor_base

Description

Base class for datatype accesssors, that allow to get pointer to subtype.

Content

Member Functions

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::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 Pointer_datatype & type )
Access function for pointer datatype.
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 Record_datatype & type )
Access function for record datatype.
std::string access_kind ( )
Returns access kind as string.
std::unique_ptr< Accessor_base > clone ( )
Creates and returns clone of accessor.
~Accessor_base ( )
Destroys the accessor.

Documentation

Member Functions

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::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 Pointer_datatype & type )

Description

Access function for pointer 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::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 Record_datatype & type )

Description

Access function for record 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::string access_kind ( )

Description

Returns access kind as string.

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

~Accessor_base ( )

Description

Destroys the accessor.

Last modified January 1, 0001