OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLRowDataRange Class Reference

This class encapsulates the concept of a contiguous range of cells in a row. More...

#include <XLRowData.hpp>

Public Member Functions

 XLRowDataRange (const XLRowDataRange &other)
 Copy constructor.
 
 XLRowDataRange (XLRowDataRange &&other) noexcept
 Move constructor.
 
 ~XLRowDataRange ()
 Destructor.
 
XLRowDataRangeoperator= (const XLRowDataRange &other)
 Copy assignment operator.
 
XLRowDataRangeoperator= (XLRowDataRange &&other) noexcept
 Move assignment operator.
 
uint16_t size () const
 Get the size (length) of the range.
 
XLRowDataIterator begin ()
 Get an iterator to the first element.
 
XLRowDataIterator end ()
 Get an iterator to (one-past) the last element.
 
template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>>
XLRowDataRangeoperator= (T value)
 Templated assignment operator - assign value to all existing cells in the row.
 

Friends

class XLRowDataIterator
 
class XLRowDataProxy
 
class XLRow
 

Detailed Description

This class encapsulates the concept of a contiguous range of cells in a row.

Constructor & Destructor Documentation

◆ XLRowDataRange() [1/2]

OpenXLSX::XLRowDataRange::XLRowDataRange ( const XLRowDataRange other)

Copy constructor.

Parameters
otherObject to be copied.

◆ XLRowDataRange() [2/2]

OpenXLSX::XLRowDataRange::XLRowDataRange ( XLRowDataRange &&  other)
defaultnoexcept

Move constructor.

Parameters
otherObject to be moved.

◆ ~XLRowDataRange()

OpenXLSX::XLRowDataRange::~XLRowDataRange ( )
default

Destructor.

Member Function Documentation

◆ begin()

XLRowDataIterator OpenXLSX::XLRowDataRange::begin ( )

Get an iterator to the first element.

Returns
An XLRowDataIterator pointing to the first element.

◆ end()

XLRowDataIterator OpenXLSX::XLRowDataRange::end ( )

Get an iterator to (one-past) the last element.

Returns
An XLRowDataIterator pointing to (one past) the last element.

◆ operator=() [1/3]

XLRowDataRange & OpenXLSX::XLRowDataRange::operator= ( const XLRowDataRange other)

Copy assignment operator.

Parameters
otherObject to be copied.
Returns
A reference to the copied-to object.

◆ operator=() [2/3]

template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>>
XLRowDataRange & OpenXLSX::XLRowDataRange::operator= ( value)
inline

Templated assignment operator - assign value to all existing cells in the row.

Note
CAUTION: non-existing cells will not be assigned
Template Parameters
TThe type of the value argument.
Parameters
valueThe value.
Returns
A reference to the assigned-to object.

◆ operator=() [3/3]

XLRowDataRange & OpenXLSX::XLRowDataRange::operator= ( XLRowDataRange &&  other)
defaultnoexcept

Move assignment operator.

Parameters
otherObject to be moved.
Returns
A reference to the moved-to object.

◆ size()

uint16_t OpenXLSX::XLRowDataRange::size ( ) const

Get the size (length) of the range.

Returns
The size of the range.

Friends And Related Symbol Documentation

◆ XLRow

friend class XLRow
friend

◆ XLRowDataIterator

friend class XLRowDataIterator
friend

◆ XLRowDataProxy

friend class XLRowDataProxy
friend

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