PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Map< MKey, T > Class Template Reference

Be aware do not use this structure on GPU if the data size is large. More...

#include <Map.h>

Collaboration diagram for dyno::Map< MKey, T >:

Public Types

using iterator = Pair<MKey, T>*
 

Public Member Functions

DYN_FUNC Map ()
 
DYN_FUNC void reserve (Pair< MKey, T > *buf, uint maxSize)
 
DYN_FUNC iterator find (MKey key)
 
DYN_FUNC iterator begin ()
 
DYN_FUNC iterator end ()
 
DYN_FUNC void clear ()
 
DYN_FUNC uint size ()
 
DYN_FUNC iterator insert (Pair< MKey, T > pair)
 
DYN_FUNC bool empty ()
 
DYN_FUNC void assign (Pair< MKey, T > *beg, int num, int buffer_size)
 
DYN_FUNC Pair< MKey, T > & operator[] (unsigned int id)
 
DYN_FUNC const Pair< MKey, T > & operator[] (unsigned int id) const
 
DYN_FUNC int erase (const T val)
 
DYN_FUNC void erase (iterator val_ptr)
 

Private Attributes

uint m_size = 0
 
Pair< MKey, T > * m_pairs = nullptr
 
uint m_maxSize = 0
 

Detailed Description

template<typename MKey, typename T>
class dyno::Map< MKey, T >

Be aware do not use this structure on GPU if the data size is large.

Template Parameters
T

Definition at line 15 of file Map.h.

Member Typedef Documentation

◆ iterator

template<typename MKey, typename T>
using dyno::Map< MKey, T >::iterator = Pair<MKey, T>*

Definition at line 18 of file Map.h.

Constructor & Destructor Documentation

◆ Map()

template<typename MKey, typename T>
DYN_FUNC dyno::Map< MKey, T >::Map ( )

Definition at line 9 of file Map.inl.

Member Function Documentation

◆ assign()

template<typename MKey, typename T>
DYN_FUNC void dyno::Map< MKey, T >::assign ( Pair< MKey, T > * beg,
int num,
int buffer_size )
inline

Definition at line 41 of file Map.h.

Here is the caller graph for this function:

◆ begin()

template<typename MKey, typename T>
DYN_FUNC iterator dyno::Map< MKey, T >::begin ( )
inline

Definition at line 30 of file Map.h.

Here is the caller graph for this function:

◆ clear()

template<typename MKey, typename T>
DYN_FUNC void dyno::Map< MKey, T >::clear ( )

Definition at line 46 of file Map.inl.

◆ empty()

template<typename MKey, typename T>
DYN_FUNC bool dyno::Map< MKey, T >::empty ( )

Definition at line 58 of file Map.inl.

◆ end()

template<typename MKey, typename T>
DYN_FUNC iterator dyno::Map< MKey, T >::end ( )
inline

Definition at line 32 of file Map.h.

Here is the caller graph for this function:

◆ erase() [1/2]

template<typename MKey, typename T>
DYN_FUNC int dyno::Map< MKey, T >::erase ( const T val)

◆ erase() [2/2]

template<typename MKey, typename T>
DYN_FUNC void dyno::Map< MKey, T >::erase ( iterator val_ptr)

◆ find()

template<typename MKey, typename T>
DYN_FUNC Pair< MKey, T > * dyno::Map< MKey, T >::find ( MKey key)

Definition at line 14 of file Map.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert()

template<typename MKey, typename T>
DYN_FUNC Pair< MKey, T > * dyno::Map< MKey, T >::insert ( Pair< MKey, T > pair)

Definition at line 22 of file Map.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator[]() [1/2]

template<typename MKey, typename T>
DYN_FUNC Pair< MKey, T > & dyno::Map< MKey, T >::operator[] ( unsigned int id)
inline

Definition at line 48 of file Map.h.

◆ operator[]() [2/2]

template<typename MKey, typename T>
DYN_FUNC const Pair< MKey, T > & dyno::Map< MKey, T >::operator[] ( unsigned int id) const
inline

Definition at line 52 of file Map.h.

◆ reserve()

template<typename MKey, typename T>
DYN_FUNC void dyno::Map< MKey, T >::reserve ( Pair< MKey, T > * buf,
uint maxSize )
inline

Definition at line 22 of file Map.h.

Here is the caller graph for this function:

◆ size()

template<typename MKey, typename T>
DYN_FUNC uint dyno::Map< MKey, T >::size ( )

Definition at line 52 of file Map.inl.

Here is the caller graph for this function:

Member Data Documentation

◆ m_maxSize

template<typename MKey, typename T>
uint dyno::Map< MKey, T >::m_maxSize = 0
private

Definition at line 63 of file Map.h.

◆ m_pairs

template<typename MKey, typename T>
Pair<MKey, T>* dyno::Map< MKey, T >::m_pairs = nullptr
private

Definition at line 62 of file Map.h.

◆ m_size

template<typename MKey, typename T>
uint dyno::Map< MKey, T >::m_size = 0
private

Definition at line 60 of file Map.h.


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