ARC SDK
hed
libs
compute
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
Arc namespace contains all core ARC classes.
Definition:
ArcConfig.h:11
Arc::GLUE2Entity
Definition:
GLUE2Entity.h:19
Arc::CountedPointer
Wrapper for pointer with automatic destruction and multiple references.
Definition:
Utils.h:183
Generated on Tue Oct 19 2021 17:47:05 for ARC SDK by
1.8.14