Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShManipulator< T > Class Template Reference

A ShManipulator is a ShProgram output manipulator. This kind of manipulator permutes the outputs of a ShProgram based on given integer indices. More...

#include <ShManipulator.hpp>

List of all members.

Public Types

typedef storage_trait< T
>::StorageType 
StorageType
typedef OffsetRange< StorageTypeIndexRange
typedef std::vector< IndexRange > IndexRangeVector

Public Member Functions

 ShManipulator ()
 Creates empty manipulator of given size.

ShManipulator< T > & operator() (T i)
ShManipulator< T > & operator() (T start, T end)
ShManipulator< T > & operator() (const IndexRange &range)
IndexRangeVector getRanges () const
std::string toString () const

Protected Member Functions

OffsetRange< int > convertRange (IndexRange range, const ShProgramNode::VarList &v) const

Protected Attributes

IndexRangeVector m_ranges


Detailed Description

template<typename T>
class SH::ShManipulator< T >

A ShManipulator is a ShProgram output manipulator. This kind of manipulator permutes the outputs of a ShProgram based on given integer indices.

Currently, two types are supported - T = int and T = char*. T = int references channels by position (negative numbers are position from end) T = char* references channels by name. (The Manipulator<char*> operator()(??) methods store copies of the string) (negative indices -k mean k^th channel from the end, with -1 being the last output channel)

Definition at line 99 of file ShManipulator.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Oct 18 14:17:56 2004 for Sh by doxygen 1.3.7