|
ilang
1.1.4
ILAng: A Modeling and Verification Platform for SoCs
|
The container that support key search and index access. More...
#include <container.h>
Public Types | |
|
typedef std::shared_ptr < KeyVecIt< Key, T > > | KeyVecItPtr |
| Iterator pointer type. | |
Public Member Functions | |
| KeyVec () | |
| Default constructor. | |
| ~KeyVec () | |
| Default destructor. | |
| bool | push_back (const Key &key, const T &data) |
| Push back a data member. The name MUST NOT be registerd before. | |
| T | operator[] (const size_t &idx) const |
| Get the data by index. | |
| size_t | size () const |
| Return the number of data stored. | |
| bool | empty () const |
| Return whether is empty. | |
| void | clear () |
| Clear all stored data. | |
| KeyVecItPtr | find (const Key &key) const |
| Return whether the key has been registered. | |
| KeyVecItPtr | end () const |
| Return END, can be used to check whether data is found. | |
The container that support key search and index access.
1.8.5