scs
IntroductionThe Spatial Constraint System class. DiscussionDerived constraint systems inherit the functionality of this class. It implements spatial functions with property-checking on them. (Note: Function indexes are positive non-zero numbers). Member Functions
f_propertiesChecks whether a function satisfies a certain property. protected Parameters
Return Value
Complexity O(n) if print_funcGeneric printer for an STL map structure. protected ParametersComplexity O(n) where n is the number of elements of the CS. print_sfuncPrints (on protected ParametersComplexity O(n) where n is the number of elements of the CS. sGets the image of element public ParametersReturn Valuesᵢ(c) Complexity Constant. s_invGets the inverse image of element public ParametersReturn Valuesᵢ-1(c) Complexity O(n) where n is the number of elements of the CS. s_mapsᵢ( public ParametersDiscussionThe function will do nothing if the elements or the image are not in the elements of the CS. Complexity O(n) where n is the number of elements to map. s_propertiesChecks whether the space function protected Parameters
Return Value
Complexity O(n) if scs(const cs &, unsigned int)Constructor. ParametersDiscussionThis constructor will automatically map the global infima to itself in all space functions. This means that the axiom of emptiness S.1 will be automtically satisfied at creation. Complexity Constant. scs(const scs &)Copy Constructor. ParametersComplexity Constant. ~scsDestructor. public Complexity Constant. Typedefs
FUNCTION_PROPERTYEnumeration of possible properties of a function. protected Discussioncan be - FP_TOTAL: function is total (i.e. every domain element is mapped). - FP_SURJECTIVE: function is surjective (i.e. every codomain element is mapped to, also called onto). - FP_INJECTIVE: function is injective (i.e. at most one element of the domain is mapped to an element of the codamin, also called a one-to-one function). - FP_BIJECTIVE: function is bijective (i.e. function is injective and surjective, a one-to-one correspondence). - FP_JOIN_DISTRIBUTIVE: function distributes over finite joins (i.e. it satisfies S.2). - FP_MEET_DISTRIBUTIVE: function distributes over finite meets (i.e. it satisfies sᵢ(c ⨅ d) = sᵢ(c) ⨅ sᵢ(d) for every element c and d of the CS). S_FUNCTION_PROPERTYEnumeration of possible properties of a space function. public Discussioneach property has a one-on-one correspondance with the properties specified in FUNCTION_PROPERTY Member Datas_funcprotected DiscussionVector containing the space functions of the CS. |