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

An array object. More...

#include <gf/DataObject.h>

Public Member Functions

DataObjectbegin () noexcept
 Get an iterator to the first element. More...
 
DataObjectend () noexcept
 Get an iterator past the last element. More...
 
const DataObjectbegin () const noexcept
 Get an iterator to the first element. More...
 
const DataObjectend () const noexcept
 Get an iterator past the last element. More...
 

Public Attributes

uint32_t size
 The size of the array. More...
 
DataObjectdata
 The data of the array. More...
 

Detailed Description

An array object.

An array object contains data objects.

See also
gf::DataObject

Member Function Documentation

◆ begin() [1/2]

DataObject* gf::DataArray::begin ( )
noexcept

Get an iterator to the first element.

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

◆ begin() [2/2]

const DataObject* gf::DataArray::begin ( ) const
noexcept

Get an iterator to the first element.

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

◆ end() [1/2]

DataObject* gf::DataArray::end ( )
noexcept

Get an iterator past the last element.

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

◆ end() [2/2]

const DataObject* gf::DataArray::end ( ) const
noexcept

Get an iterator past the last element.

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

Member Data Documentation

◆ data

DataObject* gf::DataArray::data

The data of the array.

◆ size

uint32_t gf::DataArray::size

The size of the array.