WxRange represents a hyper-rectangular domain of an n-dimensional space of integers.
Counting includes extremum, so [0 1] has length 2 elements.
|
| | WxRange ()=default |
| | Creates an empty range with no dimensions or extent.
|
| |
| | WxRange (unsigned ndims) |
| | Create a 'ndims' dimensional range.
|
| |
| | WxRange (unsigned ndims, const int *lower, const int *upper) |
| | Constucts a range with given 'lower' and 'upper' bounds.
|
| |
| | WxRange (const std::vector< int > &lower, const std::vector< int > &extent) |
| | Constucts a range with given 'lower' coordinates, and extent as specified.
|
| |
| | WxRange (unsigned ndims, const int *length) |
| | Constucts a range given lengths of each side.
|
| |
| | WxRange (const WxBox< int > &templateBox) |
| | Constructs a range matching a giving WxBox<int> template.
|
| |
| | WxRange (const WxRange &b) |
| | Copy constructor and assignment operators.
|
| |
| WxRange & | operator= (const WxRange &b) |
| |
| bool | encloses (const WxRange &candidateRange) const |
| | Check if the range encloses the given range.
|
| |
| bool | compareShape (const WxRange &candidateRange) const |
| | Check if all side lengths of the supplied range match this one.
|
| |
| WxRange | extend (const int low[], const int upp[]) const |
| | Returns a range which is extended by the given amount along each side in each dimension.
|
| |
| WxRange | extend (const int uniformPad[]) const |
| | Returns a range which is extended by the given amount along both sides in each dimension.
|
| |
| WxRange | extend (int uniformPad) const |
| | Returns a range which is extended by the given amount along both sides in every dimension.
|
| |
| void | extrude (const WxRange &range) |
| | Increases the rank of this range to match that of the supplied range argument.
|
| |
| WxRange | intersect (const WxRange &otherRange) const |
| | Returns a range which is the intersection or logical union of this and the supplied range.
|
| |
| WxRange | getShiftedRange (const std::vector< int > &newLowerCornerCoordinates) const |
| | Returns a range which has the same shape as this one, but has been shifted to a new position.
|
| |
| bool | isEmpty () const |
| | Determine if range is empty.
|
| |
| int | length (unsigned dim) const |
| | Length of edge along dimension 'dim'.
|
| |
| int | size () const |
| | Number of elements in range.
|
| |
| bool | operator== (const WxRange &r) const |
| | Check if this range is equal to one supplied.
|
| |
| bool | operator!= (const WxRange &r) const |
| | Check if this range is not equal to one supplied.
|
| |
|
| | WxBox () |
| |
| | WxBox (unsigned ndims) |
| | Create a 'ndims' dimensional box.
|
| |
| | WxBox (unsigned ndims, const int *lower, const int *upper) |
| | Constucts a box with given 'lower' and 'upper' bounds.
|
| |
| | WxBox (unsigned ndims, const int *length) |
| | Constucts a box given lengths of each side.
|
| |
| | WxBox (int s1, int e1) |
| | The following constructors constuct a box with explicit passing of lower s* and upper e* coordinates.
|
| |
| | WxBox (int s1, int e1, int s2, int e2) |
| | Rank-2 ctor.
|
| |
| | WxBox (int s1, int e1, int s2, int e2, int s3, int e3) |
| | Rank-3 ctor.
|
| |
| | WxBox (int s1, int e1, int s2, int e2, int s3, int e3, int s4, int e4) |
| | Rank-4 ctor.
|
| |
| | WxBox (const WxBox< int > &b) |
| | Copy constructor and assignment operators.
|
| |
| WxBox & | operator= (const WxBox< int > &b) |
| |
| virtual | ~WxBox () |
| |
| virtual void | setup (const WxCryptSet &wxc) |
| | Constructs a box specified in a cryptset.
|
| |
| void | resize (const unsigned dim, const int newLength) |
| | Modify upper indicex based on newly supplied length.
|
| |
| unsigned | ndims () const |
| | Dimensionality of box.
|
| |
| int | lower (unsigned dim) const |
| | Lower bound along dimension 'dim'.
|
| |
| void | lower (unsigned dim, int low) |
| | Set lower bound along dimension 'dim'.
|
| |
| int | upper (unsigned dim) const |
| | Upper bound along dimension 'dim'.
|
| |
| void | upper (unsigned dim, int upp) |
| | Set upper bound along dimension 'dim'.
|
| |
| std::pair< int, int > | boundsPair (unsigned dim) const |
| | Pair of upper and lower bound along dimension 'dim'.
|
| |
| virtual bool | isEmpty () const |
| | Determine if box is empty.
|
| |
| virtual int | length (unsigned dim) const |
| | Length of edge along dimension 'dim'.
|
| |
| int | area () const |
| | Area of box.
|
| |
| int | size () const |
| | Area of box.
|
| |
| std::string | coordinateString () const |
| | String of box coordinates.
|
| |
| WxBox< int > | intersect (const WxBox< int > &box) const |
| | Computes intersection of this box with supplied box.
|
| |
| WxBox< int > | extend (const int low[], const int upp[]) const |
| | Returns a box which is extended by the given amount along each side in each dimension.
|
| |
| WxBox< int > | extend (const int uniformPad[]) const |
| | Returns a box which is extended by the given amount along both sides in each dimension.
|
| |
| WxBox< int > | extend (int uniformPad) const |
| | Returns a box which is extended by the given amount along both sides in every dimension.
|
| |
| WxBox< int > | extDim (int low, int upp) const |
| | Returns a new box which has one greater dimension than this one.
|
| |
| void | extrude (const WxBox &box) |
| | Increases the rank of this box to match that of the supplied box argument.
|
| |
| WxBox< int > | reduceDim (unsigned int newDim) const |
| | Returns a new box which has up to new number of dimensions.
|
| |
| bool | operator== (const WxBox< int > &b) const |
| | Check if this box is equal to one supplied.
|
| |
| bool | contains (const int coord[]) const |
| | Check if the box contains the given point.
|
| |
| bool | encloses (const WxBox< int > &candidateBox) const |
| | Check if the box encloses the given box.
|
| |
| bool | compareShape (const WxBox< int > &candidateBox) const |
| | Check if all side lengths of the supplied box match this one.
|
| |
| | WxObject () |
| | Create object, that will be initialized subsequently.
|
| |
| | WxObject (const std::string &name) |
| | Create object with given name bypassing object setup phase Protected because there is no reason to have a WxObject directly, as it is meant to be a parent class.
|
| |
| virtual | ~WxObject () |
| | Dtor: destroy object.
|
| |
| void | setIo (WxIoBase &io) |
| | Set the I/O pointer for use in object.
|
| |
| void | setMsg (WxMsgBase &msg) |
| | Set the msg pointer for use in object.
|
| |
| WxIoBase & | getIo () |
| | Return reference to I/O object.
|
| |
| const WxIoBase & | getIo () const |
| | Return constant reference to I/O object.
|
| |
| WxMsgBase & | getMsg () |
| | Return reference to msg object.
|
| |
| const WxMsgBase & | getMsg () const |
| | Return const reference to msg object.
|
| |
| virtual void | setup (const WxCryptSet &wxc) |
| | Setup object using supplied crypset.
|
| |
| virtual void | init () |
| | Initialize the object.
|
| |
| virtual void | finishBuild () |
| | Finish building the object.
|
| |
| virtual void | load (WxIoBase &io, const WxIoNodeType &grpNode) |
| | Load object from file.
|
| |
| virtual void | dump (WxIoBase &io, WxIoNodeType &grpNode) const |
| | Dump object to file.
|
| |
| virtual std::string | name () const |
| | Get name of object.
|
| |
| void | setName (const std::string &nm) |
| | Set object's name.
|
| |
| unsigned | _ndims |
| |
| int | _lower [max_dims] |
| |
| int | _upper [max_dims] |
| |
| int | _length [max_dims] |
| |
| static const int | max_dims |
| | Maximum rank box that can be represented.
|
| |