libyui
3.0.13
|
#include <YBothDim.h>
Public Member Functions | |
YBothDim (T hor, T vert) | |
YBothDim () | |
T & | operator[] (YUIDimension dim) |
const T & | operator[] (YUIDimension dim) const |
Public Attributes | |
T | vert |
T | hor |
Template class for two-dimensional entities, such as
Precondition: type T needs to have a default constructor (which all simple types like int, long, bool have).
Definition at line 41 of file YBothDim.h.
Constructor with explicit initialization for both values
Definition at line 52 of file YBothDim.h.
Default constructor (calls T default constructor for both values)
Definition at line 60 of file YBothDim.h.
|
inline |
operator[] for alternative access via myVar[ YD_HORIZ ] Please note that this returns a non-const reference, so this can be used as an lvalue (e.g., in assignments)
Definition at line 68 of file YBothDim.h.
|
inline |
Same as above for const objects
Definition at line 84 of file YBothDim.h.