FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
November 01, 2000

Creating Truly Maintainable Class Factories

(Page 6 of 8)
November 2000/Creating Truly Maintainable Class Factories/Listing 5

Listing 5: Partial listing of class dll_object_ptr

template< class object >
class dll_object_ptr
  {
    typedef dll_object_ref< object > ref_type;
  public:

    // not shown, default and copy constructors
    ...

    dll_object_ptr
      ( dll_sentinel&      dll
      , std::string const& func_name )
      : m_obj( new ref_type( dll , func_name ) )
      { }

    // not shown: functions release, reset, operator->,
    // get, and operator*
    ...

  private: // data

    ref_type*    m_obj;

  }; // class dll_object_ptr< >

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK