///home/berryj/link/bin/genMethods "-g" "-t" "Sequence<int>" "-h" "Collection" "-c" "int" "-I" "LINK/stkWrapper/SetFuncsWrapper.h" "-I" "LINK/basic/SetFuncs.h" "-I" "LINK/basic/Sequence.h" "-d" "basic" 
#include <stk.h>
#include <LINK/stkWrapper/LINK_STk.h>

#include <LINK/stkWrapper/SetFuncsWrapper.h>

#include <LINK/basic/SetFuncs.h>

#include <LINK/basic/Sequence.h>

#include <LINK/stkWrapper/Wrapper.h>
#include <LINK/stkWrapper/Register.h>
#include <LINK/stkWrapper/CollectionWrapper.h>


typedef Sequence<int> _Sequence_int_;
typedef Collection<Sequence<int> > _Collection_Sequence_int__;

#define _Collection_Sequence_int__DATA(x) ((Collection<Sequence<int> >*) (EXTDATA(x)))
#define _Collection_Sequence_int__IS_DATA(x) (TYPEP(x, tc_CXXwrapper) && \
		TYPEP(STk_slot_ref(x,val_scm), tc_CXXwrapper) && \
		(EXTID(STk_slot_ref(x,val_scm)) == Wrapper<Collection<Sequence<int> > >::type))
#define _Collection_Sequence_int__ISNT_DATA(x) (!_Collection_Sequence_int__IS_DATA(x))

#define _Collection_Sequence_int__CXX_DATA(x) (*(Collection<Sequence<int> >*) (EXTDATA(VAL(x))))
#define _Collection_Sequence_int__CXX_IS_DATA(x) (INSTANCEP(x) && \
		TYPEP(STk_slot_ref(x,val_scm), tc_CXXwrapper) && \
		(EXTID(STk_slot_ref(x,val_scm)) == Wrapper<Collection<Sequence<int> > >::type))
#define _Collection_Sequence_int__CXX_ISNT_DATA(x) (!_Collection_Sequence_int__CXX_IS_DATA(x))


PRIMITIVE STk_init__Collection_Sequence_int__()
{
	Wrapper<_Collection_Sequence_int__>::type = STk_new_CXXwrapper_id(
			Wrapper<_Collection_Sequence_int__>::name, 
			"",
			(void (*)(SCM x, SCM port, int mode))
			CollectionWrapper<_Sequence_int_>::displayTypedCollection,
			(void (*)(SCM x))CollectionWrapper<_Sequence_int_>::markTypedCollection,
			(void (*)(SCM x))CollectionWrapper<_Sequence_int_>::freeTypedCollection);
	Tcl_InitHashTable(&Register<_Collection_Sequence_int__>::objTable, TCL_ONE_WORD_KEYS);
	return UNDEFINED;
}

void genExtra_Collection_Sequence_int__Methods(void);

