HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UN_DataIDRemapT< ID > Class Template Reference

Adaptor of the UN_DataIDRemap to specific data types. More...

#include <UN_Include.h>

+ Inheritance diagram for UN_DataIDRemapT< ID >:

Public Member Functions

 UN_DataIDRemapT ()=default
 Default constructor. More...
 
 UN_DataIDRemapT (const UN_DataIDRemap &remap_base)
 Convenience constructor that takes an instance of the base class. More...
 
 UN_DataIDRemapT (ID old_id_end, ID new_id_start, bool combine_id_zero=false)
 Convenience constructor. See UN_DataIDRemap. More...
 
ID operator[] (ID old_id) const
 
ID at (ID old_id) const
 
- Public Member Functions inherited from UN_DataIDRemap
 UN_DataIDRemap ()=default
 Default constructor. More...
 
 UN_DataIDRemap (UN_DataID old_id_end, UN_DataID new_id_start, bool combine_id_zero=false)
 
UN_DataID newStartOffset () const
 
UN_DataID oldEndOffset () const
 Returns the limit for the old IDs source range. More...
 
UN_DataSize size () const
 Returns the number of IDs reserved by this merge map. More...
 
 operator bool () const
 
UN_DataID operator[] (UN_DataID old_id) const
 
UN_DataID nextDataID () const
 Returns the data ID that should be used for the data created next time. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from UN_DataIDRemap
static UN_DataID remapIDFromOffsets (UN_DataID old_id, UN_DataID old_offset, UN_DataID new_offset)
 

Detailed Description

template<typename ID>
class UN_DataIDRemapT< ID >

Adaptor of the UN_DataIDRemap to specific data types.

Definition at line 279 of file UN_Include.h.

Constructor & Destructor Documentation

template<typename ID >
UN_DataIDRemapT< ID >::UN_DataIDRemapT ( )
default

Default constructor.

template<typename ID >
UN_DataIDRemapT< ID >::UN_DataIDRemapT ( const UN_DataIDRemap remap_base)
inline

Convenience constructor that takes an instance of the base class.

Definition at line 435 of file UN_Include.h.

template<typename ID >
UN_DataIDRemapT< ID >::UN_DataIDRemapT ( ID  old_id_end,
ID  new_id_start,
bool  combine_id_zero = false 
)
inline

Convenience constructor. See UN_DataIDRemap.

Definition at line 440 of file UN_Include.h.

Member Function Documentation

template<typename ID >
ID UN_DataIDRemapT< ID >::at ( ID  old_id) const
inline
See Also
operator[]

Definition at line 452 of file UN_Include.h.

template<typename ID >
ID UN_DataIDRemapT< ID >::operator[] ( ID  old_id) const
inline

Returns the new ID corresponding to the old ID, if the old ID is an ID contained within the source ID range; otherwise, returns an invalid ID.

Definition at line 448 of file UN_Include.h.


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