scsolver::ConstraintAddress Class Reference

#include <lpbuilder.hxx>

List of all members.

Public Member Functions

 ConstraintAddress ()
 ConstraintAddress (const ConstraintAddress &)
 ~ConstraintAddress () throw ()
bool equals (const ConstraintAddress &) const
bool operator== (const ConstraintAddress &) const
::com::sun::star::table::CellAddress getLeftCellAddr () const
void setLeftCellAddr (const ::com::sun::star::table::CellAddress &addr)
::com::sun::star::table::CellAddress getRightCellAddr () const
void setRightCellAddr (const ::com::sun::star::table::CellAddress &addr)
double getLeftCellValue () const
double getRightCellValue () const
void setLeftCellValue (double value)
void setRightCellValue (double value)
bool isLeftCellNumeric () const
bool isRightCellNumeric () const
numeric::EqualityType getEquality () const
void setEquality (numeric::EqualityType eq)

Private Attributes

::com::sun::star::table::CellAddress Left
::com::sun::star::table::CellAddress Right
numeric::EqualityType Equal
bool m_bIsLHSNumber:1
bool m_bIsRHSNumber:1
double m_fLHSValue
double m_fRHSValue


Detailed Description

This is a container class that holds the 3D addresses of cells that respectively contain the left and right hand side of the constraint formula and its equality.

Definition at line 50 of file lpbuilder.hxx.


Constructor & Destructor Documentation

scsolver::ConstraintAddress::ConstraintAddress (  ) 

Definition at line 93 of file lpbuilder.cxx.

scsolver::ConstraintAddress::ConstraintAddress ( const ConstraintAddress aOther  ) 

Definition at line 101 of file lpbuilder.cxx.

scsolver::ConstraintAddress::~ConstraintAddress (  )  throw ()

Definition at line 108 of file lpbuilder.cxx.


Member Function Documentation

bool scsolver::ConstraintAddress::equals ( const ConstraintAddress aOther  )  const

Definition at line 112 of file lpbuilder.cxx.

References Left, m_bIsLHSNumber, m_bIsRHSNumber, m_fLHSValue, m_fRHSValue, and Right.

Referenced by operator==().

bool scsolver::ConstraintAddress::operator== ( const ConstraintAddress aOther  )  const

Definition at line 142 of file lpbuilder.cxx.

References equals().

table::CellAddress scsolver::ConstraintAddress::getLeftCellAddr (  )  const

Definition at line 147 of file lpbuilder.cxx.

References Left.

void scsolver::ConstraintAddress::setLeftCellAddr ( const ::com::sun::star::table::CellAddress &  addr  ) 

Referenced by scsolver::SolveModelImpl::resolveConstraintAddress().

table::CellAddress scsolver::ConstraintAddress::getRightCellAddr (  )  const

Definition at line 158 of file lpbuilder.cxx.

References Right.

void scsolver::ConstraintAddress::setRightCellAddr ( const ::com::sun::star::table::CellAddress &  addr  ) 

Referenced by scsolver::SolveModelImpl::resolveConstraintAddress().

double scsolver::ConstraintAddress::getLeftCellValue (  )  const

Definition at line 169 of file lpbuilder.cxx.

References m_fLHSValue.

double scsolver::ConstraintAddress::getRightCellValue (  )  const

Definition at line 174 of file lpbuilder.cxx.

References m_fRHSValue.

void scsolver::ConstraintAddress::setLeftCellValue ( double  value  ) 

Definition at line 179 of file lpbuilder.cxx.

References m_bIsLHSNumber, and m_fLHSValue.

Referenced by scsolver::SolveModelImpl::resolveConstraintAddress().

void scsolver::ConstraintAddress::setRightCellValue ( double  value  ) 

Definition at line 185 of file lpbuilder.cxx.

References m_bIsRHSNumber, and m_fRHSValue.

Referenced by scsolver::SolveModelImpl::resolveConstraintAddress().

bool scsolver::ConstraintAddress::isLeftCellNumeric (  )  const

Definition at line 191 of file lpbuilder.cxx.

References m_bIsLHSNumber.

bool scsolver::ConstraintAddress::isRightCellNumeric (  )  const

Definition at line 196 of file lpbuilder.cxx.

References m_bIsRHSNumber.

numeric::EqualityType scsolver::ConstraintAddress::getEquality (  )  const

Definition at line 201 of file lpbuilder.cxx.

References Equal.

void scsolver::ConstraintAddress::setEquality ( numeric::EqualityType  eq  ) 

Definition at line 206 of file lpbuilder.cxx.

References Equal.

Referenced by scsolver::SolveModelImpl::resolveConstraintAddress().


Member Data Documentation

::com::sun::star::table::CellAddress scsolver::ConstraintAddress::Left [private]

Definition at line 77 of file lpbuilder.hxx.

Referenced by equals(), and getLeftCellAddr().

::com::sun::star::table::CellAddress scsolver::ConstraintAddress::Right [private]

Definition at line 78 of file lpbuilder.hxx.

Referenced by equals(), and getRightCellAddr().

numeric::EqualityType scsolver::ConstraintAddress::Equal [private]

Definition at line 79 of file lpbuilder.hxx.

Referenced by getEquality(), and setEquality().

bool scsolver::ConstraintAddress::m_bIsLHSNumber [private]

Definition at line 81 of file lpbuilder.hxx.

Referenced by equals(), isLeftCellNumeric(), and setLeftCellValue().

bool scsolver::ConstraintAddress::m_bIsRHSNumber [private]

Definition at line 82 of file lpbuilder.hxx.

Referenced by equals(), isRightCellNumeric(), and setRightCellValue().

double scsolver::ConstraintAddress::m_fLHSValue [private]

Definition at line 83 of file lpbuilder.hxx.

Referenced by equals(), getLeftCellValue(), and setLeftCellValue().

double scsolver::ConstraintAddress::m_fRHSValue [private]

Definition at line 84 of file lpbuilder.hxx.

Referenced by equals(), getRightCellValue(), and setRightCellValue().


The documentation for this class was generated from the following files:
Generated on Mon Jul 28 09:13:47 2008 for scsolver by  doxygen 1.5.3