vega
Public Types | Public Member Functions | List of all members
vega::manipulators::FixedSizeElementManipulator< T > Class Template Reference

A manipulator class for VR that represent fixed size elements like integers and floating point numbers. More...

#include <vega/manipulators/fixed_size_element_manipulator.h>

Inheritance diagram for vega::manipulators::FixedSizeElementManipulator< T >:
Inheritance graph
[legend]
Collaboration diagram for vega::manipulators::FixedSizeElementManipulator< T >:
Collaboration graph
[legend]

Public Types

typedef base_vector::value_type value_type
 
typedef base_vector::size_type size_type
 
typedef base_vector::iterator iterator
 
typedef base_vector::const_iterator const_iterator
 
typedef base_vector::reference reference
 
typedef base_vector::const_reference const_reference
 

Public Member Functions

 FixedSizeElementManipulator (const_iterator first, const_iterator last)
 
 FixedSizeElementManipulator ()
 
 FixedSizeElementManipulator (std::shared_ptr< dicom::RawValue > raw_value)
 
template<typename U >
U & get (size_t i)
 
template<typename U >
const U & get (size_t i) const
 
virtual std::shared_ptr< dicom::RawValue > raw_value () override
 
virtual std::string str () const override
 
virtual bool read_from (dicom::RawReader *reader, size_t num_bytes) override
 
virtual size_t write_to (dicom::RawWriter *writer) const override
 
virtual bool operator== (const ValueManipulator &other) const override
 
virtual bool operator!= (const ValueManipulator &other) const override
 
- Public Member Functions inherited from vega::manipulators::ValueManipulator
virtual ~ValueManipulator ()=0
 
virtual bool is_valid_for (const VR &vr) const
 

Detailed Description

template<typename T>
class vega::manipulators::FixedSizeElementManipulator< T >

A manipulator class for VR that represent fixed size elements like integers and floating point numbers.

This manipulator inherits from std::vector<T> and therefore includes many helpful methods for handling vectors of the input type T.

Member Typedef Documentation

◆ const_iterator

template<typename T>
typedef base_vector::const_iterator vega::manipulators::FixedSizeElementManipulator< T >::const_iterator

◆ const_reference

template<typename T>
typedef base_vector::const_reference vega::manipulators::FixedSizeElementManipulator< T >::const_reference

◆ iterator

template<typename T>
typedef base_vector::iterator vega::manipulators::FixedSizeElementManipulator< T >::iterator

◆ reference

template<typename T>
typedef base_vector::reference vega::manipulators::FixedSizeElementManipulator< T >::reference

◆ size_type

template<typename T>
typedef base_vector::size_type vega::manipulators::FixedSizeElementManipulator< T >::size_type

◆ value_type

template<typename T>
typedef base_vector::value_type vega::manipulators::FixedSizeElementManipulator< T >::value_type

Constructor & Destructor Documentation

◆ FixedSizeElementManipulator() [1/3]

◆ FixedSizeElementManipulator() [2/3]

◆ FixedSizeElementManipulator() [3/3]

template<typename T >
vega::manipulators::FixedSizeElementManipulator< T >::FixedSizeElementManipulator ( std::shared_ptr< dicom::RawValue >  raw_value)
explicit

Member Function Documentation

◆ get() [1/2]

template<typename T>
template<typename U >
U& vega::manipulators::FixedSizeElementManipulator< T >::get ( size_t  i)
inline

◆ get() [2/2]

template<typename T>
template<typename U >
const U& vega::manipulators::FixedSizeElementManipulator< T >::get ( size_t  i) const
inline

◆ operator!=()

template<typename T >
bool vega::manipulators::FixedSizeElementManipulator< T >::operator!= ( const ValueManipulator other) const
overridevirtual

◆ operator==()

template<typename T >
bool vega::manipulators::FixedSizeElementManipulator< T >::operator== ( const ValueManipulator other) const
overridevirtual

◆ raw_value()

template<typename T >
std::shared_ptr< dicom::RawValue > vega::manipulators::FixedSizeElementManipulator< T >::raw_value ( )
overridevirtual

◆ read_from()

template<typename T >
bool vega::manipulators::FixedSizeElementManipulator< T >::read_from ( dicom::RawReader *  reader,
size_t  num_bytes 
)
overridevirtual

◆ str()

template<typename T >
std::string vega::manipulators::FixedSizeElementManipulator< T >::str ( ) const
overridevirtual

◆ write_to()

template<typename T >
size_t vega::manipulators::FixedSizeElementManipulator< T >::write_to ( dicom::RawWriter *  writer) const
overridevirtual

The documentation for this class was generated from the following files: