// Generated by Haxe 4.1.1
#ifndef INCLUDED_haxe_iterators_StringIterator
#define INCLUDED_haxe_iterators_StringIterator

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

HX_DECLARE_STACK_FRAME(_hx_pos_c6d547f8dc5a2e0b_31_new)
HX_DECLARE_CLASS2(haxe,iterators,StringIterator)

namespace haxe{
namespace iterators{


class HXCPP_CLASS_ATTRIBUTES StringIterator_obj : public ::hx::Object
{
	public:
		typedef ::hx::Object super;
		typedef StringIterator_obj OBJ_;
		StringIterator_obj();

	public:
		enum { _hx_ClassId = 0x09645c0e };

		void __construct(::String s);
		inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="haxe.iterators.StringIterator")
			{ return ::hx::Object::operator new(inSize,inContainer,inName); }
		inline void *operator new(size_t inSize, int extra)
			{ return ::hx::Object::operator new(inSize+extra,true,"haxe.iterators.StringIterator"); }

		inline static ::hx::ObjectPtr< StringIterator_obj > __new(::String s) {
			::hx::ObjectPtr< StringIterator_obj > __this = new StringIterator_obj();
			__this->__construct(s);
			return __this;
		}

		inline static ::hx::ObjectPtr< StringIterator_obj > __alloc(::hx::Ctx *_hx_ctx,::String s) {
			StringIterator_obj *__this = (StringIterator_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(StringIterator_obj), true, "haxe.iterators.StringIterator"));
			*(void **)__this = StringIterator_obj::_hx_vtable;
{
            	HX_STACKFRAME(&_hx_pos_c6d547f8dc5a2e0b_31_new)
HXLINE(  32)		( ( ::haxe::iterators::StringIterator)(__this) )->offset = 0;
HXLINE(  39)		( ( ::haxe::iterators::StringIterator)(__this) )->s = s;
            	}
		
			return __this;
		}

		static void * _hx_vtable;
		static Dynamic __CreateEmpty();
		static Dynamic __Create(::hx::DynamicArray inArgs);
		//~StringIterator_obj();

		HX_DO_RTTI_ALL;
		::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
		::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp);
		void __GetFields(Array< ::String> &outFields);
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		bool _hx_isInstanceOf(int inClassId);
		::String __ToString() const { return HX_("StringIterator",ff,7b,50,c8); }

		int offset;
		::String s;
		bool hasNext();
		::Dynamic hasNext_dyn();

		int next();
		::Dynamic next_dyn();

};

} // end namespace haxe
} // end namespace iterators

#endif /* INCLUDED_haxe_iterators_StringIterator */ 
