Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Protected Attributes | List of all members
cuts::i_cut::referenced_data< T > Struct Template Reference

A weak reference to an arbitrary object with tracked type_info More...

#include <bayeux/cuts/i_cut.h>

Inheritance diagram for cuts::i_cut::referenced_data< T >:
cuts::i_cut::i_referenced_data

Public Member Functions

const T & get () const
 
virtual const std::type_info * get_typeinfo () const
 
virtual bool match (const std::type_info *tit_) const
 
void set (const T &obj)
 
virtual operator bool () const
 
void reset ()
 
 referenced_data ()
 
 referenced_data (const T &obj)
 
virtual ~referenced_data ()
 
- Public Member Functions inherited from cuts::i_cut::i_referenced_data
virtual ~i_referenced_data ()
 

Protected Attributes

const T * _address
 Address of the referenced object. More...
 
const std::type_info * _ti
 

Detailed Description

template<class T>
struct cuts::i_cut::referenced_data< T >

A weak reference to an arbitrary object with tracked type_info

Constructor & Destructor Documentation

◆ referenced_data() [1/2]

template<class T>
cuts::i_cut::referenced_data< T >::referenced_data ( )
inline

◆ referenced_data() [2/2]

template<class T>
cuts::i_cut::referenced_data< T >::referenced_data ( const T &  obj)
inline

◆ ~referenced_data()

template<class T>
virtual cuts::i_cut::referenced_data< T >::~referenced_data ( )
inlinevirtual

Member Function Documentation

◆ get()

template<class T>
const T& cuts::i_cut::referenced_data< T >::get ( ) const
inline

◆ get_typeinfo()

template<class T>
virtual const std::type_info* cuts::i_cut::referenced_data< T >::get_typeinfo ( ) const
inlinevirtual

◆ match()

template<class T>
virtual bool cuts::i_cut::referenced_data< T >::match ( const std::type_info *  tit_) const
inlinevirtual

◆ operator bool()

template<class T>
virtual cuts::i_cut::referenced_data< T >::operator bool ( ) const
inlinevirtual

◆ reset()

template<class T>
void cuts::i_cut::referenced_data< T >::reset ( )
inline

◆ set()

template<class T>
void cuts::i_cut::referenced_data< T >::set ( const T &  obj)
inline

Member Data Documentation

◆ _address

template<class T>
const T* cuts::i_cut::referenced_data< T >::_address
protected

Address of the referenced object.

◆ _ti

template<class T>
const std::type_info* cuts::i_cut::referenced_data< T >::_ti
protected

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