Wayverb
wayverb::core::generic_scene_data< Vertex, Surface > Class Template Referencefinal

Public Types

using vertex_type = Vertex
 
using surface_type = Surface
 

Public Member Functions

 generic_scene_data (util::aligned::vector< triangle > triangles, util::aligned::vector< vertex_type > vertices, util::aligned::vector< surface_type > surfaces)
 
const util::aligned::vector< triangle > & get_triangles () const
 
const util::aligned::vector< vertex_type > & get_vertices () const
 
const util::aligned::vector< surface_type > & get_surfaces () const
 
void swap (generic_scene_data &rhs) noexcept
 
template<typename It >
void set_surfaces (It begin, It end)
 
void set_surfaces (const surface_type &surface)
 

Member Function Documentation

template<typename Vertex, typename Surface>
template<typename It >
void wayverb::core::generic_scene_data< Vertex, Surface >::set_surfaces ( It  begin,
It  end 
)
inline

This looks dumb, but the idea is to maintain the strong exception safety guarantee.

template<typename Vertex, typename Surface>
void wayverb::core::generic_scene_data< Vertex, Surface >::set_surfaces ( const surface_type &  surface)
inline

Strongly exception safe as long as surface_type has a nothrow copy constructor, which it should do if it is POD.


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