MetaCC::Pattern::Entry Struct Reference

#include <metacc_compilation.h>

List of all members.


Detailed Description

Single entry (or "record") in Pattern.

Definition at line 156 of file metacc_compilation.h.

Public Types

 EK_BIT
 bit
 EK_DONTCARE
 "do not care" bit
 EK_BITFIELD
 bitfield
 EK_TEMPLATE
 template
enum  Kind { EK_BIT, EK_DONTCARE, EK_BITFIELD, EK_TEMPLATE }
 Enumeration of kinds of entries in Pattern. More...

Public Member Functions

 Entry (Kind kind, int bit_len, int value, const std::string name)
 Construct entry (convenience function).

Public Attributes

Kind kind
 kind of this entry
unsigned int bit_len
 length of this entry in bits (ALWAYS specified)
int value
 for kind BIT this is the bit's value, for others it's always 0.
std::string name
 for kinds FIELD and TEMPLATE this is the name, for others this is empty string.


Member Enumeration Documentation

enum MetaCC::Pattern::Entry::Kind

Enumeration of kinds of entries in Pattern.

Enumerator:
EK_BIT  bit
EK_DONTCARE  "do not care" bit
EK_BITFIELD  bitfield
EK_TEMPLATE  template

Definition at line 159 of file metacc_compilation.h.


Constructor & Destructor Documentation

MetaCC::Pattern::Entry::Entry ( Kind  kind,
int  bit_len,
int  value,
const std::string  name 
)

Construct entry (convenience function).

< Kind of this entry

< Lenght of this entry in bits

< Value in this entry (usable in Kind::EK_BIT entries

< Name of this Bitfield or Template (usable in corresponding kinds of entries)

Definition at line 11 of file metacc.cpp.


Member Data Documentation

Kind MetaCC::Pattern::Entry::kind

kind of this entry

Definition at line 167 of file metacc_compilation.h.

unsigned int MetaCC::Pattern::Entry::bit_len

length of this entry in bits (ALWAYS specified)

Definition at line 168 of file metacc_compilation.h.

Referenced by MetaCC::Pattern::append_entry().

int MetaCC::Pattern::Entry::value

for kind BIT this is the bit's value, for others it's always 0.

Definition at line 169 of file metacc_compilation.h.

std::string MetaCC::Pattern::Entry::name

for kinds FIELD and TEMPLATE this is the name, for others this is empty string.

Definition at line 170 of file metacc_compilation.h.


The documentation for this struct was generated from the following files:
Generated on Sat Sep 9 03:50:56 2006 for Openem APIs by  doxygen 1.4.7