Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
util::ByteAlignedPacking< KeyT, ValueT > Class Template Reference

#include <key_value_packing.hh>

List of all members.

Classes

struct  RawEntry

Public Types

typedef KeyT Key
typedef ValueT Value
typedef RawEntryMutableIterator
typedef const RawEntryConstIterator
typedef RawEntryConstReference

Static Public Member Functions

static MutableIterator FromVoid (void *start)
static RawEntry Make (const Key &key, const Value &value)

Static Public Attributes

static const std::size_t kBytes = sizeof(RawEntry)
static const std::size_t kBits = kBytes * 8

Friends

void std::swap (RawEntry &, RawEntry &)

template<class KeyT, class ValueT>
class util::ByteAlignedPacking< KeyT, ValueT >


Member Typedef Documentation

template<class KeyT , class ValueT >
typedef const RawEntry* util::ByteAlignedPacking< KeyT, ValueT >::ConstIterator
template<class KeyT , class ValueT >
typedef RawEntry& util::ByteAlignedPacking< KeyT, ValueT >::ConstReference
template<class KeyT , class ValueT >
typedef KeyT util::ByteAlignedPacking< KeyT, ValueT >::Key
template<class KeyT , class ValueT >
typedef RawEntry* util::ByteAlignedPacking< KeyT, ValueT >::MutableIterator
template<class KeyT , class ValueT >
typedef ValueT util::ByteAlignedPacking< KeyT, ValueT >::Value

Member Function Documentation

template<class KeyT , class ValueT >
static MutableIterator util::ByteAlignedPacking< KeyT, ValueT >::FromVoid ( void *  start) [static]
template<class KeyT , class ValueT >
static RawEntry util::ByteAlignedPacking< KeyT, ValueT >::Make ( const Key key,
const Value value 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

template<class KeyT , class ValueT >
void std::swap ( RawEntry ,
RawEntry  
) [friend]

Member Data Documentation

template<class KeyT , class ValueT >
const std::size_t util::ByteAlignedPacking< KeyT, ValueT >::kBits = kBytes * 8 [static]
template<class KeyT , class ValueT >
const std::size_t util::ByteAlignedPacking< KeyT, ValueT >::kBytes = sizeof(RawEntry) [static]