Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Utils::map_keys< Mapclass > Struct Template Reference

Generate a range to iterate over the keys of a map. More...

#include <Core/Utils/StdMapIterators.hpp>

+ Collaboration diagram for Ra::Core::Utils::map_keys< Mapclass >:

Public Types

using map_t = Mapclass
 

Public Member Functions

 map_keys (map_t &x)
 
iterator begin ()
 
iterator end ()
 
unsigned int size () const
 

Public Attributes

map_t & x_
 

Detailed Description

template<class Mapclass>
struct Ra::Core::Utils::map_keys< Mapclass >

Generate a range to iterate over the keys of a map.

Template Parameters
MapclassSpecialized Map or OrderedMap

Usage:

for ( const auto& k : Ra::Core::Utils::map_keys( myMap ) )
REQUIRE( k == std::stoi( myMap[k] ) );

Definition at line 22 of file StdMapIterators.hpp.

Member Typedef Documentation

◆ map_t

template<class Mapclass >
using Ra::Core::Utils::map_keys< Mapclass >::map_t = Mapclass

Definition at line 23 of file StdMapIterators.hpp.

Constructor & Destructor Documentation

◆ map_keys()

template<class Mapclass >
Ra::Core::Utils::map_keys< Mapclass >::map_keys ( map_t & x)
inline

Definition at line 52 of file StdMapIterators.hpp.

Member Function Documentation

◆ begin()

template<class Mapclass >
iterator Ra::Core::Utils::map_keys< Mapclass >::begin ( )
inline

Definition at line 55 of file StdMapIterators.hpp.

◆ end()

template<class Mapclass >
iterator Ra::Core::Utils::map_keys< Mapclass >::end ( )
inline

Definition at line 56 of file StdMapIterators.hpp.

◆ size()

template<class Mapclass >
unsigned int Ra::Core::Utils::map_keys< Mapclass >::size ( ) const
inline

Definition at line 57 of file StdMapIterators.hpp.

Member Data Documentation

◆ x_

template<class Mapclass >
map_t& Ra::Core::Utils::map_keys< Mapclass >::x_

Definition at line 59 of file StdMapIterators.hpp.


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