ilang  0.9.1
ILAng: A Modeling and Verification Platform for SoCs
Public Types | Public Member Functions | List of all members
ilang::KeyVec< Key, T > Class Template Reference

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.
 
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.
 

Detailed Description

template<class Key, class T>
class ilang::KeyVec< Key, T >

The container that support key search and index access.


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