Skip to content

File log_lsa.hpp

FileList > cubrid > src > transaction > log_lsa.hpp

Go to the source code of this file

  • #include <cassert>
  • #include <cstring>
  • #include <cinttypes>
  • #include <cstddef>

Classes

Type Name
struct log_lsa

Public Types

Type Name
typedef log_lsa LOG_LSA

Public Attributes

Type Name
constexpr std::int16_t MAX_LOG_LSA_OFFSET = ([**static\_cast**](broker__monitor_8c.md#function-timeout)&lt;[**std::int16\_t**](broker__monitor_8c.md#function-timeout)&gt; (1u) &lt;&lt; (16u - 1)) - 1
constexpr std::int64_t MAX_LOG_LSA_PAGEID = ([**static\_cast**](broker__monitor_8c.md#function-timeout)&lt;[**std::int64\_t**](broker__monitor_8c.md#function-timeout)&gt; (1u) &lt;&lt; (48u - 1)) - 1
constexpr log_lsa MAX_LSA = { [**MAX\_LOG\_LSA\_PAGEID**](log__lsa_8hpp.md#variable-max_log_lsa_pageid), [**MAX\_LOG\_LSA\_OFFSET**](log__lsa_8hpp.md#variable-max_log_lsa_offset) }
constexpr std::int16_t NULL_LOG_OFFSET = -1
constexpr std::int64_t NULL_LOG_PAGEID = -1
constexpr log_lsa NULL_LSA = { [**NULL\_LOG\_PAGEID**](log__lsa_8hpp.md#variable-null_log_pageid), [**NULL\_LOG\_OFFSET**](log__lsa_8hpp.md#variable-null_log_offset) }

Public Functions

Type Name
void LSA_COPY (log_lsa * plsa1, const log_lsa * plsa2)
bool LSA_EQ (const log_lsa * plsa1, const log_lsa * plsa2)
bool LSA_GE (const log_lsa * plsa1, const log_lsa * plsa2)
bool LSA_GT (const log_lsa * plsa1, const log_lsa * plsa2)
bool LSA_ISNULL (const log_lsa * lsa_ptr)
bool LSA_LE (const log_lsa * plsa1, const log_lsa * plsa2)
bool LSA_LT (const log_lsa * plsa1, const log_lsa * plsa2)
void LSA_SET_NULL (log_lsa * lsa_ptr)
void lsa_to_string (char * buf, int buf_size, const log_lsa * lsa)

Macros

Type Name
define LSA_AS_ARGS (lsa_ptr) ([**long**](broker__monitor_8c.md#function-timeout) [**long**](broker__monitor_8c.md#function-timeout) [**int**](broker__monitor_8c.md#function-timeout)) ([**lsa\_ptr**](broker__monitor_8c.md#function-timeout))-&gt;pageid, ([**int**](broker__monitor_8c.md#function-timeout)) ([**lsa\_ptr**](broker__monitor_8c.md#function-timeout))-&gt;offset
define LSA_INITIALIZER {[**NULL\_LOG\_PAGEID**](log__lsa_8hpp.md#variable-null_log_pageid), [**NULL\_LOG\_OFFSET**](log__lsa_8hpp.md#variable-null_log_offset)}

Public Types Documentation

typedef LOG_LSA

using LOG_LSA =  log_lsa;

Public Attributes Documentation

variable MAX_LOG_LSA_OFFSET

constexpr std::int16_t MAX_LOG_LSA_OFFSET;

variable MAX_LOG_LSA_PAGEID

constexpr std::int64_t MAX_LOG_LSA_PAGEID;

variable MAX_LSA

constexpr log_lsa MAX_LSA;

variable NULL_LOG_OFFSET

constexpr std::int16_t NULL_LOG_OFFSET;

variable NULL_LOG_PAGEID

constexpr std::int64_t NULL_LOG_PAGEID;

variable NULL_LSA

constexpr log_lsa NULL_LSA;

Public Functions Documentation

function LSA_COPY

inline void LSA_COPY (
    log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_EQ

inline bool LSA_EQ (
    const  log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_GE

inline bool LSA_GE (
    const  log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_GT

inline bool LSA_GT (
    const  log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_ISNULL

inline bool LSA_ISNULL (
    const  log_lsa * lsa_ptr
) 

function LSA_LE

inline bool LSA_LE (
    const  log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_LT

inline bool LSA_LT (
    const  log_lsa * plsa1,
    const  log_lsa * plsa2
) 

function LSA_SET_NULL

inline void LSA_SET_NULL (
    log_lsa * lsa_ptr
) 

function lsa_to_string

void lsa_to_string (
    char * buf,
    int buf_size,
    const  log_lsa * lsa
) 

Macro Definition Documentation

define LSA_AS_ARGS

#define LSA_AS_ARGS (
    lsa_ptr
) `( long  long  int ) ( lsa_ptr )->pageid, ( int ) ( lsa_ptr )->offset`

define LSA_INITIALIZER

#define LSA_INITIALIZER `{ NULL_LOG_PAGEID , NULL_LOG_OFFSET }`


The documentation for this class was generated from the following file cubrid/src/transaction/log_lsa.hpp