DNA Calib 1.1
Project brief
|
A view over a continuous sequence of objects. More...
#include <ArrayView.h>
Public Types | |
using | value_type = typename ArrayViewTraits< T >::value_type |
using | reference = typename ArrayViewTraits< T >::reference |
using | const_reference = typename ArrayViewTraits< T >::const_reference |
using | const_pointer = typename ArrayViewTraits< T >::const_pointer |
using | pointer = typename ArrayViewTraits< T >::pointer |
using | size_type = typename ArrayViewTraits< T >::size_type |
using | difference_type = typename ArrayViewTraits< T >::difference_type |
Public Member Functions | |
ArrayView ()=default | |
~ArrayView () noexcept=default | |
ArrayView (const ArrayView &)=default | |
ArrayView & | operator= (const ArrayView &)=default |
ArrayView (ArrayView &&)=default | |
ArrayView & | operator= (ArrayView &&)=default |
ArrayView (pointer src, size_type size) | |
ArrayView (std::nullptr_t, size_type) | |
template<typename U > | |
ArrayView (ArrayView< U > &src) | |
template<typename U > | |
ArrayView (const ArrayView< U > &src) | |
template<typename U > | |
ArrayView (ArrayView< U > &&src) | |
template<typename U , typename std::enable_if<!std::is_rvalue_reference< U && >::value, int >::type = 0> | |
ArrayView (U &&src) | |
size_type | size () const |
pointer | data () |
const_pointer | data () const |
pointer | begin () |
pointer | end () |
const_pointer | cbegin () const |
const_pointer | cend () const |
const_pointer | begin () const |
const_pointer | end () const |
reference | operator[] (std::size_t index) |
const_reference | operator[] (std::size_t index) const |
reference | at (std::size_t index) |
const_reference | at (std::size_t index) const |
ArrayView | subview (std::size_t offset, std::size_t count) const |
ArrayView | first (std::size_t count) const |
ArrayView | last (std::size_t count) const |
Private Attributes | |
pointer | ptr {nullptr} |
size_type | sz {} |
A view over a continuous sequence of objects.
T | element type Provides a view over a continuous sequence of objects owned by some other object. Contains a count of elements and a pointer to a location where they are stored. ArrayView does not own the mmemory it points to - it does not perform any allocation and deallocation. It can be constructed given a pointer and element count, or a container type argument. The class provides helper methods for creating subviews over the objects, and methods for by-value comparison with containers. ConstArrayView represents an immutable view. |
using trust::ArrayView< T >::const_pointer = typename ArrayViewTraits<T>::const_pointer |
using trust::ArrayView< T >::const_reference = typename ArrayViewTraits<T>::const_reference |
using trust::ArrayView< T >::difference_type = typename ArrayViewTraits<T>::difference_type |
using trust::ArrayView< T >::pointer = typename ArrayViewTraits<T>::pointer |
using trust::ArrayView< T >::reference = typename ArrayViewTraits<T>::reference |
using trust::ArrayView< T >::size_type = typename ArrayViewTraits<T>::size_type |
using trust::ArrayView< T >::value_type = typename ArrayViewTraits<T>::value_type |
|
default |
|
defaultnoexcept |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Referenced by trust::operator==(), dnac::RemoveAnimatedMapCommand::Impl::setAnimatedMapIndices(), dnac::RemoveBlendShapeCommand::Impl::setBlendShapeIndices(), dnac::DNACalibDNAReaderImpl::setBlendShapeTargetDeltas(), dnac::DNACalibDNAReaderImpl::setBlendShapeTargetVertexIndices(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setDeltas(), dnac::RemoveJointAnimationCommand::Impl::setJointIndices(), dnac::RemoveJointCommand::Impl::setJointIndices(), dnac::SetSkinWeightsCommand::Impl::setJointIndices(), dnac::SetLODsCommand::Impl::setLODs(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setMasks(), dnac::SetVertexPositionsCommand::Impl::setMasks(), dnac::RemoveMeshCommand::Impl::setMeshIndices(), dnac::DNACalibDNAReaderImpl::setNeutralJointRotations(), dnac::DNACalibDNAReaderImpl::setNeutralJointTranslations(), dnac::SetVertexPositionsCommand::Impl::setPositions(), dnac::SetNeutralJointRotationsCommand::Impl::setRotations(), dnac::SetNeutralJointTranslationsCommand::Impl::setTranslations(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setVertexIndices(), dnac::DNACalibDNAReaderImpl::setVertexPositions(), and dnac::SetSkinWeightsCommand::Impl::setWeights().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by dna::copyDefinition(), dna::StringView::dataOrEmpty(), dna::findIndices(), and trust::operator==().
|
inline |
|
inline |
Referenced by trust::operator==(), dnac::RemoveAnimatedMapCommand::Impl::setAnimatedMapIndices(), dnac::RemoveBlendShapeCommand::Impl::setBlendShapeIndices(), dnac::DNACalibDNAReaderImpl::setBlendShapeTargetDeltas(), dnac::DNACalibDNAReaderImpl::setBlendShapeTargetVertexIndices(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setDeltas(), dnac::RemoveJointAnimationCommand::Impl::setJointIndices(), dnac::RemoveJointCommand::Impl::setJointIndices(), dnac::SetSkinWeightsCommand::Impl::setJointIndices(), dnac::SetLODsCommand::Impl::setLODs(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setMasks(), dnac::SetVertexPositionsCommand::Impl::setMasks(), dnac::RemoveMeshCommand::Impl::setMeshIndices(), dnac::DNACalibDNAReaderImpl::setNeutralJointRotations(), dnac::DNACalibDNAReaderImpl::setNeutralJointTranslations(), dnac::SetVertexPositionsCommand::Impl::setPositions(), dnac::SetNeutralJointRotationsCommand::Impl::setRotations(), dnac::SetNeutralJointTranslationsCommand::Impl::setTranslations(), dnac::SetBlendShapeTargetDeltasCommand::Impl::setVertexIndices(), dnac::DNACalibDNAReaderImpl::setVertexPositions(), and dnac::SetSkinWeightsCommand::Impl::setWeights().
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
Referenced by trust::operator==().
|
inline |
|
private |
|
private |