// GetEventByIndex returns a copy of the event, at the given index, in the events slice; it does not modify the event slice.
GetEventByIndex returns a copy of the event, at the given index, in the events slice; it does not modify the event slice.
// GetEventByIndex returns a copy of the event at the given index in the events slice ; it does not modify the event slice .
func (event_dispatcher EventDispatcher_struct) GetEventByIndex( index uint ) ( return_report error_report.ErrorReport_struct ){
	var event Event_struct;
	event_dispatcher.mutex.Lock();
	if( int(index) < len(event_dispatcher.events_slice) ){
		event = event_dispatcher.events_slice[index];
		return_report = error_report.New( 0, map[string]interface{}{ "event": event }, nil );
	} else{
		return_report = error_report.New( ERROR_CODE_INDEX_OUT_OF_RANGE, map[string]interface{}{ "message": "index out of range.", "events_slice_length": len(event_dispatcher.events_slice) }, nil );
	}
	event_dispatcher.mutex.Unlock();
	return return_report;
}
func ( event_dispatcher EventDispatcher_struct ) GetEventByIndex ( index uint ) ( return_report error_report . ErrorReport_struct ) { var event Event_struct ; event_dispatcher . mutex . Lock ( ) ; if ( int ( index ) < len ( event_dispatcher . events_slice ) ) { event = event_dispatcher . events_slice [ index ] ; return_report = error_report . New ( 0 , map [ string ] interface { } { " " : event } , nil ) ; } else { return_report = error_report . New ( ERROR_CODE_INDEX_OUT_OF_RANGE , map [ string ] interface { } { " " : " " , " " : len ( event_dispatcher . events_slice ) } , nil ) ; } event_dispatcher . mutex . Unlock ( ) ; return return_report ; }
GetEventByIndex returns a copy of the event, at the given index, in the events slice; it does not modify the event slice.
GetEventByIndex returns a copy of the event at the given index in the events slice ; it does not modify the event slice .
//Variables //Parametres //Function //Return