30 template <
typename ValueType>
31 Label(
const std::string &
id, ValueType &&data,
const unsigned long long index,
const size_t width = 1);
41 template <
typename MultType,
typename DivType>
42 Label toAdjusted(
const MultType &mult,
const DivType &div)
const;
50 template <
typename MultType,
typename DivType>
51 Label &adjust(
const MultType &mult,
const DivType &div);
81 bool operator<(
const Label &other)
const;
84 template<
class Archive>
85 void serialize(Archive & ar,
const unsigned int version);
106 template <
typename IterType>
110 template <
typename RangeType>
114 const_iterator begin(
void)
const;
117 const_iterator end(
void)
const;
120 const_iterator _begin;
126 template <
typename ValueType>
127 Pothos::Label::Label(
const std::string &
id, ValueType &&data,
const unsigned long long index,
const size_t width):
129 data(
Object(std::forward<ValueType>(data))),
136 template <
typename MultType,
typename DivType>
140 newLabel.
adjust(mult, div);
144 template <
typename MultType,
typename DivType>
168 template <
typename IterType>
170 _begin(begin), _end(end)
175 template <
typename RangeType>
177 _begin(range.data()), _end(range.data() + range.size())
Label & adjust(const MultType &mult, const DivType &div)
#define POTHOS_API
Definition: Config.hpp:41
const Label * const_iterator
Const Label iterator type.
Definition: Label.hpp:100
unsigned long long index
Definition: Label.hpp:71
POTHOS_API bool operator==(const Callable &lhs, const Callable &rhs)
size_t width
Definition: Label.hpp:78
Definition: ArchiveEntry.hpp:20
Label(void)
Create an empty label with null data and zero index.
Definition: Object.hpp:47
void serialize(Archive &ar, std::complex< T > &t, const unsigned int ver)
Definition: Complex.hpp:37
const_iterator end(void) const
Get the end of the iterator range (exclusive)
Definition: Label.hpp:187
const_iterator begin(void) const
Get the begining of the iterator range (inclusive)
Definition: Label.hpp:182
Label toAdjusted(const MultType &mult, const DivType &div) const
Object data
Definition: Label.hpp:64
std::string id
Definition: Label.hpp:59
LabelIteratorRange(void)
Create an empty/invalid LabelIteratorRange.
bool operator<(const Label &other) const
support for sorting Labels by index
Definition: Label.hpp:163