home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tlx501.zip / SRC / CONAC6.CPP < prev    next >
C/C++ Source or Header  |  1996-01-05  |  4KB  |  117 lines

  1. /****************************************************************************
  2.     $Id: conac6.cpp 501.0 1995/03/07 12:26:10 RON Exp $
  3.  
  4.     Copyright (c) 1991-95 Tarma Software Research. All rights reserved.
  5.  
  6.     Project:    Tarma Library for C++ V5.0
  7.     Author:    Ron van der Wal
  8.  
  9.     Implementation of class TLConstraintAC6.
  10.  
  11.     $Log: conac6.cpp $
  12.     Revision 501.0  1995/03/07 12:26:10  RON
  13.     Updated for TLX 5.01
  14.     Revision 1.8  1995/01/31 16:30:06  RON
  15.     Update for release 012
  16.     Added partial support for SunPro C++ compiler
  17.     Revision 1.7  1995/01/06  15:57:30  ron
  18.     Corrected Revision keyword
  19.  
  20.     Revision 1.6  1994/11/16  15:37:39  ron
  21.     Added module info; rearranged #include directives
  22.  
  23.     Revision 1.5  1994/10/10  16:47:02  ron
  24.     Changed to <tlx\solve\ac6.h>
  25.  
  26.     Revision 1.4  1994/09/28  14:16:07  ron
  27.     Removed Macintosh-style #include references
  28.  
  29.     Revision 1.3  1994/09/27  20:22:06  ron
  30.     Changed path separator from / to \
  31.  
  32.     Revision 1.2  1994/09/26  15:40:45  ron
  33.     Changed include file references
  34.  
  35.     Revision 1.1  1994/08/16  18:12:56  ron
  36.     Initial revision
  37.  
  38. ****************************************************************************/
  39.  
  40. #include <tlx\501\_build.h>
  41.  
  42. TLX_MODULE_INFO("$Revision: 501.0 $");
  43.  
  44. #include <tlx\501\solve\ac6.h>
  45.  
  46. /*-------------------------------------------------------------------------*/
  47.     TLConstraintAC6::TLConstraintAC6
  48.     (
  49.         TLVariableAC6 &    aVar1,
  50.     TLVariableAC6 &    aVar2
  51.     )
  52.  
  53. /*  Constructor.
  54. ---------------------------------------------------------------------------*/
  55. : TLBinCon(aVar1, aVar2)
  56. {
  57. }
  58.  
  59. /*-------------------------------------------------------------------------*/
  60.     TLVariableAC6 &TLConstraintAC6::OppositeOf(TLVariableAC6 &aVar)
  61.  
  62. /*  Returns the variable that is the opposite of the given one in the
  63.     constraint.
  64. ---------------------------------------------------------------------------*/
  65. {
  66.     return DYNACAST(TLVariableAC6 &, TLBinCon::OppositeOf(aVar));
  67. }
  68.  
  69. /*-------------------------------------------------------------------------*/
  70.     const TLVariableAC6 &TLConstraintAC6::OppositeOf
  71.     (
  72.         const TLVariableAC6 &    aVar
  73.     ) const
  74.  
  75. /*  Returns the variable that is the opposite of the given one in the
  76.     constraint.
  77. ---------------------------------------------------------------------------*/
  78. {
  79.     return DYNACAST(const TLVariableAC6 &, TLBinCon::OppositeOf(aVar));
  80. }
  81.  
  82. /*-------------------------------------------------------------------------*/
  83.     TLVariableAC6 &TLConstraintAC6::Var1()
  84.  
  85. /*  Returns a reference to the first variable, with an appropriate type cast.
  86. ---------------------------------------------------------------------------*/
  87. {
  88.     return DYNACAST(TLVariableAC6 &, TLBinCon::Var1());
  89. }
  90.  
  91. /*-------------------------------------------------------------------------*/
  92.     const TLVariableAC6 &TLConstraintAC6::Var1() const
  93.  
  94. /*  Returns a reference to the first variable, with an appropriate type cast.
  95. ---------------------------------------------------------------------------*/
  96. {
  97.     return DYNACAST(const TLVariableAC6 &, TLBinCon::Var1());
  98. }
  99.  
  100. /*-------------------------------------------------------------------------*/
  101.     TLVariableAC6 &TLConstraintAC6::Var2()
  102.  
  103. /*  Returns a reference to the second variable, with an appropriate type cast.
  104. ---------------------------------------------------------------------------*/
  105. {
  106.     return DYNACAST(TLVariableAC6 &, TLBinCon::Var2());
  107. }
  108.  
  109. /*-------------------------------------------------------------------------*/
  110.     const TLVariableAC6 &TLConstraintAC6::Var2() const
  111.  
  112. /*  Returns a reference to the second variable, with an appropriate type cast.
  113. ---------------------------------------------------------------------------*/
  114. {
  115.     return DYNACAST(const TLVariableAC6 &, TLBinCon::Var2());
  116. }
  117.