ivl 679
ivl::index_array Class Reference

#include <index_array.hpp>

Inheritance diagram for ivl::index_array:
ivl::array< size_t, data::stack< 4, true > > ivl::range< T > ivl::array< T, data::range<> >

List of all members.

Public Types

typedef ptrdiff_t diff_type
 difference type of iterators
typedef ptrdiff_t diff_type
 difference type of iterators
typedef size_t size_type
 parameter of resize, in each class of the hierarchy
typedef size_t size_type
 parameter of resize, in each class of the hierarchy

Public Member Functions

size_array cast () const
 Casts RANGE to ARRAY.
size_t length () const
 Get the length of the element sequence.
void reshape (size_t len)
 Reshape is same as resize for 1-d arrays.
void reshape (size_t len)
 Reshape is same as resize for 1-d arrays.
init member function
void init ()
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (int count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (long int count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const size_t &s)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const size_t *ptr)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const internal::tuple_rvalue< J > &r)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array &a)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array< J, S > &a, size_t n)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array< J, S > &a)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const array< J, S > &a)
 Init is behaves exactly like the constructor. See constructor reference.
void init ()
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (int count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (long int count)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const T &s)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const T *ptr)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const internal::tuple_rvalue< J > &r)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array &a)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array< J, S > &a, size_t n)
 Init is behaves exactly like the constructor. See constructor reference.
void init (const array< J, S > &a)
 Init is behaves exactly like the constructor. See constructor reference.
void init (size_t count, const array< J, S > &a)
 Init is behaves exactly like the constructor. See constructor reference.
Size functions
size_type size () const
 Get the size of the array. generic-class function.
size_t numel () const
 Get the length of the element sequence.
size_type size () const
 Get the size of the array. generic-class function.
size_t numel () const
 Get the length of the element sequence.
Element access

Access a unique element by specifying the position

std::vector< size_t >
::const_reference 
operator[] (size_t offset) const
 Returns the const element found at position offset.
std::vector< size_t >::reference operator[] (size_t offset)
 Returns the element found at position offset.
std::vector< T >::const_reference operator[] (size_t offset) const
 Returns the const element found at position offset.
std::vector< T >::reference operator[] (size_t offset)
 Returns the element found at position offset.

Detailed Description

Defines an index array that will be used to select elements in an array.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations