Gamedev Framework (gf)  0.8.0
A C++14 framework for 2D games
Public Member Functions | Public Attributes | List of all members
gf::DataMap Struct Reference

A map object. More...

#include <gf/DataObject.h>

Public Member Functions

DataKeyValue * begin () noexcept
 Get an iterator to the first element. More...
 
DataKeyValue * end () noexcept
 Get an iterator past the last element. More...
 
const DataKeyValue * begin () const noexcept
 Get an iterator to the first element. More...
 
const DataKeyValue * end () const noexcept
 Get an iterator past the last element. More...
 

Public Attributes

uint32_t size
 The size of the map. More...
 
DataKeyValue * data
 The data of the map. More...
 

Detailed Description

A map object.

A map object contains an array of key-value pairs of data objects.

See also
gf::DataObject, gf::DataKeyValue

Member Function Documentation

◆ begin() [1/2]

DataKeyValue* gf::DataMap::begin ( )
noexcept

Get an iterator to the first element.

Returns
A pointer to the first element
See also
end()

◆ begin() [2/2]

const DataKeyValue* gf::DataMap::begin ( ) const
noexcept

Get an iterator to the first element.

Returns
A pointer to the first element
See also
end()

◆ end() [1/2]

DataKeyValue* gf::DataMap::end ( )
noexcept

Get an iterator past the last element.

Returns
A pointer past the last element
See also
begin()

◆ end() [2/2]

const DataKeyValue* gf::DataMap::end ( ) const
noexcept

Get an iterator past the last element.

Returns
A pointer past the last element
See also
begin()

Member Data Documentation

◆ data

DataKeyValue* gf::DataMap::data

The data of the map.

◆ size

uint32_t gf::DataMap::size

The size of the map.