23 oss <<
val.get<
int>();
26 oss << (
int)
val.get<int8_t>();
29 oss << (
int)
val.get<int16_t>();
32 oss << (
int)
val.get<uint8_t>();
35 oss << (
int)
val.get<uint16_t>();
38 oss <<
val.get<uint32_t>();
41 oss <<
val.get<uint64_t>();
44 oss <<
val.get<int64_t>();
47 oss <<
val.get<
float>();
50 oss <<
val.get<
double>();
53 oss <<
val.get<
const char*>();
56 oss <<
val.get<
bool>();
92 case variant_trait_v<const char*>:
96 case variant_trait_v<int*>:
100 case variant_trait_v<float*>:
104 case variant_trait_v<double*>:
108 case variant_trait_v<bool*>:
112 case variant_trait_v<std::string*>:
117 mStore =
other.mStore;
124 mStore =
other.mStore;
127 case variant_trait_v<const char*>:
128 *
reinterpret_cast<char**
>(&(
other.mStore)) =
nullptr;
130 case variant_trait_v<int*>:
131 *
reinterpret_cast<int**
>(&(
other.mStore)) =
nullptr;
133 case variant_trait_v<float*>:
134 *
reinterpret_cast<float**
>(&(
other.mStore)) =
nullptr;
136 case variant_trait_v<double*>:
137 *
reinterpret_cast<double**
>(&(
other.mStore)) =
nullptr;
139 case variant_trait_v<bool*>:
140 *
reinterpret_cast<bool**
>(&(
other.mStore)) =
nullptr;
142 case variant_trait_v<std::string*>:
143 *
reinterpret_cast<std::string**
>(&(
other.mStore)) =
nullptr;
154 case variant_trait_v<const char*>:
155 case variant_trait_v<int*>:
156 case variant_trait_v<float*>:
157 case variant_trait_v<double*>:
158 case variant_trait_v<bool*>:
159 case variant_trait_v<std::string*>:
160 if (
reinterpret_cast<void**
>(&mStore) !=
nullptr) {
161 free(*
reinterpret_cast<void**
>(&mStore));
174 case variant_trait_v<const char*>:
177 case variant_trait_v<int*>:
180 case variant_trait_v<float*>:
183 case variant_trait_v<double*>:
186 case variant_trait_v<bool*>:
189 case variant_trait_v<std::string*>:
193 mStore =
other.mStore;
203 case variant_trait_v<const char*>:
205 *
reinterpret_cast<char**
>(&(
other.mStore)) =
nullptr;
207 case variant_trait_v<int*>:
209 *
reinterpret_cast<int**
>(&(
other.mStore)) =
nullptr;
211 case variant_trait_v<float*>:
213 *
reinterpret_cast<float**
>(&(
other.mStore)) =
nullptr;
215 case variant_trait_v<double*>:
217 *
reinterpret_cast<double**
>(&(
other.mStore)) =
nullptr;
219 case variant_trait_v<bool*>:
221 *
reinterpret_cast<bool**
>(&(
other.mStore)) =
nullptr;
223 case variant_trait_v<std::string*>:
225 *
reinterpret_cast<std::string**
>(&(
other.mStore)) =
nullptr;
228 mStore =
other.mStore;
233std::pair<std::vector<std::string>, std::vector<std::string>>
extractLabels(boost::property_tree::ptree
const&
tree)
237 auto lrc =
tree.get_child_optional(labels_rows_str);
239 labels_rows = basicVectorFromBranch<std::string>(lrc.value());
241 auto lcc =
tree.get_child_optional(labels_cols_str);
243 labels_cols = basicVectorFromBranch<std::string>(lcc.value());
std::vector< std::string > labels_rows
std::vector< std::string > labels_cols
Variant for configuration parameter storage. Owns stored data.
std::string asString() const
Variant & operator=(const Variant &other)
Variant(VariantType type=VariantType::Unknown)
Defining PrimaryVertex explicitly as messageable.
std::ostream & operator<<(std::ostream &s, ChannelType const &type)
Stream operators so that we can use ChannelType with Boost.Test.
std::pair< std::vector< std::string >, std::vector< std::string > > extractLabels(boost::property_tree::ptree const &tree)
static void write(std::ostream &o, Variant const &v)
static void set(void *store, T value)
VectorOfTObjectPtrs other
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))