|
SNMP++
3.3.11
|
#include <collect.h>

Classes | |
| class | cBlock |
Public Member Functions | |
| SnmpCollection () | |
| Create an empty collection. More... | |
| SnmpCollection (const T &t) | |
| Create a collection using a single template object. More... | |
| SnmpCollection (const SnmpCollection< T > &c) | |
| Create a collection with another collection (copy constructor). More... | |
| ~SnmpCollection () | |
| Destroy the collection. More... | |
| int | size () const |
| Get the size of the collection. More... | |
| SnmpCollection & | operator+= (const T &i) |
| Append an item to the collection. More... | |
| SnmpCollection & | operator= (const SnmpCollection< T > &c) |
| Assign one collection to another. More... | |
| T | operator[] (const int p) const |
| Access an element in the collection. More... | |
| int | set_element (const T &i, const int p) |
| Set an element in the collection. More... | |
| int | get_element (T &t, const int p) const |
| Get an element in the collection. More... | |
| int | get_element (T *&t, const int p) const |
| Get a pointer to an element in the collection. More... | |
| void | apply (void f(T &)) |
| Apply an function to the entire collection, iterator. More... | |
| int | find (const T &i, int &pos) const |
| Looks for an element in the collection. More... | |
| int | remove (const T &i) |
| Delete an element in the collection. More... | |
| void | clear () |
| Delete all elements within the collection. More... | |
Private Attributes | |
| int | count |
| cBlock | data |
|
inline |
|
inline |
|
inline |
Create a collection with another collection (copy constructor).
Definition at line 98 of file collect.h.
References SnmpCollection< T >::count, SnmpCollection< T >::get_element(), SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
|
inline |
|
inline |
Delete all elements within the collection.
Definition at line 344 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, SnmpCollection< T >::cBlock::next, and SnmpCollection< T >::cBlock::prev.
|
inline |
|
inline |
Get an element in the collection.
Definition at line 249 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
Referenced by SnmpCollection< T >::operator=(), and SnmpCollection< T >::SnmpCollection().
|
inline |
Get a pointer to an element in the collection.
Definition at line 267 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
Append an item to the collection.
Definition at line 144 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
Assign one collection to another.
Definition at line 169 of file collect.h.
References SnmpCollection< T >::count, SnmpCollection< T >::get_element(), SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
Access an element in the collection.
Definition at line 206 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
|
inline |
Set an element in the collection.
Definition at line 230 of file collect.h.
References SnmpCollection< T >::cBlock::item, MAXT, and SnmpCollection< T >::cBlock::next.
|
inline |
|
private |
Definition at line 378 of file collect.h.
Referenced by SnmpCollection< T >::operator=(), and SnmpCollection< T >::SnmpCollection().
|
private |