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

#include <key_value_packing.hh>

List of all members.

Public Types

typedef KeyT Key
typedef ValueT Value
typedef Entry< Key, Value > * MutableIterator
typedef const Entry< Key, Value > * ConstIterator
typedef const Entry< Key, Value > & ConstReference

Static Public Member Functions

static MutableIterator FromVoid (void *start)
static Entry< Key, ValueMake (const Key &key, const Value &value)

Static Public Attributes

static const std::size_t kBytes = sizeof(Entry<Key, Value>)
static const std::size_t kBits = kBytes * 8

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


Member Typedef Documentation

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

Member Function Documentation

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

Here is the call graph for this function:


Member Data Documentation

template<class KeyT , class ValueT >
const std::size_t util::AlignedPacking< KeyT, ValueT >::kBits = kBytes * 8 [static]
template<class KeyT , class ValueT >
const std::size_t util::AlignedPacking< KeyT, ValueT >::kBytes = sizeof(Entry<Key, Value>) [static]