nngn
Loading...
Searching...
No Matches
nngn::lua_vector< T > Class Template Reference

Type used to get/push vectors as user data in Lua. More...

#include <lua_vector.h>

Inheritance diagram for nngn::lua_vector< T >:
Collaboration diagram for nngn::lua_vector< T >:

Public Member Functions

 lua_vector (lua_Integer n)
 Convenience n-element construction from a lua_Integer.
 
 lua_vector (base_type &&rhs)
 

Private Types

using base_type = typename std::vector<T>
 

Detailed Description

template<typename T>
class nngn::lua_vector< T >

Type used to get/push vectors as user data in Lua.

Member Typedef Documentation

◆ base_type

template<typename T >
using nngn::lua_vector< T >::base_type = typename std::vector<T>
private

Constructor & Destructor Documentation

◆ lua_vector() [1/2]

template<typename T >
nngn::lua_vector< T >::lua_vector ( lua_Integer n)
inlineexplicit

Convenience n-element construction from a lua_Integer.

◆ lua_vector() [2/2]

template<typename T >
nngn::lua_vector< T >::lua_vector ( base_type && rhs)
inlineexplicit

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