diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-29 12:04:50 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-04-29 12:04:50 +0200 |
commit | d48393410c37be7ff5fff6e224d175f58abdaa4a (patch) | |
tree | 56e3463641e53b7574cf20ed7088e83e4c323cca | |
parent | a59ef0359679f03b619cc20be072cad263a6b852 (diff) | |
download | ATCD-d48393410c37be7ff5fff6e224d175f58abdaa4a.tar.gz |
Use override, removed redundant void
* TAO/tao/RTScheduling/Current.h:
* TAO/tao/RTScheduling/RTScheduler_Initializer.h:
* TAO/tao/RTScheduling/RTScheduler_Loader.h:
* TAO/tao/RTScheduling/RTScheduler_Manager.h:
* TAO/tao/RTScheduling/Request_Interceptor.h:
-rw-r--r-- | TAO/tao/RTScheduling/Current.h | 77 | ||||
-rw-r--r-- | TAO/tao/RTScheduling/RTScheduler_Initializer.h | 4 | ||||
-rw-r--r-- | TAO/tao/RTScheduling/RTScheduler_Loader.h | 2 | ||||
-rw-r--r-- | TAO/tao/RTScheduling/RTScheduler_Manager.h | 2 | ||||
-rw-r--r-- | TAO/tao/RTScheduling/Request_Interceptor.h | 28 |
5 files changed, 54 insertions, 59 deletions
diff --git a/TAO/tao/RTScheduling/Current.h b/TAO/tao/RTScheduling/Current.h index 6909f5cd262..87959bbc07a 100644 --- a/TAO/tao/RTScheduling/Current.h +++ b/TAO/tao/RTScheduling/Current.h @@ -80,56 +80,55 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current void init (TAO_ORB_Core* orb); - virtual RTCORBA::Priority the_priority (); + RTCORBA::Priority the_priority () override; - virtual void the_priority (RTCORBA::Priority the_priority); + void the_priority (RTCORBA::Priority the_priority) override; void rt_current (RTCORBA::Current_ptr rt_current); - virtual void begin_scheduling_segment + void begin_scheduling_segment (const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param); + CORBA::Policy_ptr implicit_sched_param) override; - virtual void update_scheduling_segment + void update_scheduling_segment (const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param); + CORBA::Policy_ptr implicit_sched_param) override; - virtual void end_scheduling_segment (const char * name); + void end_scheduling_segment (const char * name) override; - virtual RTScheduling::DistributableThread_ptr - lookup(const RTScheduling::Current::IdType & id); + RTScheduling::DistributableThread_ptr + lookup(const RTScheduling::Current::IdType & id) override; // returns a null reference if // the distributable thread is // not known to the local scheduler - - virtual RTScheduling::DistributableThread_ptr + RTScheduling::DistributableThread_ptr spawn (RTScheduling::ThreadAction_ptr start, CORBA::VoidData data, const char* name, CORBA::Policy_ptr sched_param, CORBA::Policy_ptr implicit_sched_param, CORBA::ULong stack_size, - RTCORBA::Priority base_priority); + RTCORBA::Priority base_priority) override; - virtual ::RTScheduling::Current::IdType *id (void); + ::RTScheduling::Current::IdType *id () override; - virtual ::CORBA::Policy_ptr scheduling_parameter (void); + ::CORBA::Policy_ptr scheduling_parameter () override; - virtual ::CORBA::Policy_ptr implicit_scheduling_parameter (void); + ::CORBA::Policy_ptr implicit_scheduling_parameter () override; - virtual ::RTScheduling::Current::NameList * - current_scheduling_segment_names (void); + ::RTScheduling::Current::NameList * + current_scheduling_segment_names () override; - TAO_RTScheduler_Current_i* implementation (void); + TAO_RTScheduler_Current_i* implementation (); TAO_RTScheduler_Current_i* implementation (TAO_RTScheduler_Current_i*); - TAO_ORB_Core* orb (void); + TAO_ORB_Core* orb (); - DT_Hash_Map* dt_hash (void); + DT_Hash_Map* dt_hash (); /** * @name Reference Related Methods @@ -163,11 +162,10 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current_var : private TAO_Base_var { public: - - TAO_RTScheduler_Current_var (void); // default constructor + TAO_RTScheduler_Current_var (); // default constructor TAO_RTScheduler_Current_var (TAO_RTScheduler_Current_ptr p) : ptr_ (p) {} TAO_RTScheduler_Current_var (const TAO_RTScheduler_Current_var &); // copy constructor - ~TAO_RTScheduler_Current_var (void); // destructor + ~TAO_RTScheduler_Current_var (); // destructor TAO_RTScheduler_Current_var &operator= (TAO_RTScheduler_Current_ptr); TAO_RTScheduler_Current_var &operator= (const TAO_RTScheduler_Current_var &); @@ -177,9 +175,9 @@ public: operator TAO_RTScheduler_Current_ptr &(); // in, inout, out, _retn TAO_RTScheduler_Current_ptr in () const; - TAO_RTScheduler_Current_ptr &inout (void); - TAO_RTScheduler_Current_ptr &out (void); - TAO_RTScheduler_Current_ptr _retn (void); + TAO_RTScheduler_Current_ptr &inout (); + TAO_RTScheduler_Current_ptr &out (); + TAO_RTScheduler_Current_ptr _retn (); TAO_RTScheduler_Current_ptr ptr () const; // Hooks used by template sequence and object manager classes @@ -234,40 +232,40 @@ public: virtual void end_scheduling_segment (const char * name); - virtual RTScheduling::Current::IdType *id (void); + virtual RTScheduling::Current::IdType *id (); void id (RTScheduling::Current::IdType guid); - virtual CORBA::Policy_ptr scheduling_parameter (void); + virtual CORBA::Policy_ptr scheduling_parameter (); - virtual CORBA::Policy_ptr implicit_scheduling_parameter (void); + virtual CORBA::Policy_ptr implicit_scheduling_parameter (); void scheduling_parameter (CORBA::Policy_ptr); void implicit_scheduling_parameter (CORBA::Policy_ptr); virtual RTScheduling::Current::NameList * - current_scheduling_segment_names (void); + current_scheduling_segment_names (); - void cancel_thread (void); + void cancel_thread (); - void cleanup_DT (void); + void cleanup_DT (); - void cleanup_current (void); + void cleanup_current (); - void delete_all_currents (void); + void delete_all_currents (); const char* name (void); void name (const char *); - TAO_ORB_Core* orb (void); + TAO_ORB_Core* orb (); - RTScheduling::Scheduler_ptr scheduler (void); + RTScheduling::Scheduler_ptr scheduler (); - DT_Hash_Map* dt_hash (void); + DT_Hash_Map* dt_hash (); - RTScheduling::DistributableThread_ptr DT (void); + RTScheduling::DistributableThread_ptr DT (); void DT (RTScheduling::DistributableThread_ptr); private: @@ -300,11 +298,10 @@ public: int activate_task (RTCORBA::Priority base_priority, CORBA::ULong stack_size); - virtual int svc (); + int svc () override; private: TAO_ORB_Core* orb_; - // DT_Hash_Map* dt_hash_; TAO_RTScheduler_Current_i* current_; RTScheduling::ThreadAction_var start_; CORBA::VoidData data_; diff --git a/TAO/tao/RTScheduling/RTScheduler_Initializer.h b/TAO/tao/RTScheduling/RTScheduler_Initializer.h index aca50cc312e..0ba5f293488 100644 --- a/TAO/tao/RTScheduling/RTScheduler_Initializer.h +++ b/TAO/tao/RTScheduling/RTScheduler_Initializer.h @@ -40,9 +40,9 @@ class TAO_RTScheduler_ORB_Initializer , public virtual ::CORBA::LocalObject { public: - virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info); + void pre_init (PortableInterceptor::ORBInitInfo_ptr info) override; - virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info); + void post_init (PortableInterceptor::ORBInitInfo_ptr info) override; private: TAO_RTScheduler_Current_var current_; diff --git a/TAO/tao/RTScheduling/RTScheduler_Loader.h b/TAO/tao/RTScheduling/RTScheduler_Loader.h index e90fc3515b3..8ca3432c6bb 100644 --- a/TAO/tao/RTScheduling/RTScheduler_Loader.h +++ b/TAO/tao/RTScheduling/RTScheduler_Loader.h @@ -37,7 +37,7 @@ public: virtual ~TAO_RTScheduler_Loader (); /// Initialize the RTScheduler loader hooks. - virtual int init (int argc, ACE_TCHAR* []); + int init (int argc, ACE_TCHAR* []) override; private: /// Set to true after init is called. diff --git a/TAO/tao/RTScheduling/RTScheduler_Manager.h b/TAO/tao/RTScheduling/RTScheduler_Manager.h index d0c9ba74930..61bf6f7a8b1 100644 --- a/TAO/tao/RTScheduling/RTScheduler_Manager.h +++ b/TAO/tao/RTScheduling/RTScheduler_Manager.h @@ -8,7 +8,6 @@ */ //============================================================================= - #ifndef TAO_RTSCHEDULER_MANAGER_H #define TAO_RTSCHEDULER_MANAGER_H @@ -21,7 +20,6 @@ class TAO_RTScheduler_Manager; class TAO_RTScheduler_Manager_var; typedef TAO_RTScheduler_Manager *TAO_RTScheduler_Manager_ptr; - /** * @class TAO_RTScheduler_Manager * diff --git a/TAO/tao/RTScheduling/Request_Interceptor.h b/TAO/tao/RTScheduling/Request_Interceptor.h index 879d73a7876..772cb6b9753 100644 --- a/TAO/tao/RTScheduling/Request_Interceptor.h +++ b/TAO/tao/RTScheduling/Request_Interceptor.h @@ -21,19 +21,19 @@ class TAO_RTScheduler_Export Client_Interceptor: { public: // Client_Interceptor (RTScheduling::Current_ptr current); - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); + void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri); + void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); + void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri); + void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri); + void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual char* name (void); + char* name () override; - virtual void destroy (void); + void destroy () override; static const IOP::ServiceId SchedulingInfo; }; @@ -45,19 +45,19 @@ class TAO_RTScheduler_Export Server_Interceptor : public: Server_Interceptor (TAO_RTScheduler_Current_ptr current); - virtual void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr ri); + void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri); + void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); + void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); + void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri); + void send_other (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual char* name (void); + char* name () override; - virtual void destroy (void); + void destroy () override; static const IOP::ServiceId SchedulingInfo; |