Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
SharedList< T > Struct Template Reference

#include <SharedList.hpp>

Inheritance diagram for SharedList< T >:
SharedClass

Public Member Functions

 SharedList ()
 
void push_back (T &&s)
 
void push_back (const T &s)
 
void erase (int i)
 
T & operator[] (size_t n)
 
size_t size ()
 

Public Attributes

int len = 0
 
std::function< void(int, T &)> element_pushed_back_func
 
std::function< void(int)> element_removed_func
 
std::vector< T > container
 

Constructor & Destructor Documentation

template<typename T >
SharedList< T >::SharedList ( )
inline

Member Function Documentation

template<typename T >
void SharedList< T >::erase ( int  i)
inline
template<typename T >
T& SharedList< T >::operator[] ( size_t  n)
inline
template<typename T >
void SharedList< T >::push_back ( T &&  s)
inline
template<typename T >
void SharedList< T >::push_back ( const T &  s)
inline
template<typename T >
size_t SharedList< T >::size ( )
inline

Member Data Documentation

template<typename T >
std::vector<T> SharedList< T >::container
template<typename T >
std::function<void(int, T &)> SharedList< T >::element_pushed_back_func
template<typename T >
std::function<void(int)> SharedList< T >::element_removed_func

Referenced by SharedList< T >::erase().

template<typename T >
int SharedList< T >::len = 0

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