Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::WrapperCollectable< T > Class Template Reference

A Collectable wrapper for arbitrary content. More...

#include <bond/vm/collector.h>

Inheritance diagram for Bond::WrapperCollectable< T >:
Bond::Collectable

Public Types

typedef T ContentType

Public Member Functions

template<typename... Args>
 WrapperCollectable (Args &&... args)
 Constructs the wrapped content in place.
virtual ~WrapperCollectable ()
const T & GetContent () const
T & GetContent ()
Public Member Functions inherited from Bond::Collectable
virtual ~Collectable ()

Detailed Description

template<typename T>
class Bond::WrapperCollectable< T >

A Collectable wrapper for arbitrary content.

This class can be used to register non-Collectable objects with a Collector by storing them as wrapped content.

Member Typedef Documentation

◆ ContentType

template<typename T>
typedef T Bond::WrapperCollectable< T >::ContentType

Constructor & Destructor Documentation

◆ WrapperCollectable()

template<typename T>
template<typename... Args>
Bond::WrapperCollectable< T >::WrapperCollectable ( Args &&... args)
inlineexplicit

Constructs the wrapped content in place.

Parameters
argsArguments forwarded to the wrapped content constructor.

◆ ~WrapperCollectable()

template<typename T>
virtual Bond::WrapperCollectable< T >::~WrapperCollectable ( )
inlinevirtual

Member Function Documentation

◆ GetContent() [1/2]

template<typename T>
T & Bond::WrapperCollectable< T >::GetContent ( )
inline

◆ GetContent() [2/2]

template<typename T>
const T & Bond::WrapperCollectable< T >::GetContent ( ) const
inline

The documentation for this class was generated from the following file:
  • include/bond/vm/collector.h