(file) Return to field.hh CVS log (file) (dir) Up to [venge] / src / antigen

File: [venge] / src / antigen / field.hh (download)
Revision: 1.1, Wed Jan 22 13:54:23 2003 UTC (7 years, 7 months ago) by graydon
Branch: MAIN
CVS Tags: HEAD
antigen

#ifndef __FIELD_HH__
#define __FIELD_HH__

// nb: this is simplified to byte-oriented ifields for now, since the
// arithmetic to get bit-level can get a little sticky, and is one of the
// things I'm worst at getting right. I don't want to get bogged down in it
// right now. I promise, integer-constant arithmetic metaprograms work fine.

template <int NBYTES,
	  typename SELECTOR>
struct field
{
  static int const nbytes = NBYTES;
  typedef SELECTOR selector;  
};

#endif

graydon hoare
Powered by
ViewCVS 0.9.2