Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
element_block< Type, kSize > Class Template Reference

Detailed Description

template<typename Type, size_t kSize>
class foxxll::mng_local::element_block< Type, kSize >

Contains data elements for foxxll::typed_block , not intended for direct use.

Definition at line 72 of file typed_block.hpp.

+ Inheritance diagram for element_block< Type, kSize >:

#include <typed_block.hpp>

Public Types

using const_iterator = const type *
 
using const_reference = const Type &
 
using iterator = pointer
 
using pointer = type *
 
using reference = Type &
 
using type = Type
 
using value_type = Type
 

Public Member Functions

 element_block ()
 
iterator begin ()
 Returns iterator pointing to the first element. More...
 
const_iterator begin () const
 Returns const_iterator pointing to the first element. More...
 
const_iterator cbegin () const
 Returns const_iterator pointing to the first element. More...
 
const_iterator cend () const
 Returns const_iterator pointing to the end element. More...
 
iterator end ()
 Returns iterator pointing to the end element. More...
 
const_iterator end () const
 Returns const_iterator pointing to the end element. More...
 
reference operator[] (size_t i)
 An operator to access elements in the block. More...
 

Public Attributes

value_type elem [kSize]
 Array of elements of type Type. More...
 

Static Public Attributes

static constexpr size_t size = kSize
 number of elements in the block More...
 

Member Typedef Documentation

using const_iterator = const type *

Definition at line 81 of file typed_block.hpp.

using const_reference = const Type &

Definition at line 78 of file typed_block.hpp.

using iterator = pointer

Definition at line 80 of file typed_block.hpp.

using pointer = type *

Definition at line 79 of file typed_block.hpp.

using reference = Type &

Definition at line 77 of file typed_block.hpp.

using type = Type

Definition at line 75 of file typed_block.hpp.

using value_type = Type

Definition at line 76 of file typed_block.hpp.

Constructor & Destructor Documentation

element_block ( )
inline

Definition at line 88 of file typed_block.hpp.

Member Function Documentation

iterator begin ( )
inline

Returns iterator pointing to the first element.

Definition at line 100 of file typed_block.hpp.

Referenced by element_block< Type, Size >::cbegin().

const_iterator begin ( ) const
inline

Returns const_iterator pointing to the first element.

Definition at line 106 of file typed_block.hpp.

const_iterator cbegin ( ) const
inline

Returns const_iterator pointing to the first element.

Definition at line 112 of file typed_block.hpp.

const_iterator cend ( ) const
inline

Returns const_iterator pointing to the end element.

Definition at line 130 of file typed_block.hpp.

iterator end ( )
inline

Returns iterator pointing to the end element.

Definition at line 118 of file typed_block.hpp.

Referenced by element_block< Type, Size >::cend().

const_iterator end ( ) const
inline

Returns const_iterator pointing to the end element.

Definition at line 124 of file typed_block.hpp.

reference operator[] ( size_t  i)
inline

An operator to access elements in the block.

Definition at line 94 of file typed_block.hpp.

Member Data Documentation

value_type elem[kSize]

Array of elements of type Type.

Definition at line 86 of file typed_block.hpp.

Referenced by element_block< Type, Size >::begin(), element_block< Type, Size >::end(), and element_block< Type, Size >::operator[]().

constexpr size_t size = kSize
static

number of elements in the block

Definition at line 83 of file typed_block.hpp.

Referenced by element_block< Type, Size >::end().


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