OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
7
IFMapObject::IFMapObject
()
8
: refcount_(0), sequence_number_(0) {
9
}
10
11
IFMapObject::~IFMapObject
() {
12
}
13
14
void
IFMapObject::Release
(
IFMapObject
*
object
) {
15
if
(!object->
node_
.is_linked()) {
16
delete
object;
17
}
18
}
19
20
IFMapIdentifier::IFMapIdentifier
() {
21
}
22
23
IFMapIdentifier::IFMapIdentifier
(
int
property_count) :
24
property_set_(property_count), old_property_set_(property_count) {
25
}
26
27
void
IFMapIdentifier::TransferPropertyToOldProperty
() {
28
old_property_set_
=
property_set_
;
29
property_set_
.reset();
30
}
31
32
bool
IFMapIdentifier::ResolveStalePropertiesAndResetOld
() {
33
bool
ret = (
property_set_
!=
old_property_set_
);
34
old_property_set_
.reset();
35
return
ret;
36
}
37
38
bool
IFMapIdentifier::ResolveStaleness
() {
39
return
ResolveStalePropertiesAndResetOld
();
40
}
41
42
IFMapLinkAttr::IFMapLinkAttr
() {
43
}
44
45
// TODO: might need to resolve staleness by checking contents of data
46
bool
IFMapLinkAttr::ResolveStaleness
() {
47
return
false
;
48
}
49
IFMapIdentifier::old_property_set_
boost::dynamic_bitset old_property_set_
Definition:
ifmap_object.h:104
IFMapObject::~IFMapObject
virtual ~IFMapObject()
Definition:
ifmap_object.cc:11
IFMapLinkAttr::ResolveStaleness
virtual bool ResolveStaleness()
Definition:
ifmap_object.cc:46
IFMapObject::node_
boost::intrusive::list_member_hook node_
Definition:
ifmap_object.h:51
IFMapIdentifier::IFMapIdentifier
IFMapIdentifier()
Definition:
ifmap_object.cc:20
IFMapIdentifier::ResolveStaleness
virtual bool ResolveStaleness()
Definition:
ifmap_object.cc:38
IFMapObject
Definition:
ifmap_object.h:23
IFMapIdentifier::ResolveStalePropertiesAndResetOld
bool ResolveStalePropertiesAndResetOld()
Definition:
ifmap_object.cc:32
IFMapLinkAttr::IFMapLinkAttr
IFMapLinkAttr()
Definition:
ifmap_object.cc:42
IFMapObject::IFMapObject
IFMapObject()
Definition:
ifmap_object.cc:7
IFMapObject::Release
static void Release(IFMapObject *object)
Definition:
ifmap_object.cc:14
IFMapIdentifier::TransferPropertyToOldProperty
void TransferPropertyToOldProperty()
Definition:
ifmap_object.cc:27
ifmap_object.h
IFMapIdentifier::property_set_
boost::dynamic_bitset property_set_
Definition:
ifmap_object.h:103
contrail
controller
src
ifmap
ifmap_object.cc
Generated by
1.8.5