Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

cxx_lock.cpp

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1997-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: cxx_lock.cpp,v 12.1 2005/06/16 20:20:59 bostic Exp $
00008  */
00009 
00010 #include "db_config.h"
00011 
00012 #include <errno.h>
00013 #include <string.h>
00014 
00015 #include "db_cxx.h"
00016 #include "dbinc/cxx_int.h"
00017 
00019 //                                                                    //
00020 //                            DbLock                                  //
00021 //                                                                    //
00023 
00024 DbLock::DbLock(DB_LOCK value)
00025 :       lock_(value)
00026 {
00027 }
00028 
00029 DbLock::DbLock()
00030 {
00031         memset(&lock_, 0, sizeof(DB_LOCK));
00032 }
00033 
00034 DbLock::DbLock(const DbLock &that)
00035 :       lock_(that.lock_)
00036 {
00037 }
00038 
00039 DbLock &DbLock::operator = (const DbLock &that)
00040 {
00041         lock_ = that.lock_;
00042         return (*this);
00043 }

Generated on Sun Dec 25 12:14:18 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2