Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Attribute
Attributes
SharedAttr.inl
Go to the documentation of this file.
1
namespace
iv
2
{
3
4
//========================= SharedAttr_I =========================================
5
template
<
class
T >
6
SharedAttr_I< T >::SharedAttr_I
(
ClientMarker
* cm,
AttributeEventProcessor
* processor, T
const
& initial_value ) :
7
Attr
< T >( cm, processor, true ),
8
value( initial_value )
9
{
10
}
11
12
template
<
class
T >
13
void
SharedAttr_I< T >::GetSourceValue
( T & out )
const
14
{
15
out = this->value;
16
}
17
18
template
<
class
T >
19
void
SharedAttr_I< T >::ModifySource
( T
const
& val )
20
{
21
this->value = val;
22
this->SourceValueChanged();
23
}
24
25
//========================= SharedAttr =========================================
26
template
<
class
T >
27
SharedAttr< T >::SharedAttr
(
ClientMarker
* cm, T
const
& initial_value ) :
28
Local_AEP
(),
29
SharedAttr_I
< T >( cm, this, initial_value )
30
{
31
this->
Notify_Activated
();
32
}
33
34
template
<
class
T >
35
SharedAttr< T >::~SharedAttr
()
36
{
37
this->Notify_Deactivated();
38
}
39
40
41
42
}