A nested container with elements of type T
.
More...
Public Types | |
typedef T | element_type |
Public Member Functions | |
nested () | |
Default constructor. Constructs an empty nested container. | |
nested (const nested &other) | |
Copy constructor. | |
template<typename U > | |
nested (const nested< U > &other) | |
Conversion constructor. | |
~nested () | |
Releases this object's reference to any resources associated with this nested container. | |
nested & | operator= (const nested &other) |
Assignment operator. | |
dense< T, 1 > | flatten () const |
Returns a flattened 1D dense container with the data from each segment in order. | |
dense< usize, 1 > | length (const usize &segment) const |
Returns the number of elements in the segment at index segment . | |
dense< usize, 1 > | lengths () const |
Returns a dense container comprised of the lengths of the segments. | |
dense< usize, 1 > | offsets () const |
Returns a dense container comprised of the total number of elements preceding each segment. | |
dense< boolean, 1 > | flags () const |
Returns a dense container of arbb::boolean with a size equal to the sum of all segment sizes that contains a true value if a new segment begins at a given location. | |
dense< usize, 1 > | indices () const |
dense< T, 1 > | segment (const usize &i) const |
Returns a copy of the segment at index i . | |
T | operator() (const usize &i, const usize &j) const |
Returns a copy of the element from segment i at index j . | |
nested | operator[] (const nested< boolean > &mask) const |
Static Public Member Functions | |
static nested | parse (const char *string) |
A nested container with elements of type T
.
Definition at line 36 of file nested.hpp.
typedef T arbb::nested< T >::element_type |
The type of the elements in this nested container.
Definition at line 49 of file nested.hpp.
arbb::nested< T >::nested | ( | ) |
Default constructor. Constructs an empty nested container.
arbb::nested< T >::nested | ( | const nested< T > & | other | ) |
Copy constructor.
Constructs a dense container with the same shape and values as other
.
arbb::nested< T >::nested | ( | const nested< U > & | other | ) | [inline] |
Conversion constructor.
Constructs a nested container with the same shape as src
, whose elements are equal to those in src
at the corresponding nesting level and index, converted to the destination type using a converting cast.
arbb::nested< T >::~nested | ( | ) |
Releases this object's reference to any resources associated with this nested container.
static nested arbb::nested< T >::parse | ( | const char * | string | ) | [static] |
nested& arbb::nested< T >::operator= | ( | const nested< T > & | other | ) |
Assignment operator.
Changes the destination to be a copy of src
.
dense<T, 1> arbb::nested< T >::flatten | ( | ) | const |
Returns a flattened 1D dense container with the data from each segment in order.
dense<usize, 1> arbb::nested< T >::length | ( | const usize & | segment | ) | const |
Returns the number of elements in the segment at index segment
.
dense<usize, 1> arbb::nested< T >::lengths | ( | ) | const |
Returns a dense container comprised of the lengths of the segments.
dense<usize, 1> arbb::nested< T >::offsets | ( | ) | const |
Returns a dense container comprised of the total number of elements preceding each segment.
dense<boolean, 1> arbb::nested< T >::flags | ( | ) | const |
Returns a dense container of arbb::boolean with a size equal to the sum of all segment sizes that contains a true
value if a new segment begins at a given location.
dense<usize, 1> arbb::nested< T >::indices | ( | ) | const |
dense<T, 1> arbb::nested< T >::segment | ( | const usize & | i | ) | const |
Returns a copy of the segment at index i
.
T arbb::nested< T >::operator() | ( | const usize & | i, | |
const usize & | j | |||
) | const |
Returns a copy of the element from segment i
at index j
.
nested arbb::nested< T >::operator[] | ( | const nested< boolean > & | mask | ) | const |
Copyright © 2010, Intel Corporation. All rights reserved.