#include <collect1.h>
Inheritance diagram for SnmpCollection< T >:
Public Member Functions | |
| SnmpCollection () | |
| Create an empty collection. | |
| SnmpCollection (const T &t) | |
| Create a collection using a single template object. | |
| SnmpCollection (const SnmpCollection< T > &c) | |
| Create a collection with another collection (copy constructor). | |
| ~SnmpCollection () | |
| Destroy the collection. | |
| int | size () const |
| Get the size of the collection. | |
| SnmpCollection & | operator+= (const T &i) |
| Append an item to the collection. | |
| SnmpCollection & | operator= (const SnmpCollection< T > &c) |
| Assign one collection to another. | |
| T | operator[] (const int p) const |
| Access an element in the collection. | |
| int | set_element (const T &i, const int p) |
| Set an element in the collection. | |
| int | get_element (T &t, const int p) const |
| Get an element in the collection. | |
| int | get_element (T *&t, const int p) const |
| Get a pointer to an element in the collection. | |
| void | apply (void f(T &)) |
| Apply an function to the entire collection, iterator. | |
| int | find (const T &i, int &pos) const |
| Looks for an element in the collection. | |
| int | remove (const T &i) |
| Delete an element in the collection. | |
| void | clear () |
| Delete all elements within the collection. | |
| SnmpCollection () | |
| Create an empty collection. | |
| SnmpCollection (const T &t) | |
| Create a collection using a single template object. | |
| SnmpCollection (const SnmpCollection< T > &c) | |
| Create a collection with another collection (copy constructor). | |
| ~SnmpCollection () | |
| Destroy the collection. | |
| int | size () const |
| Get the size of the collection. | |
| SnmpCollection & | operator+= (const T &i) |
| Append an item to the collection. | |
| SnmpCollection & | operator= (const SnmpCollection< T > &c) |
| Assign one collection to another. | |
| T | operator[] (const int p) const |
| Access an element in the collection. | |
| int | set_element (const T &i, const int p) |
| Set an element in the collection. | |
| int | get_element (T &t, const int p) const |
| Get an element in the collection. | |
| int | get_element (T *&t, const int p) const |
| Get a pointer to an element in the collection. | |
| void | apply (void f(T &)) |
| Apply an function to the entire collection, iterator. | |
| int | find (const T &i, int &pos) const |
| Looks for an element in the collection. | |
| int | remove (const T &i) |
| Delete an element in the collection. | |
| void | clear () |
| Delete all elements within the collection. | |
Private Attributes | |
| int | count |
| cBlock | data |
|
|||||||||
|
Create an empty collection.
Definition at line 50 of file collect1.h. |
|
||||||||||
|
Create a collection using a single template object.
Definition at line 56 of file collect1.h. |
|
||||||||||
|
Create a collection with another collection (copy constructor).
Definition at line 65 of file collect1.h. |
|
|||||||||
|
Destroy the collection.
Definition at line 95 of file collect1.h. |
|
|||||||||
|
Create an empty collection.
|
|
||||||||||
|
Create a collection using a single template object.
|
|
||||||||||
|
Create a collection with another collection (copy constructor).
|
|
|||||||||
|
Destroy the collection.
|
|
||||||||||
|
Apply an function to the entire collection, iterator.
|
|
||||||||||
|
Apply an function to the entire collection, iterator.
Definition at line 250 of file collect1.h. |
|
|||||||||
|
Delete all elements within the collection.
|
|
|||||||||
|
Delete all elements within the collection.
Definition at line 311 of file collect1.h. |
|
||||||||||||||||
|
Looks for an element in the collection.
|
|
||||||||||||||||
|
Looks for an element in the collection.
Definition at line 265 of file collect1.h. |
|
||||||||||||||||
|
Get a pointer to an element in the collection.
|
|
||||||||||||||||
|
Get an element in the collection.
|
|
||||||||||||||||
|
Get a pointer to an element in the collection.
Definition at line 234 of file collect1.h. |
|
||||||||||||||||
|
Get an element in the collection.
Definition at line 216 of file collect1.h. Referenced by SnmpCollection< GenAddress >::operator=(). |
|
||||||||||
|
Append an item to the collection.
|
|
||||||||||
|
Append an item to the collection.
Definition at line 111 of file collect1.h. |
|
||||||||||
|
Assign one collection to another.
|
|
||||||||||
|
Assign one collection to another.
Definition at line 136 of file collect1.h. |
|
||||||||||
|
Access an element in the collection.
|
|
||||||||||
|
Access an element in the collection.
Definition at line 173 of file collect1.h. |
|
||||||||||
|
Delete an element in the collection.
|
|
||||||||||
|
Delete an element in the collection.
Definition at line 282 of file collect1.h. |
|
||||||||||||||||
|
Set an element in the collection.
|
|
||||||||||||||||
|
Set an element in the collection.
Definition at line 197 of file collect1.h. |
|
|||||||||
|
Get the size of the collection.
|
|
|||||||||
|
Get the size of the collection.
Definition at line 103 of file collect1.h. |
|
|||||
|
Definition at line 134 of file collect2.h. Referenced by SnmpCollection< GenAddress >::operator=(). |
|
|||||
|
Definition at line 135 of file collect2.h. |
1.3.2