Siena Simplification Library Documentation (v. 1.1.4) |
siena::constraint
.
More...
#include <ssimp_types.h>
Public Member Functions | |
Constraint (const std::string &name, siena::operator_id op, siena::bool_t b) | |
Constructs a boolean valued constraint with the specified name and operator. | |
Constraint (const std::string &name, siena::operator_id op, siena::double_t d) | |
Constructs a real valued constraint with the specified name and operator. | |
Constraint (const std::string &name, siena::operator_id op, siena::int_t i) | |
Constructs a integer valued constraint with the specified name and operator. | |
Constraint (const std::string &name, siena::operator_id op, const std::string &s) | |
Constructs a string valued constraint with the specified name and operator. | |
Constraint (const std::string &name) | |
Constructs a constraint with the ANY operator. | |
Constraint (const Constraint &c) | |
Copy constructor. | |
const Constraint & | operator= (const Constraint &c) |
Assignment operator. | |
bool | operator== (const Constraint &c) const |
Equals operator. | |
bool | operator< (const Constraint &c) const |
Less-than operator. | |
siena::bool_t | bool_value () const |
Returns the constraint's boolean value. | |
siena::double_t | double_value () const |
Returns the constraint's double value. | |
size_t | bytesize () const |
Returns the size of the constraint's payload in bytes. | |
siena::int_t | int_value () const |
Returns the constraint's integer value. | |
siena::string_t | name () const |
Returns the constraint's name. | |
siena::operator_id | op () const |
Returns the constraint's operator. | |
std::ostream & | sff (std::ostream &out) const |
outputs constraint in a close approximation to the sff input language. | |
std::string | str () const |
Returns a formatted representation of the constraint. This is intended to mostly be used for debugging and logging. | |
siena::string_t | string_value () const |
Returns the constraint's string value. | |
siena::type_id | type () const |
Returns the constraint's type. |
siena::constraint
.
|
Returns the constraint's boolean value.
If the constraint is not of type |
|
Returns the size of the constraint's payload in bytes.
This is defined as the number of characters in the constraint's name, plus the |
|
Returns the constraint's double value.
If the constraint is not of type |
|
Returns the constraint's integer value.
If the constraint is not of type |
|
Less-than operator. Compares the constraints using name, then operator_id, then value. |
|
Equals operator. Returns true if both constraints have the same name, operator, and value. |
|
Returns the constraint's string value.
If the constraint is not of type |
Copyright © 2001-2004 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Matthew J. Rutherford |