next up previous contents
Next: VHDL Types Up: The acl Class Previous: acl Class Methods

acl Class Instantiation

A new acl instances can be created via a new operator only! This is because the actual size of an instance is unknown at compile time.

Example:

acl *new_acl = new(4) acl; // This acl instance can store up to 4 int
                           // values

*new_acl << 1 << 2 << 3 << 4; // Store the list 1 -> 2 -> 3 -> 4 

// The next example shows how to create and pass over a new acl 
// instance to a function which takes a ``acl*'' as parameter.
func(&(*new(2) acl << -10 << 32));




1998-11-17