cheshirekow  v0.1.0
mpblocks::dubins::curves_cuda::PackedIndex< Format_t > Class Template Reference

stores both the index of the entry and the solution id of it's best solver in a bitfield More...

#include <mpblocks/cudaNN/PackedIndex.h>

Public Types

typedef PackedStorage< sizeof(Format_t) >
::Result 
Storage_t
 
typedef PackedStorage< sizeof(PunType)>
::Result 
StorageType
 

Public Member Functions

__device__ __host__ SolutionId getId () const
 
__device__ __host__ SolutionId getId () const
 
__device__ __host__ Storage_t getIdx () const
 
__device__ __host__ StorageType getIdx () const
 
__device__ __host__ PunType & getPun ()
 
__device__ __host__ Format_t & getPun ()
 
__device__ __host__ Storage_t getUnsigned ()
 
__device__ __host__ StorageType getUnsigned ()
 
__device__ __host__ PackedIndex (PunType bits)
 
__device__ __host__ PackedIndex (Format_t bits)
 
__device__ __host__ PackedIndex (SolutionId id=INVALID, Storage_t idx=0)
 
__device__ __host__ PackedIndex (SolutionId id=INVALID, StorageType idx=0)
 
__device__ __host__ void setId (SolutionId id)
 
__device__ __host__ void setId (SolutionId id)
 
__device__ __host__ void setIdx (StorageType idx)
 
__device__ __host__ void setIdx (Storage_t idx)
 
__device__ __host__ void setPun (PunType bits)
 
__device__ __host__ void setPun (Format_t bits)
 
__device__ __host__ void setUnsigned (Storage_t bits)
 
__device__ __host__ void setUnsigned (StorageType bits)
 

Private Attributes

Storage_t m_storage
 
StorageType m_storage
 

Detailed Description

template<typename Format_t>
class mpblocks::dubins::curves_cuda::PackedIndex< Format_t >

stores both the index of the entry and the solution id of it's best solver in a bitfield

stores both the index of the entry and the solution id of it's best solver in a bitfield of the same size as PunType and provides conversion to and from PunType

Definition at line 52 of file PackedIndex.h.

Member Typedef Documentation

template<typename Format_t>
typedef PackedStorage< sizeof(Format_t) >::Result mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::Storage_t

Definition at line 55 of file PackedIndex.h.

template<typename Format_t>
typedef PackedStorage<sizeof(PunType)>::Result mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::StorageType

Definition at line 55 of file PackedIndex.h.

Constructor & Destructor Documentation

template<typename Format_t >
__device__ __host__ mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::PackedIndex ( Format_t  bits)

Definition at line 46 of file PackedIndex.hpp.

template<typename Format_t >
__device__ __host__ mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::PackedIndex ( SolutionId  id = INVALID,
Storage_t  idx = 0 
)

Definition at line 38 of file PackedIndex.hpp.

template<typename PunType >
__device__ __host__ mpblocks::dubins::curves_cuda::PackedIndex< PunType >::PackedIndex ( PunType  bits)

Definition at line 45 of file PackedIndex.hpp.

template<typename PunType >
__device__ __host__ mpblocks::dubins::curves_cuda::PackedIndex< PunType >::PackedIndex ( SolutionId  id = INVALID,
StorageType  idx = 0 
)

Definition at line 38 of file PackedIndex.hpp.

Member Function Documentation

template<typename PunType >
__device__ __host__ SolutionId mpblocks::dubins::curves_cuda::PackedIndex< PunType >::getId ( ) const

Definition at line 53 of file PackedIndex.hpp.

template<typename Format_t>
__device__ __host__ SolutionId mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::getId ( ) const
template<typename PunType >
__device__ __host__ PackedIndex< PunType >::StorageType mpblocks::dubins::curves_cuda::PackedIndex< PunType >::getIdx ( ) const

Definition at line 66 of file PackedIndex.hpp.

template<typename Format_t>
__device__ __host__ StorageType mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::getIdx ( ) const
template<typename PunType >
__device__ __host__ PunType & mpblocks::dubins::curves_cuda::PackedIndex< PunType >::getPun ( )

Definition at line 99 of file PackedIndex.hpp.

template<typename Format_t>
__device__ __host__ PunType& mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::getPun ( )
template<typename PunType >
__device__ __host__ PackedIndex< PunType >::StorageType mpblocks::dubins::curves_cuda::PackedIndex< PunType >::getUnsigned ( )

Definition at line 113 of file PackedIndex.hpp.

template<typename Format_t>
__device__ __host__ StorageType mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::getUnsigned ( )
template<typename PunType >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< PunType >::setId ( SolutionId  id)

Definition at line 80 of file PackedIndex.hpp.

template<typename Format_t>
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::setId ( SolutionId  id)
template<typename Format_t >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::setIdx ( Storage_t  idx)

Definition at line 89 of file PackedIndex.hpp.

template<typename PunType >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< PunType >::setIdx ( StorageType  idx)

Definition at line 85 of file PackedIndex.hpp.

template<typename PunType >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< PunType >::setPun ( PunType  bits)

Definition at line 100 of file PackedIndex.hpp.

template<typename Format_t >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::setPun ( Format_t  bits)

Definition at line 106 of file PackedIndex.hpp.

template<typename Format_t >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::setUnsigned ( Storage_t  bits)

Definition at line 120 of file PackedIndex.hpp.

template<typename PunType >
__device__ __host__ void mpblocks::dubins::curves_cuda::PackedIndex< PunType >::setUnsigned ( StorageType  bits)

Definition at line 113 of file PackedIndex.hpp.

Member Data Documentation

template<typename Format_t>
Storage_t mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::m_storage
private

Definition at line 58 of file PackedIndex.h.

template<typename Format_t>
StorageType mpblocks::dubins::curves_cuda::PackedIndex< Format_t >::m_storage
private

Definition at line 58 of file PackedIndex.h.


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