Savarese Software Research Corporation
types.h File Reference

This header defines types shared throughout the system. More...

#include <ssrc/wispers-packages.h>
#include <ssrc/wisp/utility/TimeValue.h>
#include <string>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uuid_key_type
 uuid key. More...

Typedefs

typedef string sid_type
 Session identifier.
typedef std::uint64_t uid_type
 User identifier.
typedef std::uint64_t gid_type
 Group identifier.
typedef std::int64_t gsid_type
 Group session identifier.
typedef TimeValue::sec_type sec_type
 Seconds.
typedef unsigned int db_limit_type
typedef unsigned int db_offset_type
typedef std::uint64_t row_id_type
 Database row identifier.

Enumerations

enum  SessionIdLimits { SessionIdNumBytes = 16, SessionIdNumChars = 32 }

Functions

template<typename value_type >
value_type null_row_id ()
template<typename value_type >
value_type min_row_id ()

Variables

const row_id_type NullRowId = boost::integer_traits<row_id_type>::const_min
const row_id_type MinRowId = NullRowId + 1
const row_id_type MaxRowId = boost::integer_traits<std::int64_t>::const_max

Detailed Description

This header defines types shared throughout the system.

Definition in file types.h.


Typedef Documentation

typedef unsigned int db_limit_type

Definition at line 53 of file types.h.

typedef unsigned int db_offset_type

Definition at line 54 of file types.h.

typedef std::uint64_t gid_type

Group identifier.

Definition at line 44 of file types.h.

typedef std::int64_t gsid_type

Group session identifier.

Definition at line 47 of file types.h.

typedef std::uint64_t row_id_type

Database row identifier.

Definition at line 57 of file types.h.

Seconds.

Definition at line 50 of file types.h.

typedef string sid_type

Session identifier.

Definition at line 37 of file types.h.

typedef std::uint64_t uid_type

User identifier.

Definition at line 41 of file types.h.


Enumeration Type Documentation

Enumerator:
SessionIdNumBytes 
SessionIdNumChars 

Definition at line 38 of file types.h.


Function Documentation

template<typename value_type >
value_type min_row_id ( ) [inline]

Definition at line 74 of file types.h.

template<typename value_type >
value_type null_row_id ( ) [inline]

Definition at line 69 of file types.h.


Variable Documentation

const row_id_type MaxRowId = boost::integer_traits<std::int64_t>::const_max

Definition at line 66 of file types.h.

Definition at line 61 of file types.h.

const row_id_type NullRowId = boost::integer_traits<row_id_type>::const_min

Definition at line 60 of file types.h.


Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.