Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
sbk::engine::node_instance Class Reference

NodeInstances represent runtime versions of Nodes, either containers or busses. More...

#include <node_instance.h>

Inheritance diagram for sbk::engine::node_instance:
Collaboration diagram for sbk::engine::node_instance:

Public Member Functions

auto init (const event_init &init) -> sb_result
 
auto play () -> sb_result
 
auto stop (float fadeTime=0.0f) -> sb_result
 
auto update () -> sb_result
 
auto is_playing () const -> bool
 
auto is_stopped () const -> bool
 
auto get_referencing_node () const noexcept -> std::shared_ptr< node >
 
auto get_parent () const noexcept -> node_instance *
 
auto get_bus () const noexcept -> sc_node_group *
 
- Public Member Functions inherited from sbk::core::object
template<typename T >
auto casted_shared_from_this () -> std::shared_ptr< T >
 
template<typename T >
auto try_convert_object () noexcept -> T *
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
auto try_convert_object () const noexcept -> const T *
 Const version of try_convert_object.
 
auto destroy () -> void
 
auto get_object_type () const -> rttr::type
 
auto get_owner () const -> object_owner *
 
auto get_owner_object () const -> object *
 
auto get_on_destroy () -> MulticastDelegate< object * > &
 
auto get_flags () const -> object_flags
 
auto set_flags (object_flags flagsToSet) -> void
 
auto clear_flags (object_flags flagsToClear) -> void
 
auto has_flag (object_flags flagsToCheck) -> bool
 
template<class archive_class >
void serialize (archive_class &archive, const unsigned int fileVersion)
 
- Public Member Functions inherited from sbk::core::object_owner
auto create_runtime_object (const rttr::type &type) -> std::shared_ptr< object >
 
auto create_database_object (const rttr::type &type, bool addToDatabase=true) -> std::shared_ptr< database_object >
 
template<typename T >
auto create_runtime_object () -> std::shared_ptr< T >
 
template<typename T >
auto create_database_object (bool addToDatabase=true) -> std::shared_ptr< T >
 
auto add_reference_to_object (std::shared_ptr< database_object > &object) -> void
 
auto remove_object (const std::shared_ptr< object > &object) -> std::vector< std::shared_ptr< sbk::core::object > >::iterator
 
auto destroy_all () -> void
 
auto get_objects () -> std::vector< std::shared_ptr< object > > &
 
auto get_objects () const -> const std::vector< std::shared_ptr< object > > &
 
auto get_objects_size () const -> std::size_t
 

Detailed Description

NodeInstances represent runtime versions of Nodes, either containers or busses.


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