ANNA Suite  2020b
Multipurpose development suite for Telco applications
Allocator.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_comm_handler_Allocator_hpp
10 #define anna_comm_handler_Allocator_hpp
11 
12 namespace anna {
13 
14 namespace comm {
15 
16 class Communicator;
17 
18 namespace handler {
19 
20 template <typename _Handler> class Allocator {
21 public:
23 
24  static _Handler* create()
25  {
26  return new _Handler(st_communicator);
27  }
28  static void destroy(_Handler* t) { delete t; }
29 };
30 
31 }
32 }
33 }
34 
35 #endif
36 
static _Handler * create()
Definition: Allocator.hpp:24
Definition: Communicator.hpp:79
Definition: Allocator.hpp:20
Definition: app.hpp:12
static void destroy(_Handler *t)
Definition: Allocator.hpp:28
static Communicator * st_communicator
Definition: Allocator.hpp:22