Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ref_vector< T > Class Template Reference

Simple reference-counted vector container based on std::vector and ref. More...

#include <mitsuba/core/ref.h>

+ Inheritance diagram for ref_vector< T >:

Public Types

typedef std::vector< ref< T > > parent_type
 

Public Member Functions

 ref_vector ()
 
 ref_vector (size_t size)
 
 ref_vector (const ref_vector &vec)
 
void ensureUnique ()
 Remove all duplicates without changing the order. More...
 
bool contains (const T *ptr) const
 Check if a certain pointer is contained in the vector. More...
 

Detailed Description

template<typename T>
class ref_vector< T >

Simple reference-counted vector container based on std::vector and ref.

Member Typedef Documentation

template<typename T>
typedef std::vector< ref<T> > ref_vector< T >::parent_type

Constructor & Destructor Documentation

template<typename T>
ref_vector< T >::ref_vector ( )
inline
template<typename T>
ref_vector< T >::ref_vector ( size_t  size)
inline
template<typename T>
ref_vector< T >::ref_vector ( const ref_vector< T > &  vec)
inline

Member Function Documentation

template<typename T>
bool ref_vector< T >::contains ( const T *  ptr) const
inline

Check if a certain pointer is contained in the vector.

template<typename T>
void ref_vector< T >::ensureUnique ( )
inline

Remove all duplicates without changing the order.


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