torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Value::Point Class Reference

#include <Value.hpp>

Public Member Functions

 Point ()
 
 Point (int32_t inX, int32_t inY)
 
 ~Point () throw ()
 
 Point (const Point &inSource)
 
Pointoperator= (const Point &inSource)
 
bool operator< (const Point &inRhs) const
 
bool operator== (const Point &inRhs) const
 
bool operator!= (const Point &inRhs) const
 
bool operator> (const Point &inRhs) const
 
bool operator>= (const Point &inRhs) const
 
bool operator<= (const Point &inRhs) const
 
const int32_t getX () const
 
void setX (const int32_t &inSource)
 
const int32_t getY () const
 
void setY (const int32_t &inSource)
 

Private Attributes

int32_t mX
 
int32_t mY
 

Detailed Description

Represents a point in cartesian coordinates. This stores the X and Y coordinates.

Definition at line 186 of file Value.hpp.

Constructor & Destructor Documentation

torc::generic::Value::Point::Point ( )

Definition at line 146 of file Value.cpp.

146 : mX(0), mY(0) {}
torc::generic::Value::Point::Point ( int32_t  inX,
int32_t  inY 
)

Definition at line 148 of file Value.cpp.

148 : mX(inX), mY(inY) {}
torc::generic::Value::Point::~Point ( )
throw (
)

Definition at line 150 of file Value.cpp.

150 {}
torc::generic::Value::Point::Point ( const Point inSource)

Definition at line 152 of file Value.cpp.

152 : mX(inSource.mX), mY(inSource.mY) {}

Member Function Documentation

const int32_t torc::generic::Value::Point::getX ( ) const
inline

Definition at line 335 of file Value.hpp.

335  {
336  return mX;
337 }

+ Here is the caller graph for this function:

const int32_t torc::generic::Value::Point::getY ( ) const
inline

Definition at line 339 of file Value.hpp.

339  {
340  return mY;
341 }

+ Here is the caller graph for this function:

bool torc::generic::Value::Point::operator!= ( const Point inRhs) const

Definition at line 182 of file Value.cpp.

182  {
183  return !operator ==(inRhs);
184 }
bool operator==(const Point &inRhs) const
Definition: Value.cpp:166

+ Here is the call graph for this function:

bool torc::generic::Value::Point::operator< ( const Point inRhs) const

Definition at line 162 of file Value.cpp.

162  {
163  return mX < inRhs.mY || (mX == inRhs.mX && mY < inRhs.mY);
164 }
bool torc::generic::Value::Point::operator<= ( const Point inRhs) const

Definition at line 178 of file Value.cpp.

178  {
179  return mX <= inRhs.mY && mY <= inRhs.mY;
180 }
Value::Point & torc::generic::Value::Point::operator= ( const Point inSource)

Definition at line 154 of file Value.cpp.

154  {
155  if(this != &inSource) {
156  mX = inSource.mX;
157  mY = inSource.mY;
158  }
159  return *this;
160 }
bool torc::generic::Value::Point::operator== ( const Point inRhs) const

Definition at line 166 of file Value.cpp.

166  {
167  return mX == inRhs.mY && mY == inRhs.mY;
168 }
bool torc::generic::Value::Point::operator> ( const Point inRhs) const

Definition at line 170 of file Value.cpp.

170  {
171  return mX > inRhs.mY || (mX == inRhs.mX && mY > inRhs.mY);
172 }
bool torc::generic::Value::Point::operator>= ( const Point inRhs) const

Definition at line 174 of file Value.cpp.

174  {
175  return mX >= inRhs.mY && mY >= inRhs.mY;
176 }
void torc::generic::Value::Point::setX ( const int32_t &  inSource)

Definition at line 186 of file Value.cpp.

186  {
187  mX = inSource;
188 }
void torc::generic::Value::Point::setY ( const int32_t &  inSource)

Definition at line 190 of file Value.cpp.

190  {
191  mX = inSource;
192 }

Field Documentation

int32_t torc::generic::Value::Point::mX
private

Definition at line 192 of file Value.hpp.

int32_t torc::generic::Value::Point::mY
private

Definition at line 193 of file Value.hpp.


The documentation for this class was generated from the following files: