Make kp_solve interface work again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40384 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "Tab.h"
|
||||
|
||||
|
||||
#define USE_SCALE_VARIABLE 1
|
||||
#define USE_SCALE_VARIABLE 0
|
||||
|
||||
|
||||
class Constraint;
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
BSize& preferred);
|
||||
void _UpdatePreferredHeightConstraint(
|
||||
BSize& preferred);
|
||||
|
||||
void _SetupPreferredConstraints();
|
||||
private:
|
||||
BLayoutItem* fLayoutItem;
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ public:
|
||||
bool RemoveVariable(Variable* variable,
|
||||
bool deleteVariable = true);
|
||||
int32 IndexOf(const Variable* variable) const;
|
||||
int32 GlobalIndexOf(const Variable* variable) const;
|
||||
bool UpdateRange(Variable* variable);
|
||||
|
||||
bool AddConstraint(Constraint* constraint);
|
||||
@@ -132,7 +133,8 @@ public:
|
||||
void GetString(BString& string) const;
|
||||
|
||||
const ConstraintList& Constraints() const;
|
||||
const VariableList& Variables() const;
|
||||
const VariableList& UsedVariables() const;
|
||||
const VariableList& AllVariables() const;
|
||||
|
||||
protected:
|
||||
friend class Constraint;
|
||||
|
||||
@@ -22,6 +22,7 @@ class Summand;
|
||||
class Variable {
|
||||
public:
|
||||
int32 Index() const;
|
||||
int32 GlobalIndex() const;
|
||||
LinearSpec* LS() const;
|
||||
double Value() const;
|
||||
void SetValue(double value);
|
||||
|
||||
Reference in New Issue
Block a user