Anope IRC Services  Version 2.0
Data Structures | Public Member Functions | Data Fields
NSCertListImpl Struct Reference
Inheritance diagram for NSCertListImpl:
Inheritance graph
[legend]
Collaboration diagram for NSCertListImpl:
Collaboration graph
[legend]

Data Structures

struct  ExtensibleItem
 

Public Member Functions

 NSCertListImpl (Extensible *obj)
 
 ~NSCertListImpl ()
 
void AddCert (const Anope::string &entry) anope_override
 
Anope::string GetCert (unsigned entry) const anope_override
 
unsigned GetCertCount () const anope_override
 
bool FindCert (const Anope::string &entry) const anope_override
 
void EraseCert (const Anope::string &entry) anope_override
 
void ClearCert () anope_override
 
void Check () anope_override
 
- Public Member Functions inherited from NSCertList
virtual ~NSCertList ()
 

Data Fields

Serialize::Reference< NickCorenc
 
std::vector< Anope::stringcerts
 

Additional Inherited Members

- Protected Member Functions inherited from NSCertList
 NSCertList ()
 

Detailed Description

Definition at line 30 of file ns_cert.cpp.

Constructor & Destructor Documentation

NSCertListImpl::NSCertListImpl ( Extensible obj)
inline

Definition at line 36 of file ns_cert.cpp.

NSCertListImpl::~NSCertListImpl ( )
inline

Definition at line 38 of file ns_cert.cpp.

References ClearCert().

Member Function Documentation

void NSCertListImpl::AddCert ( const Anope::string entry)
inlinevirtual

Add an entry to the nick's certificate list

Parameters
entryThe fingerprint to add to the cert list

Adds a new entry into the cert list.

Implements NSCertList.

Definition at line 49 of file ns_cert.cpp.

References FOREACH_MOD, and nc.

void NSCertListImpl::Check ( )
inlinevirtual

Implements NSCertList.

Definition at line 116 of file ns_cert.cpp.

References Extensible::Shrink().

void NSCertListImpl::ClearCert ( )
inlinevirtual

Clears the entire nick's cert list

Deletes all the memory allocated in the certificate list vector and then clears the vector.

Implements NSCertList.

Definition at line 108 of file ns_cert.cpp.

References FOREACH_MOD.

Referenced by ~NSCertListImpl().

void NSCertListImpl::EraseCert ( const Anope::string entry)
inlinevirtual

Erase a fingerprint from the nick's certificate list

Parameters
entryThe fingerprint to remove

Removes the specified fingerprint from the cert list.

Implements NSCertList.

Definition at line 93 of file ns_cert.cpp.

References FOREACH_MOD.

bool NSCertListImpl::FindCert ( const Anope::string entry) const
inlinevirtual

Find an entry in the nick's cert list

Parameters
entryThe fingerprint to search for
Returns
True if the fingerprint is found in the cert list, false otherwise

Search for an fingerprint within the cert list.

Implements NSCertList.

Definition at line 82 of file ns_cert.cpp.

Anope::string NSCertListImpl::GetCert ( unsigned  entry) const
inlinevirtual

Get an entry from the nick's cert list by index

Parameters
entryIndex in the certificaate list vector to retrieve
Returns
The fingerprint entry of the given index if within bounds, an empty string if the vector is empty or the index is out of bounds

Retrieves an entry from the certificate list corresponding to the given index.

Implements NSCertList.

Definition at line 63 of file ns_cert.cpp.

unsigned NSCertListImpl::GetCertCount ( ) const
inlinevirtual

Implements NSCertList.

Definition at line 70 of file ns_cert.cpp.

Field Documentation

std::vector<Anope::string> NSCertListImpl::certs

Definition at line 33 of file ns_cert.cpp.

Serialize::Reference<NickCore> NSCertListImpl::nc

Definition at line 32 of file ns_cert.cpp.

Referenced by AddCert().


The documentation for this struct was generated from the following file: