summaryrefslogtreecommitdiff
path: root/examples/Smart_Pointers/Gadget.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
commit3df4acfa816441fc28a95dee6d0191a927145d95 (patch)
treeb5ae7ca44662cfd8e5c95f1826e4406021a606f5 /examples/Smart_Pointers/Gadget.h
parent60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff)
downloadATCD-pre-subset.tar.gz
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'examples/Smart_Pointers/Gadget.h')
-rw-r--r--examples/Smart_Pointers/Gadget.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/examples/Smart_Pointers/Gadget.h b/examples/Smart_Pointers/Gadget.h
deleted file mode 100644
index 65b1fb0a34e..00000000000
--- a/examples/Smart_Pointers/Gadget.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- C++ -*- */
-//=============================================================================
-/**
- * @file Gadget.h
- *
- * $Id$
- *
- * @author Christopher Kohlhoff <chris@kohlhoff.com>
- */
-//=============================================================================
-
-#ifndef GADGET_H
-#define GADGET_H
-
-#include "ace/Bound_Ptr.h"
-#include "Gadget_Part.h"
-
-/**
- * @class Gadget
- *
- * @brief An interface for some high-level application object.
- */
-class Gadget
-{
-public:
- /// Destructor.
- virtual ~Gadget (void);
-
- /// Add a new part to the gadget. The gadget automatically takes shared
- /// responsibility for the ownership of the part object since we are passing
- /// a Gadget_Part_var.
- virtual void add_part (Gadget_Part_var part) = 0;
-
- /// Remove a random part from the gadget. Responsibility for ownership of the
- /// part is automatically returned to the caller since we are returning a
- /// Gadget_Part_var.
- virtual Gadget_Part_var remove_part (void) = 0;
-
- /// Ask the gadget to print information about the parts that it contains.
- virtual void list_parts (void) = 0;
-};
-
-// The Gadget_var smart pointer has shared (reference counted) ownership
-// semantics.
-typedef ACE_Strong_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX> Gadget_var;
-
-// The Gadget_ptr smart pointer has no ownership semantics, but supports
-// conversion back into a Gadget_var.
-typedef ACE_Weak_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX> Gadget_ptr;
-
-#endif /* GADGET_H */