AGXDynamics
2.35.0.3
AttributePtr.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXDATA_ATTRIBUTEPTR_H
18
#define AGXDATA_ATTRIBUTEPTR_H
19
20
// #include <agxData/Attribute.h>
21
22
namespace
agxData
23
{
24
class
Attribute;
25
26
template
<
typename
T>
27
class
AttributePtr
28
{
29
public
:
30
AttributePtr
();
31
AttributePtr
(
EntityPtr
entity,
const
Attribute
*attribute);
32
33
T&
get
();
34
const
T&
get
()
const
;
35
36
bool
isValid
()
const
;
37
38
bool
operator!
()
const
;
39
40
operator
bool()
const
;
41
42
inline
void
setEntityPtr
(
EntityPtr
entity ) { m_entityPtr = entity; }
43
44
private
:
45
EntityPtr
m_entityPtr;
46
const
Attribute
*m_attribute;
47
};
48
}
49
50
51
#endif
/* AGXDATA_ATTRIBUTEPTR_H */
agxData::AttributePtr::AttributePtr
AttributePtr()
Definition:
EntityStorage.h:869
agxData::AttributePtr::isValid
bool isValid() const
Definition:
EntityStorage.h:893
agxData::AttributePtr::setEntityPtr
void setEntityPtr(EntityPtr entity)
Definition:
AttributePtr.h:42
agxData::AttributePtr
Definition:
AttributePtr.h:27
agxData
Contains classes for low level data storage for AGX.
Definition:
Container.h:23
agxData::AttributePtr::operator!
bool operator!() const
Definition:
EntityStorage.h:900
agxData::Attribute
An abstract attribute description, part of an Entity.
Definition:
Attribute.h:57
agxData::EntityPtr
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Definition:
EntityPtr.h:51
agxData::AttributePtr::get
T & get()
Definition:
EntityStorage.h:879
include
agxData
AttributePtr.h
Generated on Fri Feb 10 2023 14:06:08 for AGXDynamics by
1.8.17