Rosetta
Classes | Typedefs | Functions
SharedPtrDemo.cc File Reference

Demo for boost shared_ptr. More...

#include <utility/pointer/owning_ptr.hh>
#include <utility/VirtualBase.hh>
#include <utility/excn/Exceptions.hh>
#include <boost/shared_ptr.hpp>
#include <memory>

Classes

struct  Base
 
class  Son
 

Typedefs

typedef boost::shared_ptr< int > intSP__
 
typedef boost::shared_ptr< int > intSP
 
typedef boost::shared_ptr< int const > intCSP
 
typedef utility::pointer::owning_ptr< BaseBaseOP
 
typedef utility::pointer::owning_ptr< Base const > BaseCOP
 
typedef boost::shared_ptr< BaseBaseSP
 
typedef boost::shared_ptr< Base const > BaseCSP
 
typedef utility::pointer::owning_ptr< SonSonOP
 
typedef utility::pointer::owning_ptr< Son const > SonCOP
 
typedef boost::shared_ptr< SonSonSP
 
typedef boost::shared_ptr< Son const > SonCSP
 

Functions

void foo_baseOP (BaseOP)
 
void foo_baseCOP (BaseCOP)
 
void foo_baseSP (BaseSP)
 
void foo_baseCSP (BaseCSP)
 
void foo_const_intSP (intCSP)
 
int main (int argc, char *argv[])
 

Detailed Description

Demo for boost shared_ptr.

Author
Sergey Lyskov

Typedef Documentation

◆ BaseCOP

typedef utility::pointer::owning_ptr< Base const > BaseCOP

◆ BaseCSP

typedef boost::shared_ptr<Base const> BaseCSP

◆ BaseOP

typedef utility::pointer::owning_ptr< Base > BaseOP

◆ BaseSP

typedef boost::shared_ptr<Base> BaseSP

◆ intCSP

typedef boost::shared_ptr<int const> intCSP

◆ intSP

typedef boost::shared_ptr<int> intSP

◆ intSP__

typedef boost::shared_ptr<int> intSP__

◆ SonCOP

typedef utility::pointer::owning_ptr< Son const > SonCOP

◆ SonCSP

typedef boost::shared_ptr<Son const> SonCSP

◆ SonOP

typedef utility::pointer::owning_ptr< Son > SonOP

◆ SonSP

typedef boost::shared_ptr<Son> SonSP

Function Documentation

◆ foo_baseCOP()

void foo_baseCOP ( BaseCOP  )

Referenced by main().

◆ foo_baseCSP()

void foo_baseCSP ( BaseCSP  )

Referenced by main().

◆ foo_baseOP()

void foo_baseOP ( BaseOP  )

◆ foo_baseSP()

void foo_baseSP ( BaseSP  )

Referenced by main().

◆ foo_const_intSP()

void foo_const_intSP ( intCSP  )

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)