blob: e16b4386ed5a602bd55de8a73449dc47ef5c7b2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/**
* @file reflectivet.h
*
* Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_REFLECTIVET_H
#define LL_REFLECTIVET_H
#include "reflective.h"
template <class T>
class LLReflectiveT : public LLReflective
{
public:
LLReflectiveT(const T& value) : mValue(value) {;}
virtual ~LLReflectiveT() {;}
virtual const LLMetaClass& getMetaClass() const {return LLMetaClassT<LLReflectiveT<T> >::instance();}
const T& getValue() const {return mValue;}
private:
T mValue;
};
#endif
|