Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t > Class Template Reference

Metafunction for generating ProxyVector dummy storages. More...

#include <proxyVector.hpp>

Inheritance diagram for bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >:
Inheritance graph
[legend]
Collaboration diagram for bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >:
Collaboration graph
[legend]

Public Types

typedef const_pointer_t const_pointer
 
typedef pointer_t pointer
 

Public Member Functions

const_pointer data () const override
 
pointer data () override
 
bool empty () const override
 
void resize (std::size_t size) override
 
std::size_t size () const override
 
void swap (ProxyVectorDummyStorage &other) noexcept
 

Protected Member Functions

 ProxyVectorDummyStorage (std::size_t size=0)
 

Friends

template<typename PXV_value_t , bool PXV_thread_safe>
class ProxyVector
 

Detailed Description

template<typename value_t, typename pointer_t = value_t *, typename const_pointer_t = const value_t *>
class bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >

Metafunction for generating ProxyVector dummy storages.

Template Parameters
value_tis the type of the objects handled by the dummy storage
pointer_tdefines a pointer to the data stored
const_pointer_tdefines a constant pointer to the data stored

Definition at line 190 of file proxyVector.hpp.

Member Typedef Documentation

◆ const_pointer

template<typename value_t , typename pointer_t = value_t *, typename const_pointer_t = const value_t *>
typedef const_pointer_t bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::const_pointer

Definition at line 198 of file proxyVector.hpp.

◆ pointer

template<typename value_t , typename pointer_t = value_t *, typename const_pointer_t = const value_t *>
typedef pointer_t bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::pointer

Definition at line 197 of file proxyVector.hpp.

Constructor & Destructor Documentation

◆ ProxyVectorDummyStorage()

template<typename value_t , typename pointer_t , typename const_pointer_t >
bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::ProxyVectorDummyStorage ( std::size_t size = 0)
protected

Constructor.

Parameters
sizeis the size of the storage expressed in number of elements.

Definition at line 192 of file proxyVector.tpp.

Member Function Documentation

◆ data() [1/2]

template<typename value_t , typename pointer_t , typename const_pointer_t >
ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::const_pointer bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::data ( ) const
overridevirtual

Return a constant pointer to the data.

Returns
A constant pointer to the data.

Implements bitpit::ProxyVectorStorageInterface< pointer_t, const_pointer_t >.

Definition at line 225 of file proxyVector.tpp.

◆ data() [2/2]

template<typename value_t , typename pointer_t , typename const_pointer_t >
ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::pointer bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::data ( )
overridevirtual

Return a pointer to the data.

Returns
A pointer to the data.

Implements bitpit::ProxyVectorStorageInterface< pointer_t, const_pointer_t >.

Definition at line 214 of file proxyVector.tpp.

◆ empty()

template<typename value_t , typename pointer_t , typename const_pointer_t >
bool bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::empty ( ) const
overridevirtual

Check if the storage is empty.

Returns
Returns true if the storage is empty, false otherwise.

Implements bitpit::ProxyVectorStorageInterface< pointer_t, const_pointer_t >.

Definition at line 236 of file proxyVector.tpp.

◆ resize()

template<typename value_t , typename pointer_t , typename const_pointer_t >
void bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::resize ( std::size_t size)
overridevirtual

Resize the storage.

Returns
The size of the storage expressed in number of elements.

Implements bitpit::ProxyVectorStorageInterface< pointer_t, const_pointer_t >.

Definition at line 258 of file proxyVector.tpp.

◆ size()

template<typename value_t , typename pointer_t , typename const_pointer_t >
std::size_t bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::size ( ) const
overridevirtual

Get the size of the storage expressed in number of elements.

Returns
The size of the storage, expressed in number of elements.

Implements bitpit::ProxyVectorStorageInterface< pointer_t, const_pointer_t >.

Definition at line 247 of file proxyVector.tpp.

◆ swap()

template<typename value_t , typename pointer_t , typename const_pointer_t >
void bitpit::ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t >::swap ( ProxyVectorDummyStorage< value_t, pointer_t, const_pointer_t > & other)
noexcept

Swaps the contents.

Parameters
otheris another storage of the same type

Definition at line 203 of file proxyVector.tpp.

Friends And Related Symbol Documentation

◆ ProxyVector

template<typename value_t , typename pointer_t = value_t *, typename const_pointer_t = const value_t *>
template<typename PXV_value_t , bool PXV_thread_safe>
friend class ProxyVector
friend

Definition at line 194 of file proxyVector.hpp.


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