|
libidx
|
This class is a container for multiple idxdim. More...
#include <idxspec.h>
Public Member Functions | |
| midxd () | |
| Empty constructor, creates an empty vector of idxd. | |
| midxd (uint n) | |
| Creates a vector of 'n' empty idxd elements. | |
| midxd (const idxd< T > &s) | |
| Create an midxd with 's' as first element. | |
| template<typename T2 > | |
| midxd (const midxd< T2 > &s) | |
| Create an midxd containing the same elements as 's'. | |
| virtual | ~midxd () |
| Destructor. | |
| virtual midxd< T > | narrow_copy (uint n, uint offset) |
| Returns an midxd with 'n' elements starting at 'offset'. | |
| template<typename T2 > | |
| void | push_back (const idxd< T2 > &m) |
| Converts and appends idxd 'm' of different type to this idxd. | |
| virtual void | push_back (const midxd< T > &m) |
| Copies and appends all idxd contained in 'm' to this idxd. | |
| virtual midxd< T > | merge_all () |
| template<typename T2 > | |
| midxd< T > & | operator= (const midxd< T2 > &other) |
| Assign another midxd of possibly different type to this midxd. | |
This class is a container for multiple idxdim.
| midxd< T > ebl::midxd< T >::merge_all | ( | ) | [virtual] |
Returns an midxd with 1 idxd only, assuming they are all equal. An error will be issued if any elements is different.