libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::VectorView< T > Class Template Reference
Inheritance diagram for gbl::VectorView< T >:
gbl::VectorViewBase< VectorView< T >, T > gbl::tags::VectorBase gbl::ReadWriteContiguousIndexable< CRTP, Index, Value, Writable > gbl::RandomAccessIterable< CRTP, Index, Value > gbl::ReadWriteIndexable< CRTP, Index, Value, Writable >

Public Member Functions

 VectorView (const GblArrayList &gblVector)
 
 VectorView (const GblArrayList *pGblArrayList)
 
 VectorView (const Vector< T > &vector)
 
const GblArrayListgetVector_ (void) const
 
bool isValid (void) const
 
- Public Member Functions inherited from gbl::VectorViewBase< VectorView< T >, T >
 operator const GblArrayList * () const
 
const_reference getElement_ (size_type index) const
 
reference getElement_ (size_type index)
 
void setElement_ (size_type index, value_type value)
 
size_t getElementCount_ (void) const
 
bool isEmpty (void) const
 
bool isStack (void) const
 
bool isHeap (void) const
 
std::vector< value_type > toStdVector (void) const
 
Size getStackBytes (void) const
 
Context * getContext (void) const
 
allocator_type get_allocator (void) const
 
Size getSize (void) const
 
Size getSizeBytes (void) const
 
Size size_bytes (void) const
 
Size getCapacity (void) const
 
Size capacity (void) const
 
Size getElementSize (void) const
 
size_type element_size (void) const
 
size_type max_size (void) const
 
const void * getData (void) const
 
constexpr pointer data (void)
 
constexpr const_pointer data (void) const
 
T & front (void) const
 
T & back (void) const
 
- Public Member Functions inherited from gbl::ReadWriteContiguousIndexable< CRTP, Index, Value, Writable >
void checkBounds (Index index) const
 
Index size (void) const
 
Index length (void) const
 
Index empty (void) const
 
Value at (Index index) const
 
IndexableProxy at (Index index)
 
Value front (Index index) const
 
IndexableProxy front (void)
 
Value back (void) const
 
IndexableProxy back (void)
 
- Public Member Functions inherited from gbl::ReadWriteIndexable< CRTP, Index, Value, Writable >
Value operator[] (Index key) const
 
- Public Member Functions inherited from gbl::RandomAccessIterable< CRTP, Index, Value >
iterator begin (void)
 
auto begin (void) const
 
auto rbegin (void)
 
auto rbegin (void) const
 
iterator end (void)
 
auto end (void) const
 
auto rend (void)
 
auto rend (void) const
 
const_iterator cbegin (void) const
 
auto crbegin (void) const
 
const_iterator cend (void) const
 
auto crend (void) const
 

Additional Inherited Members

- Public Types inherited from gbl::VectorViewBase< VectorView< T >, T >
using VectorViewBaseType = VectorViewBase< VectorView< T >, T >
 
using DerivedType = VectorView< T >
 
using IterableType = RandomAccessIterable< VectorView< T >, Size, T >
 
using IndexableType = ReadWriteContiguousIndexable< VectorView< T >, Size, T >
 
using value_type = T
 
using allocator_type = Context *
 
using size_type = Size
 
using difference_type = std::ptrdiff_t
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = T *
 
using const_pointer = const T *
 
using iterator = typename IterableType::iterator
 
using const_iterator = typename IterableType::const_iterator
 
using reverse_iterator = typename IterableType::reverse_iterator
 
using reverse_const_iterator = typename IterableType::reverse_const_iterator
 
- Public Types inherited from gbl::RandomAccessIterable< CRTP, Index, Value >
using iterator = RandomAccessIterator< CRTP, Index, Value, false >
 
using reverse_iterator = RandomAccessIterator< CRTP, Index, Value, true >
 
using const_iterator = RandomAccessIterator< std::add_const_t< CRTP >, Index, Value, false >
 
using reverse_const_iterator = RandomAccessIterator< std::add_const_t< CRTP >, Index, Value, true >
 
- Protected Member Functions inherited from gbl::VectorViewBase< VectorView< T >, T >
decltype(autovec_ (void) const
 
decltype(autovec_ (void)
 
voidat_ (Size index) const
 

Detailed Description

template<typename T>
class gbl::VectorView< T >

Definition at line 230 of file gimbal_vector.hpp.

Constructor & Destructor Documentation

◆ VectorView() [1/3]

template<typename T >
gbl::VectorView< T >::VectorView ( const GblArrayList gblVector)
inline

Definition at line 236 of file gimbal_vector.hpp.

236 :
237 pGblArrayList_(&gblVector) {}

◆ VectorView() [2/3]

template<typename T >
gbl::VectorView< T >::VectorView ( const GblArrayList pGblArrayList)
inline

Definition at line 239 of file gimbal_vector.hpp.

239 :
240 pGblArrayList_(pGblArrayList) {}

◆ VectorView() [3/3]

template<typename T >
gbl::VectorView< T >::VectorView ( const Vector< T > &  vector)
inline

Definition at line 242 of file gimbal_vector.hpp.

242 :
243 VectorView(static_cast<const GblArrayList*>(&vector)) {}
Contiguous, array-based abstract list container with C++-style STL API.

Member Function Documentation

◆ getVector_()

template<typename T >
const GblArrayList * gbl::VectorView< T >::getVector_ ( void  ) const
inline

Definition at line 245 of file gimbal_vector.hpp.

245{ return pGblArrayList_; }

◆ isValid()

template<typename T >
bool gbl::VectorView< T >::isValid ( void  ) const
inline

Definition at line 247 of file gimbal_vector.hpp.

247{ return pGblArrayList_; }

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