ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions | Protected Member Functions | Protected Attributes
mapped_object Class Referenceabstract

Base class for mapping viennacl datastructure to generator-friendly structures. More...

#include <mapped_objects.hpp>

Inheritance diagram for mapped_object:
mapped_binary_leaf mapped_handle mapped_host_scalar mapped_implicit_matrix mapped_implicit_vector mapped_matrix_product mapped_reduction mapped_buffer mapped_scalar mapped_scalar_reduction mapped_vector_reduction mapped_matrix mapped_vector

Public Member Functions

 mapped_object (std::string const &scalartype)
 
virtual std::string & append_kernel_arguments (std::set< std::string > &, std::string &str, unsigned int) const
 
std::string const & scalartype () const
 
void access_name (std::string const &str)
 
std::string const & access_name () const
 
virtual std::string generate (std::pair< std::string, std::string > const &index, int) const
 
virtual ~mapped_object ()
 

Protected Member Functions

virtual std::string generate_default (std::pair< std::string, std::string > const &index) const =0
 
virtual std::string append_vector_size (std::string const &scalartype, unsigned int) const
 

Protected Attributes

std::string access_name_
 
std::string scalartype_
 

Detailed Description

Base class for mapping viennacl datastructure to generator-friendly structures.

Constructor & Destructor Documentation

mapped_object ( std::string const &  scalartype)
inline
virtual ~mapped_object ( )
inlinevirtual

Member Function Documentation

void access_name ( std::string const &  str)
inline
std::string const& access_name ( ) const
inline
virtual std::string& append_kernel_arguments ( std::set< std::string > &  ,
std::string &  str,
unsigned int   
) const
inlinevirtual
virtual std::string append_vector_size ( std::string const &  scalartype,
unsigned int   
) const
inlineprotectedvirtual

Reimplemented in mapped_buffer.

virtual std::string generate ( std::pair< std::string, std::string > const &  index,
int   
) const
inlinevirtual

Reimplemented in mapped_buffer.

virtual std::string generate_default ( std::pair< std::string, std::string > const &  index) const
protectedpure virtual
std::string const& scalartype ( ) const
inline

Field Documentation

std::string access_name_
protected
std::string scalartype_
protected

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