OpenSDN source code
|
#include <policy_set.h>
Public Types | |
typedef std::vector < AclDBEntryConstRef > | FirewallPolicyList |
![]() | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
PolicySet (const boost::uuids::uuid &uuid) | |
~PolicySet () | |
virtual bool | IsLess (const DBEntry &rhs) const |
virtual std::string | ToString () const |
virtual KeyPtr | GetDBRequestKey () const |
virtual void | SetKey (const DBRequestKey *key) |
bool | DBEntrySandesh (Sandesh *resp, std::string &name) const |
bool | Change (PolicySetTable *table, const PolicySetData *data) |
void | Delete () |
const boost::uuids::uuid & | uuid () const |
const std::string & | name () const |
virtual uint32_t | GetRefCount () const |
const AclDBEntry * | GetAcl (uint32_t index) |
FirewallPolicyList & | fw_policy_list () |
const FirewallPolicyList & | fw_policy_list () const |
bool | global () const |
![]() | |
AgentOperDBEntry () | |
virtual | ~AgentOperDBEntry () |
IFMapNode * | ifmap_node () const |
void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref) |
![]() | |
AgentDBEntry () | |
virtual | ~AgentDBEntry () |
void | SetRefState () const |
void | ClearRefState () const |
bool | IsActive () const |
DBState * | GetAgentDBEntryState (int listener_id) |
const DBState * | GetAgentDBEntryState (int listener_id) const |
virtual void | AllocateResources (ResourceManager *resource_manager) |
virtual void | FreeResources (ResourceManager *resource_manager) |
virtual void | PostAdd () |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
bool | operator< (const DBEntry &rhs) const |
![]() | |
DBEntryBase () | |
virtual | ~DBEntryBase () |
virtual bool | IsMoreSpecific (const std::string &match) const |
virtual bool | IsLessSpecific (const std::string &match) const |
void | SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state) |
void | ClearState (DBTableBase *tbl_base, ListenerId listener) |
DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
const DBState * | GetState (const DBTableBase *tbl_base, ListenerId listener) const |
bool | is_state_empty (DBTablePartBase *tpart) |
bool | is_state_empty_unlocked (DBTablePartBase *tpart) |
void | Delete () |
void | MarkDelete () |
void | ClearDelete () |
bool | IsDeleted () const |
void | set_onlist () |
void | clear_onlist () |
bool | is_onlist () |
void | SetOnRemoveQ () |
bool | IsOnRemoveQ () |
void | ClearOnRemoveQ () |
void | set_last_change_at (uint64_t time) |
void | set_last_change_at_to_now () |
const uint64_t | last_change_at () const |
const std::string | last_change_at_str () const |
void | set_last_update_at (uint64_t time) |
void | set_last_update_at_to_now () |
const uint64_t | last_update_at () const |
DBTablePartBase * | get_table_partition () const |
void | set_table_partition (DBTablePartBase *tpart) |
DBTableBase * | get_table () const |
void | Notify () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (PolicySet) | |
![]() | |
uint32_t | GetRefCount () const |
AgentRefCount () | |
AgentRefCount (const AgentRefCount &) | |
AgentRefCount & | operator= (const AgentRefCount &) |
virtual | ~AgentRefCount () |
void | swap (AgentRefCount &) |
Private Attributes | |
boost::uuids::uuid | uuid_ |
std::string | name_ |
FirewallPolicyUuidList | fw_policy_uuid_list_ |
FirewallPolicyList | fw_policy_list_ |
bool | global_ |
![]() | |
tbb::mutex | back_ref_mutex_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
class | PolicySetTable |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
Definition at line 65 of file policy_set.h.
typedef std::vector<AclDBEntryConstRef> PolicySet::FirewallPolicyList |
Definition at line 67 of file policy_set.h.
PolicySet::PolicySet | ( | const boost::uuids::uuid & | uuid | ) |
Definition at line 17 of file policy_set.cc.
PolicySet::~PolicySet | ( | ) |
Definition at line 21 of file policy_set.cc.
bool PolicySet::Change | ( | PolicySetTable * | table, |
const PolicySetData * | data | ||
) |
|
virtual |
Implements AgentDBEntry.
Definition at line 92 of file policy_set.cc.
void PolicySet::Delete | ( | ) |
|
private |
|
inline |
Definition at line 90 of file policy_set.h.
|
inline |
Definition at line 94 of file policy_set.h.
|
inline |
Definition at line 86 of file policy_set.h.
|
virtual |
Implements DBEntryBase.
Definition at line 38 of file policy_set.cc.
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 82 of file policy_set.h.
|
inline |
Definition at line 98 of file policy_set.h.
|
virtual |
Implements DBEntry.
Definition at line 25 of file policy_set.cc.
|
inline |
Definition at line 80 of file policy_set.h.
|
virtual |
Implements DBEntry.
Definition at line 43 of file policy_set.cc.
|
virtual |
Implements DBEntryBase.
Definition at line 30 of file policy_set.cc.
|
inline |
Definition at line 79 of file policy_set.h.
|
friend |
Definition at line 103 of file policy_set.h.
|
private |
Definition at line 107 of file policy_set.h.
|
private |
Definition at line 106 of file policy_set.h.
|
private |
Definition at line 108 of file policy_set.h.
|
private |
Definition at line 105 of file policy_set.h.
|
private |
Definition at line 104 of file policy_set.h.