wrenbind17::StdVectorBindings

wrenbind17::StdVectorBindings #

More…

#include <std.hpp>

Public Types #

Name
typedef std::vector< T >::iterator Iterator
typedef std::vector< T > Vector

Public Functions #

Name
void setIndex(Vector & self, size_t index, T value)
const T & getIndex(Vector & self, size_t index)
void add(Vector & self, T value)
std::variant< bool, Iterator > iterate(Vector & self, std::variant< std::nullptr_t, Iterator > other)
const T & iteratorValue(Vector & self, std::shared_ptr< Iterator > other)
size_t count(Vector & self)
T removeAt(Vector & self, int32_t index)
void insert(Vector & self, int32_t index, T value)
bool contains(Vector & self, const T & value)
T pop(Vector & self)
void clear(Vector & self)
size_t size(Vector & self)
bool empty(Vector & self)
void bind(ForeignModule & m, const std::string & name)

Detailed Description #

template <typename T >
class wrenbind17::StdVectorBindings;

Public Types Documentation #

typedef Iterator #

typedef std::vector<T>::iterator wrenbind17::StdVectorBindings< T >::Iterator;

typedef Vector #

typedef std::vector<T> wrenbind17::StdVectorBindings< T >::Vector;

Public Functions Documentation #

function setIndex #

static inline void setIndex(
    Vector & self,
    size_t index,
    T value
)

function getIndex #

static inline const T & getIndex(
    Vector & self,
    size_t index
)

function add #

static inline void add(
    Vector & self,
    T value
)

function iterate #

static inline std::variant< bool, Iterator > iterate(
    Vector & self,
    std::variant< std::nullptr_t, Iterator > other
)

function iteratorValue #

static inline const T & iteratorValue(
    Vector & self,
    std::shared_ptr< Iterator > other
)

function count #

static inline size_t count(
    Vector & self
)

function removeAt #

static inline T removeAt(
    Vector & self,
    int32_t index
)

function insert #

static inline void insert(
    Vector & self,
    int32_t index,
    T value
)

function contains #

static inline bool contains(
    Vector & self,
    const T & value
)

function pop #

static inline T pop(
    Vector & self
)

function clear #

static inline void clear(
    Vector & self
)

function size #

static inline size_t size(
    Vector & self
)

function empty #

static inline bool empty(
    Vector & self
)

function bind #

static inline void bind(
    ForeignModule & m,
    const std::string & name
)

Updated on 17 October 2023 at 12:26:25 UTC