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