#ifndef INCLUDED_List
#define INCLUDED_List

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

HX_DECLARE_CLASS0(List)


class HXCPP_CLASS_ATTRIBUTES  List_obj : public hx::Object{
	public:
		typedef hx::Object super;
		typedef List_obj OBJ_;
		List_obj();
		Void __construct();

	public:
		inline void *operator new( size_t inSize, bool inContainer=true)
			{ return hx::Object::operator new(inSize,inContainer); }
		static hx::ObjectPtr< List_obj > __new();
		static Dynamic __CreateEmpty();
		static Dynamic __Create(hx::DynamicArray inArgs);
		//~List_obj();

		HX_DO_RTTI;
		static void __boot();
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		::String __ToString() const { return HX_CSTRING("List"); }

		Dynamic h;
		Dynamic q;
		int length;
		virtual Void push( Dynamic item);
		Dynamic push_dyn();

		virtual bool remove( Dynamic v);
		Dynamic remove_dyn();

		virtual Dynamic iterator( );
		Dynamic iterator_dyn();

};


#endif /* INCLUDED_List */ 
