ttg_parsec::detail::ttg_parsec_data_wrapper_t Struct Reference
Inheritance diagram for ttg_parsec::detail::ttg_parsec_data_wrapper_t:
ttg_parsec::Buffer< int64_t > ttg_parsec::Buffer< T, Allocator >

Documentation

Definition at line 30 of file ttg_data_copy.h.

Protected Types

using parsec_data_ptr = std::unique_ptr< parsec_data_t, decltype(&parsec_data_destroy)>
 

Protected Member Functions

parsec_data_t * parsec_data ()
 
const parsec_data_t * parsec_data () const
 
void remove_from_owner ()
 
void reset_parsec_data (void *ptr, size_t size, bool sync_to_device)
 
 ttg_parsec_data_wrapper_t ()
 
 ttg_parsec_data_wrapper_t (const ttg_parsec_data_wrapper_t &other)=delete
 
 ttg_parsec_data_wrapper_t (ttg_parsec_data_wrapper_t &&other)
 
ttg_parsec_data_wrapper_toperator= (const ttg_parsec_data_wrapper_t &other)=delete
 
ttg_parsec_data_wrapper_toperator= (ttg_parsec_data_wrapper_t &&other)
 
virtual ~ttg_parsec_data_wrapper_t ()
 
void set_owner (ttg_data_copy_t &new_copy)
 
void add_copy (int parsec_dev, void *ptr)
 

Static Protected Member Functions

static parsec_data_t * create_parsec_data (void *ptr, size_t size, bool sync_to_device)
 
static void delete_parsec_data (parsec_data_t *data)
 
static void delete_null_parsec_data (parsec_data_t *)
 

Protected Attributes

ttg_data_copy_tm_ttg_copy = nullptr
 
parsec_data_ptr m_data
 
friend ttg_data_copy_t
 

Member Typedef Documentation

◆ parsec_data_ptr

using ttg_parsec::detail::ttg_parsec_data_wrapper_t::parsec_data_ptr = std::unique_ptr<parsec_data_t, decltype(&parsec_data_destroy)>
protected

Definition at line 33 of file ttg_data_copy.h.

Constructor & Destructor Documentation

◆ ttg_parsec_data_wrapper_t() [1/3]

ttg_parsec::detail::ttg_parsec_data_wrapper_t::ttg_parsec_data_wrapper_t ( )
inlineprotected

Definition at line 549 of file ttg_data_copy.h.

◆ ttg_parsec_data_wrapper_t() [2/3]

ttg_parsec::detail::ttg_parsec_data_wrapper_t::ttg_parsec_data_wrapper_t ( const ttg_parsec_data_wrapper_t other)
protecteddelete

◆ ttg_parsec_data_wrapper_t() [3/3]

ttg_parsec::detail::ttg_parsec_data_wrapper_t::ttg_parsec_data_wrapper_t ( ttg_parsec_data_wrapper_t &&  other)
inlineprotected

Definition at line 559 of file ttg_data_copy.h.

◆ ~ttg_parsec_data_wrapper_t()

ttg_parsec::detail::ttg_parsec_data_wrapper_t::~ttg_parsec_data_wrapper_t ( )
inlineprotectedvirtual

Definition at line 587 of file ttg_data_copy.h.

Member Function Documentation

◆ add_copy()

void ttg_parsec::detail::ttg_parsec_data_wrapper_t::add_copy ( int  parsec_dev,
void *  ptr 
)
inlineprotected

Definition at line 105 of file ttg_data_copy.h.

◆ create_parsec_data()

static parsec_data_t* ttg_parsec::detail::ttg_parsec_data_wrapper_t::create_parsec_data ( void *  ptr,
size_t  size,
bool  sync_to_device 
)
inlinestaticprotected

Definition at line 40 of file ttg_data_copy.h.

◆ delete_null_parsec_data()

static void ttg_parsec::detail::ttg_parsec_data_wrapper_t::delete_null_parsec_data ( parsec_data_t *  )
inlinestaticprotected

Definition at line 75 of file ttg_data_copy.h.

◆ delete_parsec_data()

static void ttg_parsec::detail::ttg_parsec_data_wrapper_t::delete_parsec_data ( parsec_data_t *  data)
inlinestaticprotected

Definition at line 58 of file ttg_data_copy.h.

◆ operator=() [1/2]

ttg_parsec_data_wrapper_t& ttg_parsec::detail::ttg_parsec_data_wrapper_t::operator= ( const ttg_parsec_data_wrapper_t other)
protecteddelete

◆ operator=() [2/2]

ttg_parsec_data_wrapper_t & ttg_parsec::detail::ttg_parsec_data_wrapper_t::operator= ( ttg_parsec_data_wrapper_t &&  other)
inlineprotected

Definition at line 573 of file ttg_data_copy.h.

◆ parsec_data() [1/2]

parsec_data_t* ttg_parsec::detail::ttg_parsec_data_wrapper_t::parsec_data ( )
inlineprotected

Definition at line 50 of file ttg_data_copy.h.

◆ parsec_data() [2/2]

const parsec_data_t* ttg_parsec::detail::ttg_parsec_data_wrapper_t::parsec_data ( ) const
inlineprotected

Definition at line 54 of file ttg_data_copy.h.

◆ remove_from_owner()

void ttg_parsec::detail::ttg_parsec_data_wrapper_t::remove_from_owner ( )
inlineprotected

definition of ttg_parsec_data_wrapper_t members that depend on ttg_data_copy_t

Definition at line 530 of file ttg_data_copy.h.

◆ reset_parsec_data()

void ttg_parsec::detail::ttg_parsec_data_wrapper_t::reset_parsec_data ( void *  ptr,
size_t  size,
bool  sync_to_device 
)
inlineprotected

Definition at line 538 of file ttg_data_copy.h.

◆ set_owner()

void ttg_parsec::detail::ttg_parsec_data_wrapper_t::set_owner ( ttg_data_copy_t new_copy)
inlineprotected

Definition at line 100 of file ttg_data_copy.h.

Member Data Documentation

◆ m_data

parsec_data_ptr ttg_parsec::detail::ttg_parsec_data_wrapper_t::m_data
protected

Definition at line 36 of file ttg_data_copy.h.

◆ m_ttg_copy

ttg_data_copy_t* ttg_parsec::detail::ttg_parsec_data_wrapper_t::m_ttg_copy = nullptr
protected

Definition at line 35 of file ttg_data_copy.h.

◆ ttg_data_copy_t

friend ttg_parsec::detail::ttg_parsec_data_wrapper_t::ttg_data_copy_t
protected

Definition at line 38 of file ttg_data_copy.h.


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