9 #ifndef _9c3d8f32_0310_4e3a_b5d2_6d69f229a2cf 10 #define _9c3d8f32_0310_4e3a_b5d2_6d69f229a2cf 13 #include <initializer_list> 16 #include "odil/Value.h" 52 std::initializer_list<int>
const & value, VR
const & vr=VR::INVALID);
56 std::initializer_list<Value::Integer>
const & value,
57 VR
const & vr=VR::INVALID);
61 std::initializer_list<Value::Real>
const & value,
62 VR
const & vr=VR::INVALID);
66 std::initializer_list<Value::String>
const & value,
67 VR
const & vr=VR::INVALID);
71 std::initializer_list<DataSet>
const & value,
72 VR
const & vr=VR::INVALID);
78 std::size_t
size()
const;
80 Value const & get_value()
const;
176 typedef bool result_type;
179 bool operator()(T
const & container)
const 181 return container.empty();
187 typedef std::size_t result_type;
190 std::size_t operator()(T
const & container)
const 192 return container.size();
203 template<
typename TVisitor>
204 typename TVisitor::result_type
205 apply_visitor(TVisitor
const & visitor,
Element const & element);
210 #include "odil/Element.txx" 212 #endif // _9c3d8f32_0310_4e3a_b5d2_6d69f229a2cf bool is_string() const
Test whether the value contains strings.
Definition: Element.cpp:163
std::vector< String > Strings
String container.
Definition: Value.h:52
Value::Strings const & as_string() const
Return the strings contained in the element.
Definition: Element.cpp:170
std::vector< Real > Reals
Real container.
Definition: Value.h:49
A value held in a DICOM element.
Definition: Value.h:25
VR vr
VR of the element.
Definition: Element.h:30
Value::Binary const & as_binary() const
Return the binary data contained in the element.
Definition: Element.cpp:211
bool operator!=(Element const &other) const
Difference test.
Definition: Element.cpp:231
Value::Integers const & as_int() const
Return the integers contained in the element.
Definition: Element.cpp:128
Definition: Association.cpp:39
Value::DataSets const & as_data_set() const
Return the data sets contained in the element.
Definition: Element.cpp:191
std::vector< Integer > Integers
Integer container.
Definition: Value.h:46
std::vector< DataSet > DataSets
Data sets container.
Definition: Value.h:55
bool is_data_set() const
Test whether the value contains data sets.
Definition: Element.cpp:184
std::vector< uint8_t > Binary
Binary data container.
Definition: Value.h:58
Value::Reals const & as_real() const
Return the reals contained in the element.
Definition: Element.cpp:149
Element(Value const &value=Value(), VR const &vr=VR::INVALID)
Constructor.
Definition: Element.cpp:18
bool empty() const
Test whether the element is empty.
Definition: Element.cpp:96
std::size_t size() const
Return the number of items in the value.
Definition: Element.cpp:105
bool operator==(Element const &other) const
Equality test.
Definition: Element.cpp:224
Element of a DICOM data set.
Definition: Element.h:25
bool is_int() const
Test whether the value contains integers.
Definition: Element.cpp:121
bool is_real() const
Test whether the value contains reals.
Definition: Element.cpp:142
bool is_binary() const
Test whether the value contains data sets.
Definition: Element.cpp:204