ARC SDK
GLUE2Entity.h
Go to the documentation of this file.
1 // -*- indent-tabs-mode: nil -*-
2 
3 #ifndef __ARC_GLUE2ENTITY_H__
4 #define __ARC_GLUE2ENTITY_H__
5 
10 #include <arc/Utils.h>
11 
12 namespace Arc {
13 
18  template<typename T>
19  class GLUE2Entity {
20  public:
21  GLUE2Entity() : Attributes(new T) {}
22 
23  T * operator->() { return &(*Attributes); }
24  T const * operator->() const { return &(*Attributes); }
25  T & operator*() { return *Attributes; }
26  T const & operator*() const { return *Attributes; }
27 
28  CountedPointer<T> Attributes;
29  };
30 } // namespace Arc
31 
32 #endif // __ARC_GLUE2ENTITY_H__
Arc namespace contains all core ARC classes.
Definition: ArcConfig.h:11
Definition: GLUE2Entity.h:19
Wrapper for pointer with automatic destruction and multiple references.
Definition: Utils.h:183