OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ifmap_object.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #include "ifmap/ifmap_object.h"
6 
8  : refcount_(0), sequence_number_(0) {
9 }
10 
12 }
13 
15  if (!object->node_.is_linked()) {
16  delete object;
17  }
18 }
19 
21 }
22 
23 IFMapIdentifier::IFMapIdentifier(int property_count) :
24  property_set_(property_count), old_property_set_(property_count) {
25 }
26 
29  property_set_.reset();
30 }
31 
33  bool ret = (property_set_ != old_property_set_);
34  old_property_set_.reset();
35  return ret;
36 }
37 
40 }
41 
43 }
44 
45 // TODO: might need to resolve staleness by checking contents of data
47  return false;
48 }
49 
boost::dynamic_bitset old_property_set_
Definition: ifmap_object.h:104
virtual ~IFMapObject()
Definition: ifmap_object.cc:11
virtual bool ResolveStaleness()
Definition: ifmap_object.cc:46
boost::intrusive::list_member_hook node_
Definition: ifmap_object.h:51
virtual bool ResolveStaleness()
Definition: ifmap_object.cc:38
bool ResolveStalePropertiesAndResetOld()
Definition: ifmap_object.cc:32
static void Release(IFMapObject *object)
Definition: ifmap_object.cc:14
void TransferPropertyToOldProperty()
Definition: ifmap_object.cc:27
boost::dynamic_bitset property_set_
Definition: ifmap_object.h:103