#include <armagetronad_wrap.h>
Public Member Functions | |
SwigDirector_NNetObject (VALUE self, int owner=-1) | |
SwigDirector_NNetObject (VALUE self, nMessage &m) | |
virtual void | AddRef () |
virtual void | Release () |
virtual void | ReleaseOwnership () |
virtual void | TakeOwnership () |
virtual void | Dump (tConsole &con) |
virtual nDescriptor & | CreatorDescriptor () const |
virtual void | InitAfterCreation () |
virtual | ~SwigDirector_NNetObject () |
virtual nMachine & | DoGetMachine () const |
returns the machine this object belongs to | |
virtual nMachine & | DoGetMachineSwigPublic () const |
virtual bool | ActionOnQuit () |
virtual void | ActionOnDelete () |
virtual bool | BroadcastExistence () |
virtual void | PrintName (tString &s) const |
virtual bool | ClearToTransmit (int user) const |
virtual void | WriteSync (nMessage &m) |
virtual void | ReadSync (nMessage &m) |
virtual bool | SyncIsNew (nMessage &m) |
virtual void | WriteCreate (nMessage &m) |
virtual void | ReceiveControlNet (nMessage &m) |
virtual bool | AcceptClientSync () const |
Definition at line 38 of file armagetronad_wrap.h.
SwigDirector_NNetObject::SwigDirector_NNetObject | ( | VALUE | self, | |
int | owner = -1 | |||
) |
Definition at line 2478 of file armagetronad_wrap.cxx.
02478 : nNetObject(owner), Swig::Director(self) { 02479 02480 }
SwigDirector_NNetObject::SwigDirector_NNetObject | ( | VALUE | self, | |
nMessage & | m | |||
) |
Definition at line 2484 of file armagetronad_wrap.cxx.
02484 : nNetObject(m), Swig::Director(self) { 02485 02486 }
SwigDirector_NNetObject::~SwigDirector_NNetObject | ( | ) | [virtual] |
void SwigDirector_NNetObject::AddRef | ( | void | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2490 of file armagetronad_wrap.cxx.
References NULL.
02490 { 02491 VALUE result; 02492 02493 result = rb_funcall(swig_get_self(), rb_intern("add_ref"), 0, NULL); 02494 }
void SwigDirector_NNetObject::Release | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2497 of file armagetronad_wrap.cxx.
References NULL.
02497 { 02498 VALUE result; 02499 02500 result = rb_funcall(swig_get_self(), rb_intern("release"), 0, NULL); 02501 }
void SwigDirector_NNetObject::ReleaseOwnership | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2504 of file armagetronad_wrap.cxx.
References NULL.
02504 { 02505 VALUE result; 02506 02507 result = rb_funcall(swig_get_self(), rb_intern("release_ownership"), 0, NULL); 02508 }
void SwigDirector_NNetObject::TakeOwnership | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2511 of file armagetronad_wrap.cxx.
References NULL.
02511 { 02512 VALUE result; 02513 02514 result = rb_funcall(swig_get_self(), rb_intern("take_ownership"), 0, NULL); 02515 }
void SwigDirector_NNetObject::Dump | ( | tConsole & | con | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2518 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_tConsole.
02518 { 02519 VALUE obj0 = Qnil ; 02520 VALUE result; 02521 02522 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&con), SWIGTYPE_p_tConsole, 0 ); 02523 result = rb_funcall(swig_get_self(), rb_intern("dump"), 1,obj0); 02524 }
nDescriptor & SwigDirector_NNetObject::CreatorDescriptor | ( | void | ) | const [virtual] |
Implements nNetObject.
Definition at line 2527 of file armagetronad_wrap.cxx.
References NULL, SWIG_ArgError, SWIG_as_voidptr, SWIG_ConvertPtrAndOwn, SWIG_ErrorType, SWIG_IsOK, swig_owntype, SWIG_POINTER_DISOWN, SWIG_ValueError, and SWIGTYPE_p_nDescriptor.
02527 { 02528 nDescriptor *c_result ; 02529 VALUE result; 02530 void *swig_argp ; 02531 int swig_res ; 02532 swig_owntype own ; 02533 02534 result = rb_funcall(swig_get_self(), rb_intern("creator_descriptor"), 0, NULL); 02535 swig_res = SWIG_ConvertPtrAndOwn(result, &swig_argp, SWIGTYPE_p_nDescriptor, 0 | SWIG_POINTER_DISOWN, &own); 02536 if (!SWIG_IsOK(swig_res)) { 02537 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""nDescriptor &""'"); 02538 } 02539 if (!swig_argp) { 02540 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ValueError), "invalid null reference " "in output value of type '""nDescriptor &""'"); 02541 } 02542 c_result = reinterpret_cast< nDescriptor * >(swig_argp); 02543 swig_acquire_ownership_obj(SWIG_as_voidptr(c_result), own); 02544 return (nDescriptor &) *c_result; 02545 }
void SwigDirector_NNetObject::InitAfterCreation | ( | void | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2548 of file armagetronad_wrap.cxx.
References NULL.
02548 { 02549 VALUE result; 02550 02551 result = rb_funcall(swig_get_self(), rb_intern("init_after_creation"), 0, NULL); 02552 }
nMachine & SwigDirector_NNetObject::DoGetMachine | ( | void | ) | const [virtual] |
returns the machine this object belongs to
Reimplemented from nNetObject.
Definition at line 2558 of file armagetronad_wrap.cxx.
References NULL, SWIG_ArgError, SWIG_as_voidptr, SWIG_ConvertPtrAndOwn, SWIG_ErrorType, SWIG_IsOK, swig_owntype, SWIG_POINTER_DISOWN, SWIG_ValueError, and SWIGTYPE_p_nMachine.
02558 { 02559 nMachine *c_result ; 02560 VALUE result; 02561 void *swig_argp ; 02562 int swig_res ; 02563 swig_owntype own ; 02564 02565 result = rb_funcall(swig_get_self(), rb_intern("do_get_machine"), 0, NULL); 02566 swig_res = SWIG_ConvertPtrAndOwn(result, &swig_argp, SWIGTYPE_p_nMachine, 0 | SWIG_POINTER_DISOWN, &own); 02567 if (!SWIG_IsOK(swig_res)) { 02568 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""nMachine &""'"); 02569 } 02570 if (!swig_argp) { 02571 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ValueError), "invalid null reference " "in output value of type '""nMachine &""'"); 02572 } 02573 c_result = reinterpret_cast< nMachine * >(swig_argp); 02574 swig_acquire_ownership_obj(SWIG_as_voidptr(c_result), own); 02575 return (nMachine &) *c_result; 02576 }
virtual nMachine& SwigDirector_NNetObject::DoGetMachineSwigPublic | ( | ) | const [inline, virtual] |
Definition at line 52 of file armagetronad_wrap.h.
References nNetObject::DoGetMachine().
Referenced by _wrap_NNetObject_do_get_machine().
00052 { 00053 return nNetObject::DoGetMachine(); 00054 }
bool SwigDirector_NNetObject::ActionOnQuit | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2579 of file armagetronad_wrap.cxx.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, and SWIG_IsOK.
02579 { 02580 bool c_result ; 02581 VALUE result; 02582 02583 result = rb_funcall(swig_get_self(), rb_intern("action_on_quit"), 0, NULL); 02584 bool swig_val; 02585 int swig_res = SWIG_AsVal_bool(result, &swig_val); 02586 if (!SWIG_IsOK(swig_res)) { 02587 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); 02588 } 02589 c_result = static_cast< bool >(swig_val); 02590 return (bool) c_result; 02591 }
void SwigDirector_NNetObject::ActionOnDelete | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2594 of file armagetronad_wrap.cxx.
References NULL.
02594 { 02595 VALUE result; 02596 02597 result = rb_funcall(swig_get_self(), rb_intern("action_on_delete"), 0, NULL); 02598 }
bool SwigDirector_NNetObject::BroadcastExistence | ( | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2601 of file armagetronad_wrap.cxx.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, and SWIG_IsOK.
02601 { 02602 bool c_result ; 02603 VALUE result; 02604 02605 result = rb_funcall(swig_get_self(), rb_intern("broadcast_existence"), 0, NULL); 02606 bool swig_val; 02607 int swig_res = SWIG_AsVal_bool(result, &swig_val); 02608 if (!SWIG_IsOK(swig_res)) { 02609 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); 02610 } 02611 c_result = static_cast< bool >(swig_val); 02612 return (bool) c_result; 02613 }
void SwigDirector_NNetObject::PrintName | ( | tString & | s | ) | const [virtual] |
Reimplemented from nNetObject.
Definition at line 2616 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_tString.
02616 { 02617 VALUE obj0 = Qnil ; 02618 VALUE result; 02619 02620 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&s), SWIGTYPE_p_tString, 0 ); 02621 result = rb_funcall(swig_get_self(), rb_intern("print_name"), 1,obj0); 02622 }
bool SwigDirector_NNetObject::ClearToTransmit | ( | int | user | ) | const [virtual] |
Reimplemented from nNetObject.
Definition at line 2625 of file armagetronad_wrap.cxx.
References SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_From_int(), and SWIG_IsOK.
02625 { 02626 bool c_result ; 02627 VALUE obj0 = Qnil ; 02628 VALUE result; 02629 02630 obj0 = SWIG_From_int(static_cast< int >(user)); 02631 result = rb_funcall(swig_get_self(), rb_intern("clear_to_transmit"), 1,obj0); 02632 bool swig_val; 02633 int swig_res = SWIG_AsVal_bool(result, &swig_val); 02634 if (!SWIG_IsOK(swig_res)) { 02635 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); 02636 } 02637 c_result = static_cast< bool >(swig_val); 02638 return (bool) c_result; 02639 }
void SwigDirector_NNetObject::WriteSync | ( | nMessage & | m | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2642 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_nMessage.
02642 { 02643 VALUE obj0 = Qnil ; 02644 VALUE result; 02645 02646 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&m), SWIGTYPE_p_nMessage, 0 ); 02647 result = rb_funcall(swig_get_self(), rb_intern("write_sync"), 1,obj0); 02648 }
void SwigDirector_NNetObject::ReadSync | ( | nMessage & | m | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2651 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_nMessage.
02651 { 02652 VALUE obj0 = Qnil ; 02653 VALUE result; 02654 02655 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&m), SWIGTYPE_p_nMessage, 0 ); 02656 result = rb_funcall(swig_get_self(), rb_intern("read_sync"), 1,obj0); 02657 }
bool SwigDirector_NNetObject::SyncIsNew | ( | nMessage & | m | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2660 of file armagetronad_wrap.cxx.
References SWIG_ArgError, SWIG_as_voidptr, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_IsOK, SWIG_NewPointerObj, and SWIGTYPE_p_nMessage.
02660 { 02661 bool c_result ; 02662 VALUE obj0 = Qnil ; 02663 VALUE result; 02664 02665 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&m), SWIGTYPE_p_nMessage, 0 ); 02666 result = rb_funcall(swig_get_self(), rb_intern("sync_is_new"), 1,obj0); 02667 bool swig_val; 02668 int swig_res = SWIG_AsVal_bool(result, &swig_val); 02669 if (!SWIG_IsOK(swig_res)) { 02670 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); 02671 } 02672 c_result = static_cast< bool >(swig_val); 02673 return (bool) c_result; 02674 }
void SwigDirector_NNetObject::WriteCreate | ( | nMessage & | m | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2677 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_nMessage.
02677 { 02678 VALUE obj0 = Qnil ; 02679 VALUE result; 02680 02681 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&m), SWIGTYPE_p_nMessage, 0 ); 02682 result = rb_funcall(swig_get_self(), rb_intern("write_create"), 1,obj0); 02683 }
void SwigDirector_NNetObject::ReceiveControlNet | ( | nMessage & | m | ) | [virtual] |
Reimplemented from nNetObject.
Definition at line 2686 of file armagetronad_wrap.cxx.
References SWIG_as_voidptr, SWIG_NewPointerObj, and SWIGTYPE_p_nMessage.
02686 { 02687 VALUE obj0 = Qnil ; 02688 VALUE result; 02689 02690 obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&m), SWIGTYPE_p_nMessage, 0 ); 02691 result = rb_funcall(swig_get_self(), rb_intern("receive_control_net"), 1,obj0); 02692 }
bool SwigDirector_NNetObject::AcceptClientSync | ( | ) | const [virtual] |
Reimplemented from nNetObject.
Definition at line 2695 of file armagetronad_wrap.cxx.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, and SWIG_IsOK.
02695 { 02696 bool c_result ; 02697 VALUE result; 02698 02699 result = rb_funcall(swig_get_self(), rb_intern("accept_client_sync"), 0, NULL); 02700 bool swig_val; 02701 int swig_res = SWIG_AsVal_bool(result, &swig_val); 02702 if (!SWIG_IsOK(swig_res)) { 02703 Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); 02704 } 02705 c_result = static_cast< bool >(swig_val); 02706 return (bool) c_result; 02707 }