|
CUV
0.9.201304091348
|
simply keeps a pointer and deallocates it when destroyed More...
#include <tensor.hpp>

Public Types | |
| typedef const V | const_value_type |
| const version of value_type | |
| typedef M | memory_space_type |
| host or dev memory_space | |
| typedef unsigned int | size_type |
| type of shapes | |
| typedef int | index_type |
| how to index values | |
|
typedef reference< V, M, index_type > | reference_type |
| type of reference you get using operator[] | |
|
typedef const reference< V, M, index_type > | const_reference_type |
| type of reference you get using operator[] | |
| typedef value_type * | pointer_type |
| typedef const_value_type * | const_pointer_type |
Public Member Functions | |
| pointer_type | ptr () |
| const_pointer_type | ptr () const |
| size_type | size () const |
| size_type | memsize () const |
| void | reset (pointer_type p, size_type s) |
| reset information (use with care, for deserialization) | |
| memory () | |
| default constructor (just sets ptr to NULL) | |
| memory (value_type *ptr, size_type size) | |
| construct with pointer (takes /ownership/ of this pointer and deletes it when destroyed!) | |
| ~memory () | |
| destructor (deallocates the memory) | |
| void | dealloc () |
| dellocate space | |
Static Public Member Functions | |
| typedef unconst< V >::type | value_type |
| type of contained values | |
Protected Attributes | |
| pointer_type | m_ptr |
| points to allocated memory | |
| size_type | m_size |
| size (for serialization) | |
Friends | |
| class | boost::serialization::access |
simply keeps a pointer and deallocates it when destroyed
Definition at line 179 of file tensor.hpp.
|
inline |
Reimplemented in cuv::pitched_memory< V, M >.
Definition at line 210 of file tensor.hpp.
|
inline |
Definition at line 203 of file tensor.hpp.
|
inline |
Definition at line 205 of file tensor.hpp.
|
inline |
Reimplemented in cuv::pitched_memory< V, M >.
Definition at line 208 of file tensor.hpp.
1.8.1.2