XRootD
Loading...
Searching...
No Matches
XrdSecEntityXtra Class Reference

#include <XrdSecEntityXtra.hh>

Inheritance diagram for XrdSecEntityXtra:
Collaboration diagram for XrdSecEntityXtra:

Public Member Functions

 XrdSecEntityXtra ()
 ~XrdSecEntityXtra ()
void Reset ()
Public Member Functions inherited from XrdSecEntityAttr
 XrdSecEntityAttr (XrdSecEntityXtra *xtra)
 ~XrdSecEntityAttr ()
bool Add (const std::string &key, const std::string &val, bool replace=false)
bool Add (XrdSecAttr &attr)
bool Get (const std::string &key, std::string &val)
XrdSecAttrGet (const void *sigkey)
std::vector< std::string > Keys ()
void List (XrdSecEntityAttrCB &attrCB)

Public Attributes

std::map< std::string, std::string > attrMap
std::vector< XrdSecAttr * > attrVec
XrdSysMutex xMutex

Detailed Description

Definition at line 39 of file XrdSecEntityXtra.hh.

Constructor & Destructor Documentation

◆ XrdSecEntityXtra()

XrdSecEntityXtra::XrdSecEntityXtra ( )
inline

Definition at line 51 of file XrdSecEntityXtra.hh.

51: XrdSecEntityAttr(this) {}
XrdSecEntityAttr(XrdSecEntityXtra *xtra)

References XrdSecEntityAttr::XrdSecEntityAttr().

Here is the call graph for this function:

◆ ~XrdSecEntityXtra()

XrdSecEntityXtra::~XrdSecEntityXtra ( )
inline

Definition at line 52 of file XrdSecEntityXtra.hh.

References Reset().

Here is the call graph for this function:

Member Function Documentation

◆ Reset()

void XrdSecEntityXtra::Reset ( )

Definition at line 37 of file XrdSecEntityXtra.cc.

38{
39 XrdSysMutexHelper mHelp(xMutex);
40
41// Cleanup the key-value map
42//
43 attrMap.clear();
44
45// Run through attribute objects, deleting each one
46//
47 std::vector<XrdSecAttr*>::iterator it;
48 for (it = attrVec.begin(); it != attrVec.end(); it++)
49 {(*it)->Delete();}
50
51// Now clear the whole vector
52//
53 attrVec.clear();
54}
std::vector< XrdSecAttr * > attrVec
std::map< std::string, std::string > attrMap

References attrMap, attrVec, and xMutex.

Referenced by ~XrdSecEntityXtra().

Here is the caller graph for this function:

Member Data Documentation

◆ attrMap

std::map<std::string, std::string> XrdSecEntityXtra::attrMap

Definition at line 47 of file XrdSecEntityXtra.hh.

Referenced by Reset().

◆ attrVec

std::vector<XrdSecAttr *> XrdSecEntityXtra::attrVec

Definition at line 45 of file XrdSecEntityXtra.hh.

Referenced by Reset().

◆ xMutex

XrdSysMutex XrdSecEntityXtra::xMutex

Definition at line 43 of file XrdSecEntityXtra.hh.

Referenced by Reset().


The documentation for this class was generated from the following files: