template <class Parameters, class BitViewType>
class IntView
Defined at line 328 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
IntView is a view for Ints inside of bitfields.
Public Methods
template <typename... Args>
void IntView<Parameters, BitViewType> (Args &&... args)
Defined at line 337 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
void IntView<Parameters, BitViewType> ()
Defined at line 338 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
void IntView<Parameters, BitViewType> (const IntView<Parameters, BitViewType> & )
Defined at line 339 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
void IntView<Parameters, BitViewType> (IntView<Parameters, BitViewType> && )
Defined at line 340 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
IntView<Parameters, BitViewType> & operator= (const IntView<Parameters, BitViewType> & )
Defined at line 341 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
IntView<Parameters, BitViewType> & operator= (IntView<Parameters, BitViewType> && )
Defined at line 342 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
void ~IntView<Parameters, BitViewType> ()
Defined at line 343 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
ValueType Read ()
Defined at line 345 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
ValueType UncheckedRead ()
Defined at line 350 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename IntT, typename = typename ::std::enable_if<
(::std::numeric_limits<typename ::std::remove_cv<
typename ::std::remove_reference<IntT>::type>::type>::
is_integer &&
!::std::is_same<bool, typename ::std::remove_cv<
typename ::std::remove_reference<
IntT>::type>::type>::value) ||
::std::is_enum<IntT>::value>::type>
void Write (IntT value)
As with UIntView, above, Write, TryToWrite, and CouldWriteValue need to be
templated in order to avoid surprises due to implicit narrowing
conversions.
Defined at line 365 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename IntT, typename = typename ::std::enable_if<
(::std::numeric_limits<typename ::std::remove_cv<
typename ::std::remove_reference<IntT>::type>::type>::
is_integer &&
!::std::is_same<bool, typename ::std::remove_cv<
typename ::std::remove_reference<
IntT>::type>::type>::value) ||
::std::is_enum<IntT>::value>::type>
bool TryToWrite (IntT value)
Defined at line 380 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename IntT, typename = typename ::std::enable_if<
(::std::numeric_limits<typename ::std::remove_cv<
typename ::std::remove_reference<IntT>::type>::type>::
is_integer &&
!::std::is_same<bool, typename ::std::remove_cv<
typename ::std::remove_reference<
IntT>::type>::type>::value) ||
::std::is_enum<IntT>::value>::type>
bool CouldWriteValue (IntT value)
Defined at line 398 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
void UncheckedWrite (ValueType value)
Defined at line 436 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename OtherView>
void CopyFrom (const OtherView & other)
Defined at line 443 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename OtherView>
void UncheckedCopyFrom (const IntView<Parameters, BitViewType> & other)
Defined at line 447 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <typename OtherView>
bool TryToCopyFrom (const OtherView & other)
Defined at line 451 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
bool Ok ()
All bit patterns in the underlying buffer are valid, so Ok() is always
true if IsComplete() is true.
Defined at line 457 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <class OtherBitViewType>
bool Equals (const IntView<Parameters, OtherBitViewType> & other)
Defined at line 461 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <class OtherBitViewType>
bool UncheckedEquals (const IntView<Parameters, OtherBitViewType> & other)
Defined at line 465 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
bool IsComplete ()
Defined at line 469 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <class Stream>
bool UpdateFromTextStream (Stream * stream)
Defined at line 474 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
template <class Stream>
void WriteToTextStream (Stream * stream, ::emboss::TextOutputOptions & options)
Defined at line 479 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
bool IsAggregate ()
Defined at line 484 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h
int SizeInBits ()
Defined at line 486 of file ../../third_party/github.com/google/emboss/src/runtime/cpp/emboss_prelude.h