#include <Constraint.h>
Ograniczenia reprezentowane są w postaci (nie)równości, np.:
x^2 + y - 1 <= 0
Typ ograniczenia określa kierunek nierówności (bądź równość) a funkcja lewą stronę wyrażenia.
Typy publiczne | |
typedef vector< Constraint > | Container |
Typ do przechowywania ograniczeń. | |
enum | ConstraintType { EQUAL, LESS_EQUAL_THAN, GREATER_EQUAL_THAN } |
Typ ograniczenia. Więcej... | |
Metody publiczne | |
Constraint (void) | |
Konstruktor domyślny. | |
Constraint (const Constraint &from) | |
Konstruktor kopiujący. | |
Constraint (std::auto_ptr< const FunctionBase > apFunction, ConstraintType type) | |
Konstruktor. | |
virtual | ~Constraint (void) |
Destruktor. | |
Constraint & | operator= (const Constraint &from) |
Operator przypisania. | |
double | Value (const ColumnVector &point) const |
Zwraca wartość ograniczenia w punkcie. | |
bool | IsValid (const ColumnVector &point, bool includeBoundary=true, double tolerance=0.001) const |
Sprawdza, czy dany punkt spełnia ograniczenie. | |
Constraint | DeepCopy () const |
Wykonuje kopię ograniczenia wraz ze sklonowaniem funkcji. | |
const FunctionBase & | Function () const |
Zwraca funkcję ograniczenia (lewą stronę). | |
const ConstraintType | Type () const |
Zwraca typ ograniczenia. | |
wxString | ToString (bool full=true) const |
Zwraca reprezentację tekstową ograniczenia. | |
Atrybuty chronione | |
CountedPtr< const FunctionBase > | mcpFunction |
Funkcja opisująca ograniczenie. | |
ConstraintType | mType |
Typ ograniczenia. | |
Przyjaciele | |
class | ConstraintDialog |
Okno dialogowe edycji ograniczenia. | |
Komponenty | |
class | ProblemSetter |
|
Typ ograniczenia.
|
|
Konstruktor kopiujący.
|
|
Konstruktor.
|
|
Sprawdza, czy dany punkt spełnia ograniczenie.
|
|
Operator przypisania.
|