3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Reflection::FieldRepresentation Class Reference

#include <FieldRepresentation.hpp>

Inheritance diagram for Engine3DRadSpace.Reflection::FieldRepresentation:

Classes

struct  FieldRepresentationPair

Public Types

using ListFieldRepresentations = std::vector<FieldRepresentationPair>

Public Member Functions

 FieldRepresentation (std::initializer_list< FieldRepresentationPair > pairs) noexcept
 Constructs a FieldRepresentation from multiple (Type, Name) pairs.
 FieldRepresentation (const ListFieldRepresentations &pairs) noexcept
 Constructs a FieldRepresentation from a vector of (Type, Name) pairs.
ListFieldRepresentations operator() () const noexcept
 Returns the underlying vector.
ListFieldRepresentations::iterator begin () noexcept
 Iterator begin for the underlying vector.
ListFieldRepresentations::const_iterator begin () const noexcept
 Const iterator begin for the underlying vector.
ListFieldRepresentations::iterator end () noexcept
 Returns the end iterator for the underlying list.
ListFieldRepresentations::const_iterator end () const noexcept
 Returns the const end iterator for the underlying list.
FieldRepresentationPair operator[] (size_t idx) const
 Returns the idx-th pair.
size_t Count () const noexcept
 Returns the number of pairs in this FieldRepresentation.

Protected Attributes

ListFieldRepresentations _values

Member Typedef Documentation

◆ ListFieldRepresentations

Constructor & Destructor Documentation

◆ FieldRepresentation() [1/2]

Engine3DRadSpace.Reflection::FieldRepresentation::FieldRepresentation ( std::initializer_list< FieldRepresentationPair > pairs)
inlinenoexcept

Constructs a FieldRepresentation from multiple (Type, Name) pairs.

Parameters
pairs(enum FieldRepresentationType type, std::string Name) pairs

◆ FieldRepresentation() [2/2]

Engine3DRadSpace.Reflection::FieldRepresentation::FieldRepresentation ( const ListFieldRepresentations & pairs)
inlinenoexcept

Constructs a FieldRepresentation from a vector of (Type, Name) pairs.

Parameters
pairsstd::vector<FieldRepresentationPair>

Member Function Documentation

◆ begin() [1/2]

ListFieldRepresentations::const_iterator Engine3DRadSpace.Reflection::FieldRepresentation::begin ( ) const
inlinenoexcept

Const iterator begin for the underlying vector.

Returns
std::vector<FieldRepresentationPair>::const_iterator::begin()

◆ begin() [2/2]

ListFieldRepresentations::iterator Engine3DRadSpace.Reflection::FieldRepresentation::begin ( )
inlinenoexcept

Iterator begin for the underlying vector.

Returns
std::vector<FieldRepresentationPair>::iterator::begin()

◆ Count()

size_t Engine3DRadSpace.Reflection::FieldRepresentation::Count ( ) const
inlinenoexcept

Returns the number of pairs in this FieldRepresentation.

Returns
Number of pairs

◆ end() [1/2]

ListFieldRepresentations::const_iterator Engine3DRadSpace.Reflection::FieldRepresentation::end ( ) const
inlinenoexcept

Returns the const end iterator for the underlying list.

Returns
std::vector<FieldRepresentationPair>::const_iterator::end()

◆ end() [2/2]

ListFieldRepresentations::iterator Engine3DRadSpace.Reflection::FieldRepresentation::end ( )
inlinenoexcept

Returns the end iterator for the underlying list.

Returns
std::vector<FieldRepresentationPair>::iterator::end()

◆ operator()()

ListFieldRepresentations Engine3DRadSpace.Reflection::FieldRepresentation::operator() ( ) const
inlinenoexcept

Returns the underlying vector.

Returns
stored values

◆ operator[]()

FieldRepresentationPair Engine3DRadSpace.Reflection::FieldRepresentation::operator[] ( size_t idx) const
inline

Returns the idx-th pair.

Parameters
idxindex
Returns
_values[idx]

Member Data Documentation

◆ _values

ListFieldRepresentations Engine3DRadSpace.Reflection::FieldRepresentation::_values
protected

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