PRIMITIVE STk_init_methods__Collection_Sequence_int__()
{
	STk_add_new_cpp_primitive("collection-Sequence-int?", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collectionP);
	STk_add_new_cpp_primitive("mset-Sequence-int1", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::buildMSet);
	STk_add_new_cpp_primitive("set-Sequence-int1", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::buildSet);
	STk_add_new_cpp_primitive("sequence-Sequence-int1", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::buildSequence);
	STk_add_new_cpp_primitive("Collection-Sequence-int-sorted?", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::sortedLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-size", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::sizeLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-null?", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::nullLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-eqv?", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::eqvLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-<", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::lthLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-<=", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::leLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int->", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::grLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int->=", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::geLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-member", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::memberLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-clear!", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::clearLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-insert!", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::insertLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-append!", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::appendLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-remove!", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::removeLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-occurrences", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::occurrencesLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-ref", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::refLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-rank", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::rankLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-+", tc_subr_1_or_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::unionLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-^", tc_subr_1_or_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::intersectionLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int--", tc_subr_1_or_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::differenceLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-subset", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::subsetLinkCollection);
	STk_add_new_cpp_primitive("Collection-Sequence-int-proper-subset", tc_subr_2, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::properSubsetLinkCollection);
	STk_add_new_cpp_primitive("list->mset-Sequence-int", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::stkList2LinkMSet);
	STk_add_new_cpp_primitive("list->set-Sequence-int", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::stkList2LinkSet);
	STk_add_new_cpp_primitive("list->sequence-Sequence-int", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::stkList2LinkSequence);
	STk_add_new_cpp_primitive("mset-Sequence-int->list", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkList);
	STk_add_new_cpp_primitive("set-Sequence-int->list", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkList);
	STk_add_new_cpp_primitive("sequence-Sequence-int->list", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkList);
	STk_add_new_cpp_primitive("mset-Sequence-int->string", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkString);
	STk_add_new_cpp_primitive("set-Sequence-int->string", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkString);
	STk_add_new_cpp_primitive("sequence-Sequence-int->string", tc_subr_1, 
	(PRIMITIVE (*)(...))  CollectionWrapper<_Sequence_int_>::collection2STkString);
	STk_add_new_cpp_primitive("Collection-Sequence-int-cartesian-product", tc_subr_2, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::cartesianProduct);
	STk_add_new_cpp_primitive("Collection-Sequence-int-choose", tc_subr_2, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::choose);
	STk_add_new_cpp_primitive("Collection-Sequence-int-power-set", tc_subr_1, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::powerSet);
	STk_add_new_cpp_primitive("Collection-Sequence-int-permutations", tc_subr_1, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::permutations);
	STk_add_new_cpp_primitive("Collection-Sequence-int-permutation", tc_subr_2, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::permutation);
	STk_add_new_cpp_primitive("Collection-Sequence-int-permutation-rank", tc_subr_1, 
	(PRIMITIVE (*)(...))  SetFuncsWrapper<int >::rank);

	addListMethod("mset-Sequence-int",
		"mset-Sequence-int1", LINK_NEW);
	addListMethod("set-Sequence-int",
		"set-Sequence-int1", LINK_NEW);
	addListMethod("sequence-Sequence-int",
		"sequence-Sequence-int1", LINK_NEW);
	addOneArgMethod("null?",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-null?", LINK_OVL);
	addOneArgMethod("size",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-size", LINK_NEW);
	addTwoArgMethod("eqv?",
		Wrapper<_Collection_Sequence_int__ >::name, 
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-eqv?", LINK_OVL);
	addBooleanMethod("<",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-<", LINK_OVL);
	addBooleanMethod("<=",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-<=", LINK_OVL);
	addBooleanMethod(">",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int->", LINK_OVL);
	addBooleanMethod(">=",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int->=", LINK_OVL);
	addTwoArgMethod("member",
		Wrapper<_Sequence_int_ >::name, 
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-member", LINK_OVL);
	addTwoArgMethod("ref",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"<integer>",
		"Collection-Sequence-int-ref", LINK_NEW);
	addOneArgMethod("clear!",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-clear!", LINK_NEW);
	addTwoArgMethod("insert!",
		Wrapper<_Sequence_int_ >::name, 
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-insert!", LINK_NEW);
	addTwoArgMethod("append!",
		Wrapper<_Sequence_int_ >::name, 
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-append!", LINK_NEW);
	addTwoArgMethod("remove!",
		Wrapper<_Sequence_int_ >::name, 
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-remove!", LINK_NEW);
	addArbMethod("+",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-+", LINK_OVL);
	addArbMethod("^",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int-^", LINK_NEW);
	addArbMethod("-",
		Wrapper<_Collection_Sequence_int__ >::name, 
		"Collection-Sequence-int--", LINK_OVL);
	addTwoArgMethod("cartesian-product",
		Wrapper<_Sequence_int_ >::name, 
		Wrapper<_Sequence_int_ >::name, 
		"Collection-Sequence-int-cartesian-product", LINK_NEW);
	addTwoArgMethod("choose",
		Wrapper<_Sequence_int_ >::name, 
		"<integer>",
		"Collection-Sequence-int-choose", LINK_NEW);
	addOneArgMethod("power-set",
		Wrapper<_Sequence_int_ >::name, 
		"Collection-Sequence-int-power-set", LINK_NEW);
	addOneArgMethod("permutations",
		Wrapper<_Sequence_int_ >::name, 
		"Collection-Sequence-int-permutations", LINK_NEW);
	addTwoArgMethod("permutation",
		Wrapper<_Sequence_int_ >::name, 
		"<integer>",
		"Collection-Sequence-int-permutation", LINK_NEW);
	addOneArgMethod("permutation-rank",
		Wrapper<_Sequence_int_ >::name, 
		"Collection-Sequence-int-permutation-rank", LINK_NEW);
	genExtra_Collection_Sequence_int__Methods();
	return UNDEFINED;
}
