24 #ifndef ROOT_TClingValue
25 #define ROOT_TClingValue
34 class TClingValue :
public TInterpreterValue {
36 struct HasTheSameSizeAsClingValue {
37 long double fBiggestElementOfUnion;
43 cling::Value& ToCV() {
44 return reinterpret_cast<cling::Value&
>(fValue); }
45 const cling::Value& ToCV()
const {
46 return reinterpret_cast<const cling::Value&
>(fValue); }
50 TClingValue(
const TClingValue& Other);
51 TClingValue& operator=(TClingValue &Other);
54 const void* GetValAddr()
const {
return &fValue; }
55 void* GetValAddr() {
return &fValue; }
57 std::pair<std::string, std::string> ToTypeAndValueString()
const;
58 Bool_t IsValid()
const;
59 Double_t GetAsDouble()
const;
60 Long_t GetAsLong()
const;
61 ULong_t GetAsUnsignedLong()
const;
62 void* GetAsPointer()
const;
63 std::string ToString()
const;
66 #endif // ROOT_TClingValue